plugin_pack.spec.in
author John Bailey <rekkanoryo@rekkanoryo.org>
Sun Aug 30 20:10:58 2009 -0400 (2009-08-30)
changeset 1046 93089a7ce7f6
parent 591 887a3d910c4a
permissions -rw-r--r--
Merge
jbailey@22
     1
#
nosnilmot@307
     2
# pidgin_major_ver and pidgin_minor_ver should be defined to match the minimum
nosnilmot@307
     3
# Pidgin API version _required_ to build Plugin Pack
nosnilmot@307
     4
# Due to the way Pidgin checks plugin versions, we need to also ensure that
nosnilmot@307
     5
# the correct minimum version of Pidgin is Require:'d based on what version of
nosnilmot@307
     6
# the Pidgin headers we actually build with.
jbailey@22
     7
#
jbailey@22
     8
nosnilmot@307
     9
%define pidgin_major_ver 2
nosnilmot@307
    10
%define pidgin_minor_ver 0
nosnilmot@307
    11
%define pidgin_next_major_ver %(echo $((%{pidgin_major_ver}+1)))
nosnilmot@307
    12
%define pidgin_build_minor_ver %(pkg-config --modversion pidgin | awk -F. '{ print $2 }')
jbailey@22
    13
nosnilmot@308
    14
Summary:    Plugin Pack for libpurple and derived IM clients
jbailey@22
    15
Name:       @PACKAGE@
jbailey@22
    16
Version:    @VERSION@
jbailey@22
    17
nosnilmot@307
    18
Release:    0%{?pidgindist:.%{pidgindist}}
jbailey@22
    19
License:    GPL
jbailey@22
    20
Group:      Applications/Internet
jbailey@22
    21
nosnilmot@307
    22
URL:        http://plugins.guifications.org/
nosnilmot@307
    23
Source0:    %{name}-%{version}.tar.bz2
jbailey@22
    24
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
jbailey@22
    25
nosnilmot@591
    26
BuildRequires: pkgconfig, libtool, gettext
nosnilmot@591
    27
%{!?_without_xmms:BuildRequires: xmms-devel}
nosnilmot@307
    28
BuildRequires: pidgin-devel >= %{pidgin_major_ver}.%{pidgin_minor_ver}, pidgin-devel < %{pidgin_next_major_ver}
jbailey@22
    29
%if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft"
jbailey@22
    30
BuildRequires: libgtk+2.0_0-devel
jbailey@22
    31
%else
jbailey@22
    32
BuildRequires: gtk2-devel
jbailey@22
    33
%endif
nosnilmot@308
    34
Requires:      libpurple >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, libpurple < %{pidgin_next_major_ver}
nosnilmot@308
    35
nosnilmot@308
    36
%package -n pidgin-plugin_pack
nosnilmot@308
    37
Summary:    Plugin Pack for Pidgin
nosnilmot@308
    38
Group:      Applications/Internet
nosnilmot@308
    39
Requires:   pidgin >= %{pidgin_major_ver}.%{pidgin_build_minor_ver}, pidgin < %{pidgin_next_major_ver}
nosnilmot@672
    40
Requires:	purple-plugin_pack = %{version}
jbailey@22
    41
jbailey@22
    42
%description
nosnilmot@308
    43
All the other plugins for all libpurple derived clients
nosnilmot@308
    44
nosnilmot@308
    45
%description -n pidgin-plugin_pack
nosnilmot@308
    46
All the other plugins for Pidgin
jbailey@22
    47
jbailey@22
    48
%prep
jbailey@22
    49
%setup -q
jbailey@22
    50
jbailey@22
    51
%build
jbailey@22
    52
%configure
jbailey@22
    53
make %{?_smp_mflags}
jbailey@22
    54
jbailey@22
    55
%install
jbailey@22
    56
rm -rf $RPM_BUILD_ROOT
jbailey@22
    57
