Move libnet.so.* to /lib[64] to avoid static linking (#518150)
This commit is contained in:
parent
5cdeaa16ac
commit
9f5bc4a855
15
libnet.spec
15
libnet.spec
@ -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@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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user