org.guifications.gf2 gf_2_14
2007-05-05, Gary Kramlich
# pidgin_major_ver and pidgin_minor_ver should be defined to match the minimum
# Pidgin API version _required_ to build Guifications
# Due to the way Pidgin checks plugin versions, we need to also ensure that
# the correct minimum version of Pidgin is Require:'d based on what version of
# the Pidgin headers we actually build with.
# This allows --define 'pidginver 1' to be used to build an rpm for Pidgin 1.x
# default is to build for Pidgin 2.x
%{!?pidginver: %{expand: %%define pidginver 2}}
%define pidgin_major_ver %{pidginver}
%define pidgin_minor_ver 0
%define pidgin_next_major_ver %(echo $((%{pidgin_major_ver}+1)))
%define pidgin_build_minor_ver %(pkg-config --modversion pidgin | awk -F. '{ print $2 }')
Summary: Guifications Plugin for Pidgin
Version: @VERSION@
Release: 0%{?pidgindist:.%{pidgindist}}
License: GPL
Group: Applications/Internet
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: pidgin >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, pidgin < %{pidgin_next_major_ver}
BuildRequires: pkgconfig, libtool, gettext
BuildRequires: pidgin-devel >= %{pidgin_major_ver}.%{pidgin_minor_ver}, pidgin-devel < %{pidgin_next_major_ver}
%if "%{_vendor}" == "MandrakeSoft"
BuildRequires: libgtk+2.0_0-devel
BuildRequires: gtk2-devel
Guifications is a graphical notification plugin for the open source instant messaging client Pidgin
To rebuild for a specific Pidgin version:
rpmbuild --rebuild %{name}-%{version}-%{release}.src.rpm --define 'pidgindist %{!?pidgindist:fc1}%{?pidgindist:%{pidgindist}}'
%setup -q
make %{?_smp_mflags}
make DESTDIR="$RPM_BUILD_ROOT" install
%if "%{_vendor}" == "MandrakeSoft"
mv -f $RPM_BUILD_ROOT%{_libdir}/pidgin/guifications $RPM_BUILD_ROOT%{_libdir}/pidgin/ || :
strip $RPM_BUILD_ROOT%{_libdir}/pidgin/*.so || :
rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la $RPM_BUILD_ROOT%{_libdir}/pidgin/*.a
%find_lang guifications
%files -f guifications.lang
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README doc/flow.png doc/flow.dia doc/QUOTES
* Mon Apr 30 2007 Stu Tomlinson <>
- Pidgin dropped the epochs, yay!
- Use tar.bz2 for source
* Sun Apr 1 2007 John Bailey <>
- :%s/gaim/pidgin/g and :%s/Gaim/Pidgin/g to prep for eventual Pidgin
* Tue Dec 5 2006 John Bailey <>
- Fix the source URL to point to our new download location
* Thu Oct 19 2006 Stu Tomlinson <>
- Fix finding the translations
* Thu Nov 3 2005 Stu Tomlinson <>
- Default to building for Pidgin 2.x with a bit of trickery to optionally
build for Pidgin 1.x
* Fri Apr 8 2005 Stu Tomlinson <>
- spec file cleanup, build vs. install dependency fixes, use %%find_lang,
tidy up release version, fix directory ownership
* Fri Dec 17 2004 Stu Tomlinson <>
- Tweaks to the Pidgin version dependencies
* Sat Oct 9 2004 Stu Tomlinson <>
- Add Pidgin version checks to match new Pidgin versioning
* Wed Jun 30 2004 Stu Tomlinson <>
- Initial spec file for Guifications 2