All pastes #255493 Raw Edit

Miscellany

public text v1 · immutable
#255493 ·published 2006-11-23 01:11 UTC
rendered paste body
--- dist/net-snmp.spec  22 Nov 2006 23:25:48 -0000      1.54
+++ dist/net-snmp.spec  23 Nov 2006 01:07:09 -0000
@@ -121,11 +121,11 @@

 %if %{netsnmp_include_perl}
 # unneeded perl stuff
-find $RPM_BUILD_ROOT/usr/lib/perl5/ -name Bundle -type d | xargs rm -rf
-find $RPM_BUILD_ROOT/usr/lib/perl5/ -name perllocal.pod | xargs rm -f
+find $RPM_BUILD_ROOT/%{_libdir}/perl5/ -name Bundle -type d | xargs rm -rf
+find $RPM_BUILD_ROOT/%{_libdir}/perl5/ -name perllocal.pod | xargs rm -f

 # store a copy of installed perl stuff.  It's too complex to predict
-(xxdir=`pwd` && cd $RPM_BUILD_ROOT && find usr/lib/perl5 -type f | sed 's/^/\//' > $xxdir/net-snmp-perl-files)
+(xxdir=`pwd` && cd $RPM_BUILD_ROOT && find usr/lib*/perl5 -type f | sed 's/^/\//' > $xxdir/net-snmp-perl-files)
 %endif

 %post
@@ -180,7 +180,7 @@
 %{_mandir}/man3/[^A-Z]*
 %{_mandir}/man5/*
 %{_mandir}/man8/*
-/usr/lib/*.so*
+%{_libdir}/*.so*
 /etc/rc.d/init.d/snmpd

 %files devel