From 4c7acc99158c84319a759c8f11946c7e5ca15857 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:08:38 +0100 Subject: [PATCH] rebuilt in /usr [release 1.1.6-2mamba;Sat May 01 2021] --- libnet.spec | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/libnet.spec b/libnet.spec index d9fccb2..30d2486 100644 --- a/libnet.spec +++ b/libnet.spec @@ -1,6 +1,6 @@ Name: libnet Version: 1.1.6 -Release: 1mamba +Release: 2mamba Summary: High-level API to construct and inject network packets Group: System/Libraries Vendor: openmamba @@ -13,7 +13,6 @@ License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Libnet is a high-level API (toolkit) allowing the application programmer to construct and inject network packets. @@ -35,12 +34,14 @@ Libnet features portable packet creation interfaces at the IP layer and link lay Using libnet, quick and simple packet assembly applications can be whipped up with little effort. With a bit more time, more complex programs can be written. This package contains the static library and headers for development. +%debug_package + %prep %setup -q #%patch0 -p1 %build -%configure --libdir=/%{_lib} \ +%configure \ %if "%{_host}" != "%{_build}" ac_libnet_have_pf_packet=yes \ ac_cv_lbl_unaligned_fail=no \ @@ -50,22 +51,25 @@ ac_cv_libnet_endianess=lil %make %install -test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + %makeinstall -install -d -m755 $RPM_BUILD_ROOT%{_mandir}/man3/ + +install -d -m755 %{buildroot}%{_mandir}/man3/ install -m644 doc/man/man3/libnet-functions.h.3 \ - $RPM_BUILD_ROOT%{_mandir}/man3/libnet.3 + %{buildroot}%{_mandir}/man3/libnet.3 install -D -m755 libnet-config %{buildroot}%{_bindir}/libnet-config %clean -test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) -/%{_lib}/libnet.so.* +%{_libdir}/libnet.so.* +%doc doc/COPYING %files devel %defattr(-,root,root) @@ -77,16 +81,19 @@ test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" %{_includedir}/libnet/libnet-macros.h %{_includedir}/libnet/libnet-structures.h %{_includedir}/libnet/libnet-types.h -/%{_lib}/libnet.so -/%{_lib}/libnet.la -/%{_lib}/libnet.a -%{_mandir}/man3/libnet.3.gz -%{_mandir}/man3/libnet*.h.3.gz +%{_libdir}/libnet.so +%{_libdir}/libnet.la +%{_libdir}/libnet.a +%{_mandir}/man3/libnet.3* +%{_mandir}/man3/libnet*.h.3* %doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION %doc doc/PACKET_BUILDING doc/PORTED doc/RAWSOCKET_NON_SEQUITUR doc/TODO %doc doc/html/*.html doc/html/doxygen.png %changelog +* Sat May 01 2021 Silvan Calarco 1.1.6-2mamba +- rebuilt in /usr + * Sat Dec 01 2012 Automatic Build System 1.1.6-1mamba - update to 1.1.6