rpms/libnet/EL-5 libnet.spec,1.14,1.15

Robert Scheck robert at fedoraproject.org
Fri Aug 21 14:08:49 UTC 2009


Author: robert

Update of /cvs/pkgs/rpms/libnet/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18337/EL-5

Modified Files:
	libnet.spec 
Log Message:
Move libnet.so.* to /lib[64] to avoid static linking (#518150)



Index: libnet.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libnet/EL-5/libnet.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- libnet.spec	11 Jun 2009 11:58:57 -0000	1.14
+++ libnet.spec	21 Aug 2009 14:08:49 -0000	1.15
@@ -1,7 +1,7 @@
 Summary:	C library for portable packet creation and injection
 Name:		libnet
 Version:	1.1.4
-Release:	1%{?dist}
+Release:	2%{?dist}
 License:	BSD
 Group:		System Environment/Libraries
 URL:		http://www.sourceforge.net/projects/libnet-dev/
@@ -36,15 +36,19 @@ mkdir __dist_sample
 cp -a sample __dist_sample
 
 %build
-%configure
+%configure --libdir=/%{_lib}
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
 
-# Don't install any static .a and libtool .la files
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la}
+# Move %{name}.so to %{_libdir}, remove static .a and libtool .la files
+rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.{a,la,so}
+pushd $RPM_BUILD_ROOT/%{_lib}
+mkdir -p $RPM_BUILD_ROOT%{_libdir}
+ln -sf ../../%{_lib}/$(ls %{name}.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/%{name}.so
+popd
 
 # Prepare samples directory and perform some fixes
 rm -rf __dist_sample/sample/win32
@@ -67,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
-%{_libdir}/%{name}.so.*
+/%{_lib}/%{name}.so.*
 
 %files devel
 %defattr(-,root,root,-)
@@ -80,6 +84,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/%{name}*.3*
 
 %changelog
+* Fri Aug 21 2009 Robert Scheck <robert at fedoraproject.org> 1.1.4-3
+- Move libnet.so.* to /lib[64] to avoid static linking (#518150)
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
 * Thu Jun 11 2009 Robert Scheck <robert at fedoraproject.org> 1.1.4-1
 - Upgrade to 1.1.4
 




More information about the fedora-extras-commits mailing list