- fix libdir in configure

This commit is contained in:
Radek Vokál 2006-08-10 14:14:03 +00:00
parent 36b04047fd
commit f218da561b
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@
Summary: A collection of SNMP protocol tools and libraries.
Name: net-snmp
Version: %{major_ver}.0
Release: 2
Release: 3
License: BSDish
Group: System Environment/Daemons
@ -38,6 +38,7 @@ Patch24: net-snmp-5.3-size_t.patch
Patch26: net-snmp-5.3_vendorperl.patch
Patch27: net-snmp-5.3.1-multilib.patch
Patch28: net-snmp-5.3.1-retrans_time.patch
Patch29: net-snmp-5.3.1-config_libdir.patch
Prereq: /sbin/chkconfig
Obsoletes: ucd-snmp
@ -142,6 +143,7 @@ and applications.
%patch24 -p1 -b .size_t
%patch27 -p1 -b .multilib
%patch28 -p0 -b .retrans_ms
%patch29 -p1 -b .libdir
# Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
@ -150,6 +152,7 @@ perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
%ifarch ia64 x86_64 s390x ppc64
export LDFLAGS="-L%{_libdir}"
%endif
export LIBDIR="%{_libdir}"
%configure \
--enable-static --enable-shared \
--with-cflags="$RPM_OPT_FLAGS -lcrypto" \
@ -343,6 +346,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/*.a
%changelog
* Thu Aug 10 2006 Radek Vokal <rvokal@redhat.com> 5.3.1.0-3
- fix lib dirs in configure (#197684)
* Thu Aug 3 2006 Radek Vokal <rvokal@redhat.com> 5.3.1.0-2
- better patch for depreciated sysctl call