1#
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.
7#
8
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 }')
13
14Summary:    Plugin Pack for libpurple and derived IM clients
15Name:       @PACKAGE@
16Version:    @VERSION@
17
18Release:    0%{?pidgindist:.%{pidgindist}}
19License:    GPL
20Group:      Applications/Internet
21
22URL:        http://plugins.guifications.org/
23Source0:    %{name}-%{version}.tar.bz2
24BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
25
26BuildRequires: pkgconfig, libtool, gettext
27%{!?_without_xmms:BuildRequires: xmms-devel}
28BuildRequires: pidgin-devel >= %{pidgin_major_ver}.%{pidgin_minor_ver}, pidgin-devel < %{pidgin_next_major_ver}
29%if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft"
30BuildRequires: libgtk+2.0_0-devel
31%else
32BuildRequires: gtk2-devel
33%endif
34Requires:      libpurple >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, libpurple < %{pidgin_next_major_ver}
35
36%package -n pidgin-plugin_pack
37Summary:    Plugin Pack for Pidgin
38Group:      Applications/Internet
39Requires:   pidgin >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, pidgin < %{pidgin_next_major_ver}
40Requires:	purple-plugin_pack = %{version}
41
42%description
43All the other plugins for all libpurple derived clients
44
45%description -n pidgin-plugin_pack
46All the other plugins for Pidgin
47
48%prep
49%setup -q
50
51%build
52%configure
53make %{?_smp_mflags}
54
55%install
56rm -rf $RPM_BUILD_ROOT
57make install DESTDIR=$RPM_BUILD_ROOT
58
59rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/*.la $RPM_BUILD_ROOT%{_libdir}/purple-2/*.a
60rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la $RPM_BUILD_ROOT%{_libdir}/pidgin/*.a
61%find_lang plugin_pack
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files -f plugin_pack.lang
67%defattr(-,root,root,-)
68%doc AUTHORS ChangeLog COPYING README
69%{_libdir}/purple-2/*.so
70
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
76
77
78%changelog
79* Sat Mar 01 2008 Stu Tomlinson <stu@nosnilmot.com>
80- make the pidgin plugin pack depend on the purple plugin pack
81
82* Sat Oct 27 2007 Stu Tomlinson <stu@nosnilmot.com>
83- Add --without xmms option to build without xmms plugin
84
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
90
91* Tue Dec 5 2006 John Bailey <rekkanoryo@rekkanoryo.org>
92- Update the URL to match our new website
93
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
100
101* Sun Nov 11 2005 Peter Lawler <bleeter from users.sf.net>
102- Added locale to %%files
103- Enabled %%find_lang
104
105* Thu Nov 03 2005 Stu Tomlinson <stu@nosnilmot.com>
106- Fix it again
107
108* Wed Nov 02 2005 Peter Lawler <bleeter@users.sf.net>
109- Fixed up the Mandrivel .so rename
110
111* Tue Nov 01 2005 Stu Tomlinson <stu@nosnilmot.com>
112- Fix it
113
114* Tue Nov 01 2005 Peter Lawler <bleeter@users.sf.net>
115- Initial Spec File for Plugin Pack
116