From 008f70ebbc57111f499ee1c148904d4e76731954 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:07:16 +0100 Subject: [PATCH] update to 1.12 (download from code.google.com) libdnet-devel: fix version requirement for libdnet recreate autotools environment to fix shared library extensions [release 1.12-1mamba;Mon Mar 07 2011] --- README.md | 8 +++++ libdnet.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 libdnet.spec diff --git a/README.md b/README.md index e4c4124..7a7a0b9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # libdnet +libdnet provides a simplified, portable interface to several low-level networking routines, including: +* network address manipulation +* kernel arp cache and route table lookup and manipulation +* network firewalling (IP filter, ipfw, ipchains, pf, ...) +* network interface lookup and manipulation +* raw IP packet and Ethernet frame transmission + + diff --git a/libdnet.spec b/libdnet.spec new file mode 100644 index 0000000..e4512a1 --- /dev/null +++ b/libdnet.spec @@ -0,0 +1,90 @@ +Name: libdnet +Version: 1.12 +Release: 1mamba +Summary: Interface to several low-level networking routines +Group: Network/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Tiziana Ferro +URL: http://libdnet.sourceforge.net/ +#Source: http://easynews.dl.sourceforge.net/sourceforge/libdnet/%{name}-%{version}.tar.gz +Source: http://libdnet.googlecode.com/files/libdnet-%{version}.tgz +License: BSD +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +BuildRequires: python-numpy +BuildRequires: python-rpm + +%description +libdnet provides a simplified, portable interface to several low-level networking routines, including: +* network address manipulation +* kernel arp cache and route table lookup and manipulation +* network firewalling (IP filter, ipfw, ipchains, pf, ...) +* network interface lookup and manipulation +* raw IP packet and Ethernet frame transmission + + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +libdnet provides a simplified, portable interface to several low-level networking routines. + +This package contains static libraries and header files need for development. + +%prep +%setup -q + +%build +libtoolize --automake --copy +aclocal -I config +autoheader +automake --add-missing --copy +autoconf +%configure +# "CFLAGS=-fPIC -g -O2" +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall +#ln -s %{_libdir}/libdnet.1 %{buildroot}%{_libdir}/libdnet.so.1 +#ln -s %{_libdir}/libdnet.1.0.1 %{buildroot}%{_libdir}/libdnet.so.1.0.1 +#cp %buildroot/%{_libdir}/libdnet %buildroot/%{_libdir}/libdnet.so + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_sbindir}/dnet +%{_libdir}/libdnet.so.* +%{_mandir}/man8/* +%doc INSTALL README TODO + +%files devel +%defattr(-,root,root) +%{_bindir}/dnet-config +%{_includedir}/dnet.h +%{_includedir}/dnet/*.h +%{_libdir}/libdnet.a +%{_libdir}/libdnet.la +%{_libdir}/libdnet.so +%{_mandir}/man3/* + +%changelog +* Mon Mar 07 2011 Silvan Calarco 1.12-1mamba +- update to 1.12 (download from code.google.com) +- libdnet-devel: fix version requirement for libdnet +- recreate autotools environment to fix shared library extensions + +* Mon Mar 07 2011 Tiziana Ferro 1.11-1mamba +- package created by autospec