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