make install DESTDIR=$RPM_BUILD_ROOT
jbailey@22
    58
nosnilmot@307
    59
rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/*.la $RPM_BUILD_ROOT%{_libdir}/purple-2/*.a
nosnilmot@307
    60
rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la $RPM_BUILD_ROOT%{_libdir}/pidgin/*.a
nosnilmot@127
    61
%find_lang plugin_pack
jbailey@22
    62
jbailey@22
    63
%clean
jbailey@22
    64
rm -rf $RPM_BUILD_ROOT
jbailey@22
    65
nosnilmot@127
    66
%files -f plugin_pack.lang
jbailey@22
    67
%defattr(-,root,root,-)
jbailey@22
    68
%doc AUTHORS ChangeLog COPYING README
nosnilmot@308
    69
%{_libdir}/purple-2/*.so
nosnilmot@308
    70
nosnilmot@308
    71
%files -n pidgin-plugin_pack -f plugin_pack.lang
nosnilmot@308
    72
%defattr(-,root,root,-)
nosnilmot@308
    73
%doc AUTHORS ChangeLog COPYING README
nosnilmot@307
    74
%{_libdir}/pidgin/*.so
nosnilmot@307
    75
%{_datadir}/pixmaps/pidgin/plugin_pack
jbailey@22
    76
nosnilmot@308
    77
jbailey@22
    78
%changelog
nosnilmot@672
    79
* Sat Mar 01 2008 Stu Tomlinson <stu@nosnilmot.com>
nosnilmot@672
    80
- make the pidgin plugin pack depend on the purple plugin pack
nosnilmot@672
    81
nosnilmot@591
    82
* Sat Oct 27 2007 Stu Tomlinson <stu@nosnilmot.com>
nosnilmot@591
    83
- Add --without xmms option to build without xmms plugin
nosnilmot@591
    84
nosnilmot@307
    85
* Mon Apr 30 2007 Stu Tomlinson <stu@nosnilmot.com>
nosnilmot@307
    86
- Update for the rename of Gaim to Pidgin
nosnilmot@307
    87
- New URL for our new website
nosnilmot@307
    88
- Use tar.bz2 for source
nosnilmot@308
    89
- Split into pidgin- and purple- RPMs
nosnilmot@307
    90
jbailey@161
    91
* Tue Dec 5 2006 John Bailey <rekkanoryo@rekkanoryo.org>
jbailey@161
    92
- Update the URL to match our new website
jbailey@161
    93
nosnilmot@127
    94
* Thu Oct 19 2006 Stu Tomlinson <stu@nosnilmot.com>
nosnilmot@127
    95
- Removed locale from %%files, that's what %%find_lang is for
nosnilmot@127
    96
- Fixed finding translations
nosnilmot@127
    97
- Fixed %%s in %%changelog
nosnilmot@127
    98
- Package xmms pixmaps
nosnilmot@127
    99
- Add xmms-devel buildrequires
nosnilmot@127
   100
jbailey@22
   101
* Sun Nov 11 2005 Peter Lawler <bleeter from users.sf.net>
nosnilmot@127
   102
- Added locale to %%files
nosnilmot@127
   103
- Enabled %%find_lang
nosnilmot@127
   104
jbailey@22
   105
* Thu Nov 03 2005 Stu Tomlinson <stu@nosnilmot.com>
jbailey@22
   106
- Fix it again
jbailey@22
   107
jbailey@22
   108
* Wed Nov 02 2005 Peter Lawler <bleeter@users.sf.net>
jbailey@22
   109
- Fixed up the Mandrivel .so rename
jbailey@22
   110
jbailey@22
   111
* Tue Nov 01 2005 Stu Tomlinson <stu@nosnilmot.com>
jbailey@22
   112
- Fix it
jbailey@22
   113
jbailey@22
   114
* Tue Nov 01 2005 Peter Lawler <bleeter@users.sf.net>
jbailey@22
   115
- Initial Spec File for Plugin Pack