gaim/gaim

RPM spec file updates:

2006-03-29, Stu Tomlinson
3ccbe9ab3594
Parents 37e48122173f
Children 73d74f980865
RPM spec file updates:

- Source RPM uses tar.bz2 now to save space
- Update BuildRequires for new intltool dependencies
- Add a --with perlmakehack option to allow builds to succeed on RH9
- Add a --with gadugadu to build (separate) gaim-gadugadu package
  • +47 -3
    gaim.spec.in
  • --- a/gaim.spec.in Wed Mar 29 10:07:30 2006 -0500
    +++ b/gaim.spec.in Wed Mar 29 19:38:49 2006 -0500
    @@ -23,14 +23,15 @@
    Group: Applications/Internet
    URL: http://gaim.sourceforge.net/
    Packager: %{packager}
    -Source: %{name}-@VERSION@.tar.gz
    +Source: %{name}-@VERSION@.tar.bz2
    BuildRoot: %{_tmppath}/%{name}-%{version}-root
    # Generic build requirements
    -BuildRequires: libtool, pkgconfig, libao-devel, audiofile-devel
    +BuildRequires: libtool, pkgconfig, libao-devel, audiofile-devel, intltool, gettext
    %{?_with_howl:BuildRequires: howl-devel}
    %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h}
    %{?_with_meanwhile:BuildRequires: meanwhile-devel}
    +%{?_with_gadugadu:BuildRequires: libgadu-devel}
    %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h}
    %{?_with_mono:BuildRequires: mono-devel}
    %{?_with_dbus:BuildRequires: dbus-devel >= 0.35}
    @@ -52,6 +53,10 @@
    %if "%{_vendor}" == "suse"
    BuildRequires: gnutls-devel
    %else
    +# let's assume RH & FC1 are the only brain-dead distros missing the
    +# perl-XML-Parser dependency on intltool and that other RH/FC releases
    +# don't care if we specify it here
    +BuildRequires: perl-XML-Parser
    BuildRequires: mozilla-nss-devel
    %endif
    %endif
    @@ -77,6 +82,13 @@
    Requires: gaim = %{epoch}:%{version}
    %endif
    +%if 0%{?_with_gadugadu:1}
    +%package gadugadu
    +Summary: Gadu-Gadu plugin for Gaim using the libgadu library
    +Group: Applications/Internet
    +Requires: gaim = %{epoch}:%{version}
    +%endif
    +
    %if 0%{?_with_tcl:1}
    %package tcl
    Summary: Tcl scripting support for Gaim
    @@ -124,6 +136,11 @@
    Lotus Sametime plugin for Gaim using the Meanwhile library
    %endif
    +%if 0%{?_with_gadugadu:1}
    +%description gadugadu
    +Gadu-Gadu plugin for Gaim using the libgadu library
    +%endif
    +
    %if 0%{?_with_tcl:1}
    %description tcl
    Tcl plugin loader for Gaim. This package will allow you to write or
    @@ -153,7 +170,8 @@
    --mandir=%{_mandir} \
    --sysconfdir=%{_sysconfdir} \
    --with-ao=%{_libdir} \
    - --with-perl-lib=%{_prefix} \
    + %{!?_with_perlmakehack:--with-perl-lib=%{_prefix}} \
    + %{?_with_perlmakehack:--with-perl-lib=%{buildroot}%{_prefix}} \
    %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \
    %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \
    %{?_with_mono:--enable-mono} \
    @@ -166,7 +184,15 @@
    %install
    rm -rf %{buildroot}
    +if 0%{?_with_perlmakehack}
    +make prefix=%{buildroot}%{_prefix} bindir=%{buildroot}%{_bindir} \
    + datadir=%{buildroot}%{_datadir} includedir=%{buildroot}%{_includedir} \
    + libdir=%{buildroot}%{_libdir} mandir=%{buildroot}%{_mandir} \
    + sysconfdir=%{buildroot}%{_sysconfdir} \
    + install
    +%else
    make DESTDIR=$RPM_BUILD_ROOT install
    +%endif
    rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la
    rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
    @@ -186,6 +212,10 @@
    rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsametime.so
    %endif
    +%if 0%{!?_with_gadugadu:1}
    +rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libgg.so
    +%endif
    +
    %if 0%{!?_with_tcl:1}
    rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so
    %endif
    @@ -201,6 +231,7 @@
    grep -v libbonjour.so | \
    grep -v libsilcgaim.so | \
    grep -v libsametime.so | \
    + grep -v libgg.so | \
    grep -v tcl.so | \
    grep -v mono.so | \
    grep -v ".dll$" | \
    @@ -254,6 +285,13 @@
    %{_libdir}/gaim/libsametime.*
    %endif
    +%if 0%{?_with_gadugadu:1}
    +%files gadugadu
    +%defattr(-, root, root)
    +
    +%{_libdir}/gaim/libgg.*
    +%endif
    +
    %if 0%{?_with_tcl:1}
    %files tcl
    %defattr(-, root, root)
    @@ -284,6 +322,12 @@
    %endif
    %changelog
    +* Wed Mar 29 2006 <stu@nosnilmot.com>
    +- Source RPM uses tar.bz2 now to save space
    +- Update BuildRequires for new intltool dependencies
    +- Add a --with perlmakehack option to allow builds to succeed on RH9
    +- Add a --with gadugadu to build (separate) gaim-gadugadu package
    +
    * Sat Dec 17 2005 <stu@nosnilmot.com>
    - Add support for beta versions so the subsequent releases are seen as newer
    by RPM