diff --git a/libnet.spec b/libnet.spec index ddcbc8b..c43d5c6 100644 --- a/libnet.spec +++ b/libnet.spec @@ -7,6 +7,7 @@ Group: System Environment/Libraries URL: http://www.sourceforge.net/projects/libnet-dev/ Source: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Conflicts: filesystem < 3 %description Libnet is an API to help with the construction and handling of network @@ -36,19 +37,15 @@ mkdir __dist_sample cp -a sample __dist_sample %build -%configure --libdir=/%{_lib} +%configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install -# 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 +# remove static .a and libtool .la files +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la} # Prepare samples directory and perform some fixes rm -rf __dist_sample/sample/win32 @@ -71,7 +68,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README doc/CHANGELOG doc/CONTRIB doc/COPYING -/%{_lib}/%{name}.so.* +%{_libdir}/%{name}.so.* %files devel %defattr(-,root,root,-)