changeset 9373:7b524aa57718

[gaim-migrate @ 10181] Changes to the RPM spec from nosnilmot to let us build --with silc to build a separate SILC PRPL RPM. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 24 Jun 2004 04:44:36 +0000
parents e54181e5c906
children e4654f277514
files gaim.spec.in
diffstat 1 files changed, 34 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gaim.spec.in	Thu Jun 24 04:27:42 2004 +0000
+++ b/gaim.spec.in	Thu Jun 24 04:44:36 2004 +0000
@@ -18,11 +18,19 @@
 Requires:   gtk2 >= 2.0.0, mozilla-nss, gtkspell, audiofile, libao
 BuildRequires: libao-devel, gtk2-devel, gtkspell-devel, libtool, audiofile-devel, pkgconfig, mozilla-nss-devel
 %endif
+%{?_with_silc:BuildRequires: libsilc-devel}
+
+%if %{?_with_silc:1}%{!?_with_silc:0}
+%package silc
+Summary:    SILC (Secure Internet Live Conferencing) plugin for Gaim
+Group:      Applications/Internet
+Requires:   gaim = 1:%{version}
+%endif
 
 %package devel
-Summary: Development headers, documentation, and libraries for Gaim.
-Group: Applications/Internet
-Requires: gaim = %{epoch}:%{version}
+Summary:    Development headers, documentation, and libraries for Gaim.
+Group:      Applications/Internet
+Requires:   gaim = %{epoch}:%{version}
 
 %description
 Gaim allows you to talk to anyone using a variety of messaging 
@@ -37,8 +45,12 @@
 Gaim is NOT affiliated with or endorsed by America Online, Inc., 
 Microsoft Corporation, Yahoo! Inc., or ICQ Inc.
 
+%if %{?_with_silc:1}%{!?_with_silc:0}
+%description silc
+SILC (Secure Internet Live Conferencing) plugin for Gaim
+%endif
+
 %description devel
-
 The gaim-devel package contains the header files, developer
 documentation, and libraries required for development of gaim scripts
 and plugins.
@@ -54,7 +66,10 @@
                                     --libdir=%{_libdir} \
                                     --mandir=%{_mandir} \
                                     --sysconfdir=%{_sysconfdir} \
-                                    --with-perl-lib=%{buildroot}%{_prefix}
+                                    --with-perl-lib=%{buildroot}%{_prefix} \
+                                    %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \
+                                    %{?_with_silc:--with-silc-libs=%{_libdir}/silc}
+
 make %{?_smp_mflags}
 
 %install
@@ -65,12 +80,16 @@
      sysconfdir=%{buildroot}%{_sysconfdir} \
      install
 
-rm -f $RPM_BUILD_ROOT/%{_libdir}/perl5/*/*/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{_libdir}/perl5/*/*/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la
+find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \
+	sed "s@^$RPM_BUILD_ROOT@@g" | \
+	grep -v libsilcgaim.so > %{name}-%{version}-coreplugins
 
 %clean
 rm -rf %{buildroot}
 
-%files
+%files -f %{name}-%{version}-coreplugins
 %defattr(-, root, root)
 
 %doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS COPYRIGHT
@@ -79,7 +98,6 @@
 %doc %{_mandir}/man3*/*
 
 %dir %{_libdir}/gaim
-%attr(755, root, root) %{_libdir}/gaim/*
 %attr(755, root, root) %{_libdir}/libgaim-remote.so.*
 %attr(755, root, root) %{_libdir}/perl5
 
@@ -90,7 +108,15 @@
 %{_datadir}/sounds/gaim/*
 %{_datadir}/applications/*
 
+%if %{?_with_silc:1}%{!?_with_silc:0}
+%files silc
+%defattr(-, root, root)
+
+%{_libdir}/gaim/libsilcgaim.*
+%endif
+
 %files devel
+%defattr(-, root, root)
 
 %doc plugins/HOWTO
 %doc HACKING PROGRAMMING_NOTES