rpms/libnet/devel libnet.spec,1.17,1.18
Robert Scheck
robert at fedoraproject.org
Fri Aug 21 14:08:50 UTC 2009
Author: robert
Update of /cvs/pkgs/rpms/libnet/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18337/devel
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/devel/libnet.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- libnet.spec 25 Jul 2009 06:10:58 -0000 1.17
+++ libnet.spec 21 Aug 2009 14:08:50 -0000 1.18
@@ -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,9 @@ 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
More information about the fedora-extras-commits
mailing list