changeset 10073:06fa76a16ac0

[gaim-migrate @ 11053] When building an RPM, if --with tcl or silc are not specified, make sure the plugins don't exist to prevent RPM complaining about unpackaged files committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 02 Oct 2004 15:28:03 +0000
parents cf3454eadc22
children 2e225cd35615
files gaim.spec.in
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gaim.spec.in	Sat Oct 02 11:38:42 2004 +0000
+++ b/gaim.spec.in	Sat Oct 02 15:28:03 2004 +0000
@@ -97,6 +97,15 @@
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/perl5/*/*/perllocal.pod
 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la
+
+%if %{!?_with_silc:1}%{?_with_silc:0}
+rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsilcgaim.so
+%endif
+
+%if %{!?_with_tcl:1}%{?_with_tcl:0}
+rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so
+%endif
+
 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \
 	sed "s@^$RPM_BUILD_ROOT@@g" | \
 	grep -v libsilcgaim.so |
@@ -152,6 +161,10 @@
 %{_libdir}/pkgconfig/gaim.pc
 
 %changelog
+* Sat Oct  2 2004 Stu Tomlinson <stu@nosnilmot.com>
+- If --with tcl or silc are not specified, make sure the plugins don't
+  exist to prevent RPM complaining about unpackaged files
+
 * Tue Jun 29 2004 Ethan Blanton <eblanton@cs.ohiou.edu>
 - Change Tcl to use --with tcl, the same as SILC, and build a gaim-tcl
   package if specified.