# 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 Release: 0%{?pidgindist:.%{pidgindist}} Group: Applications/Internet Url: http://pidgin.guifications.org Source: http://downloads.guifications.org/pidgin-plugins/Guifications2/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: pidgin >= 1:%{pidgin_major_ver}.%{pidgin_build_minor_ver}, pidgin < 1:%{pidgin_next_major_ver} BuildRequires: pkgconfig, libtool, gettext BuildRequires: pidgin-devel >= 1:%{pidgin_major_ver}.%{pidgin_minor_ver}, pidgin-devel < 1:%{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}}' make DESTDIR="$RPM_BUILD_ROOT" install %if "%{_vendor}" == "MandrakeSoft" mv -f $RPM_BUILD_ROOT%{_libdir}/pidgin/guifications $RPM_BUILD_ROOT%{_libdir}/pidgin/guifications.so || : strip $RPM_BUILD_ROOT%{_libdir}/pidgin/*.so || : rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la $RPM_BUILD_ROOT%{_libdir}/pidgin/*.a %files -f guifications.lang %doc AUTHORS ChangeLog COPYING README doc/flow.png doc/flow.dia doc/QUOTES %{_datadir}/pixmaps/pidgin/guifications - :%s/gaim/pidgin/g and :%s/Gaim/Pidgin/g to prep for eventual Pidgin * Tue Dec 5 2006 John Bailey <rekkanoryo@rekkanoryo.org> - Fix the source URL to point to our new download location * Thu Oct 19 2006 Stu Tomlinson <stu@nosnilmot.com> - Fix finding the translations * Thu Nov 3 2005 Stu Tomlinson <stu@nosnilmot.com> - Default to building for Pidgin 2.x with a bit of trickery to optionally * Fri Apr 8 2005 Stu Tomlinson <stu@nosnilmot.com> - spec file cleanup, build vs. install dependency fixes, use %%find_lang, tidy up release version, fix directory ownership * Fri Dec 17 2004 Stu Tomlinson <stu@nosnilmot.com> - Tweaks to the Pidgin version dependencies * Sat Oct 9 2004 Stu Tomlinson <stu@nosnilmot.com> - Add Pidgin version checks to match new Pidgin versioning * Wed Jun 30 2004 Stu Tomlinson <stu@nosnilmot.com> - Initial spec file for Guifications 2