The attached patch fixes dist/net-snmp.spec to allow for building RPMs on 64-bit
platforms by consistently using proper %{_libdir} (translating to /usr/lib64 on
x86_64) instead of hard-coding /usr/lib. Tested on RHEL4/x86 and RHEL4/x86_64.
I'm calling for quick votes to include this in 5.4.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
--- 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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders