Move libnet.so.* to /lib[64] to avoid static linking (#518150)

This commit is contained in:
Robert Scheck 2009-08-21 14:08:50 +00:00
parent 5cdeaa16ac
commit 9f5bc4a855

View File

@ -36,15 +36,19 @@ mkdir __dist_sample
cp -a sample __dist_sample cp -a sample __dist_sample
%build %build
%configure %configure --libdir=/%{_lib}
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
# Don't install any static .a and libtool .la files # Move %{name}.so to %{_libdir}, remove static .a and libtool .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la} 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 # Prepare samples directory and perform some fixes
rm -rf __dist_sample/sample/win32 rm -rf __dist_sample/sample/win32
@ -67,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README doc/CHANGELOG doc/CONTRIB doc/COPYING %doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
%{_libdir}/%{name}.so.* /%{_lib}/%{name}.so.*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -80,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/%{name}*.3* %{_mandir}/man3/%{name}*.3*
%changelog %changelog
* Fri Aug 21 2009 Robert Scheck <robert@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@lists.fedoraproject.org> - 1.1.4-2 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild