2 # pidgin_major_ver and pidgin_minor_ver should be defined to match the minimum
3 # Pidgin API version _required_ to build Plugin Pack
4 # Due to the way Pidgin checks plugin versions, we need to also ensure that
5 # the correct minimum version of Pidgin is Require:'d based on what version of
6 # the Pidgin headers we actually build with.
9 %define pidgin_major_ver 2
10 %define pidgin_minor_ver 0
11 %define pidgin_next_major_ver %(echo $((%{pidgin_major_ver}+1)))
12 %define pidgin_build_minor_ver %(pkg-config --modversion pidgin | awk -F. '{ print $2 }')
14 Summary: Plugin Pack for libpurple and derived IM clients
18 Release: 0%{?pidgindist:.%{pidgindist}}
20 Group: Applications/Internet
22 URL: http://plugins.guifications.org/
23 Source0: %{name}-%{version}.tar.bz2
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
26 BuildRequires: pkgconfig, libtool, gettext
27 %{!?_without_xmms:BuildRequires: xmms-devel}
28 BuildRequires: pidgin-devel >= %{pidgin_major_ver}.%{pidgin_minor_ver}, pidgin-devel < %{pidgin_next_major_ver}
29 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft"
30 BuildRequires: libgtk+2.0_0-devel
32 BuildRequires: gtk2-devel
34 Requires: libpurple >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, libpurple < %{pidgin_next_major_ver}
36 %package -n pidgin-plugin_pack
37 Summary: Plugin Pack for Pidgin
38 Group: Applications/Internet
39 Requires: pidgin >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, pidgin < %{pidgin_next_major_ver}
40 Requires: purple-plugin_pack = %{version}
43 All the other plugins for all libpurple derived clients
45 %description -n pidgin-plugin_pack
46 All the other plugins for Pidgin
56 rm -rf $RPM_BUILD_ROOT
57 make install DESTDIR=$RPM_BUILD_ROOT
59 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/*.la $RPM_BUILD_ROOT%{_libdir}/purple-2/*.a
60 rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la $RPM_BUILD_ROOT%{_libdir}/pidgin/*.a
61 %find_lang plugin_pack
64 rm -rf $RPM_BUILD_ROOT
66 %files -f plugin_pack.lang
67 %defattr(-,root,root,-)
68 %doc AUTHORS ChangeLog COPYING README
69 %{_libdir}/purple-2/*.so
71 %files -n pidgin-plugin_pack -f plugin_pack.lang
72 %defattr(-,root,root,-)
73 %doc AUTHORS ChangeLog COPYING README
74 %{_libdir}/pidgin/*.so
75 %{_datadir}/pixmaps/pidgin/plugin_pack
79 * Sat Mar 01 2008 Stu Tomlinson <stu@nosnilmot.com>
80 - make the pidgin plugin pack depend on the purple plugin pack
82 * Sat Oct 27 2007 Stu Tomlinson <stu@nosnilmot.com>
83 - Add --without xmms option to build without xmms plugin
85 * Mon Apr 30 2007 Stu Tomlinson <stu@nosnilmot.com>
86 - Update for the rename of Gaim to Pidgin
87 - New URL for our new website
88 - Use tar.bz2 for source
89 - Split into pidgin- and purple- RPMs
91 * Tue Dec 5 2006 John Bailey <rekkanoryo@rekkanoryo.org>
92 - Update the URL to match our new website
94 * Thu Oct 19 2006 Stu Tomlinson <stu@nosnilmot.com>
95 - Removed locale from %%files, that's what %%find_lang is for
96 - Fixed finding translations
97 - Fixed %%s in %%changelog
98 - Package xmms pixmaps
99 - Add xmms-devel buildrequires
101 * Sun Nov 11 2005 Peter Lawler <bleeter from users.sf.net>
102 - Added locale to %%files
103 - Enabled %%find_lang
105 * Thu Nov 03 2005 Stu Tomlinson <stu@nosnilmot.com>
108 * Wed Nov 02 2005 Peter Lawler <bleeter@users.sf.net>
109 - Fixed up the Mandrivel .so rename
111 * Tue Nov 01 2005 Stu Tomlinson <stu@nosnilmot.com>
114 * Tue Nov 01 2005 Peter Lawler <bleeter@users.sf.net>
115 - Initial Spec File for Plugin Pack