Summary: High-level API (toolkit) to construct and inject network packets Name: libnet10 Version: 1.0.2a Release: 17 License: BSD Group: System Environment/Libraries URL: http://www.packetfactory.net/libnet/ Source0: http://www.packetfactory.net/libnet/dist/deprecated/libnet-%{version}.tar.gz Source1: libnet10-config.1 Patch0: libnet10-1.0.2a-fedora.patch Patch1: libnet10-1.0.2a-gcc33.patch BuildRequires: %{_includedir}/pcap.h, libtool, autoconf, automake BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Libnet is a high-level API (toolkit) allowing the application programmer to construct and inject network packets. It provides a portable and simplified interface for low-level network packet shaping, handling and injection. Libnet hides much of the tedium of packet creation from the application programmer such as multiplexing, buffer management, arcane packet header information, byte-ordering, OS-dependent issues and much more. Libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary and complementary functionality. This package contains an old and deprecated version of libnet. You need it only if the software you are using hasn't been updated to work with the newer version and the newer API. %package devel Summary: Development files for the libnet library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The libnet10-devel package includes header files and libraries necessary for developing programs which use the libnet library. 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 (traceroute and ping were easily rewritten using libnet and libpcap). This package contains an old and deprecated version of libnet. You need it only if the software you are using hasn't been updated to work with the newer version and the newer API. %prep %setup -q -n Libnet-%{version} %patch0 -p1 -b .fedora %patch1 -p1 -b .gcc33 # Required to apply changes from Patch0 autoreconf -i -f %build %configure --with-pf_packet=yes make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install # Complete the package renaming at missing places mkdir -p $RPM_BUILD_ROOT%{_includedir}/%{name}/ mv -f $RPM_BUILD_ROOT%{_includedir}/{libnet{,.h},%{name}} mv -f $RPM_BUILD_ROOT%{_bindir}/libnet{,10}-config # Install all man pages to their appropriate place mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,3}/ install -p -m 644 doc/libnet.3 $RPM_BUILD_ROOT%{_mandir}/man3/%{name}.3 install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/%{name}-config.1 # Don't install any static .a and libtool .la files rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc README doc/COPYING doc/CHANGELOG %{_libdir}/%{name}.so.* %{_mandir}/man3/%{name}.3* %files devel %defattr(-,root,root,-) %{_bindir}/%{name}-config %{_libdir}/%{name}.so %{_mandir}/man1/%{name}-config.1* %{_includedir}/%{name}/ %changelog * Sat Apr 18 2009 Robert Scheck 1.0.2a-17 - Enabled a shared library and made lots of spec file cleanups * Mon Feb 23 2009 Robert Scheck 1.0.2a-16 - Rebuild against gcc 4.4 and rpm 4.6 * Sun Jun 15 2008 Patrice Dumas - 1.0.2a-15 - copy config.* from rpm directory, those shpped with libnet10 are too old * Tue Feb 19 2008 Fedora Release Engineering - 1.0.2a-14 - Autorebuild for GCC 4.3 * Mon May 7 2007 Patrice Dumas - 1.0.2a-13 - add a libnet-1.0 directory with a libnet.a link to the library * Tue Aug 29 2006 Patrice Dumas - 1.0.2a-12 - rename gcc33.patch to libnet10-gcc33.patch - patch to have a version parallel installable with libnet (#229297), correct perms and keep timestamps - remove Obsoletes and Provides for libnet and libnet-devel (#229297) * Tue Aug 29 2006 Patrice Dumas - 1.0.2a-11 - rebuild for FC6 * Fri Feb 17 2006 Patrice Dumas - 1.0.2a-10 - rebuild for fc5 * Wed Feb 1 2006 Patrice Dumas - 1.0.2a-9 - rebuild * Sun Aug 28 2005 Michael Schwendt - 1.0.2a-8 - add versioned Obsoletes/Provides for libnet and libnet-devel so libnet/libnet-devel >= 1.1.0 upgrade this and don't just conflict - pass CFLAGS to make explicitly * Sun May 22 2005 Jeremy Katz - 1.0.2a-7 - rebuild on all arches * Fri Apr 7 2005 Michael Schwendt - rebuilt * Wed Sep 17 2003 Phillip Compton - 0:1.0.2a-0.fdr.5 - Fixed last header file permission. * Mon Sep 15 2003 Phillip Compton - 0:1.0.2a-0.fdr.4 - Spec patch from Michael Schwendt (header file permissions) * Sun Sep 07 2003 Phillip Compton - 0:1.0.2a-0.fdr.3 - Fixed file permissions. * Wed Jul 30 2003 Phillip Compton - 0:1.0.2a-0.fdr.2 - gcc33 patch from Enrico Scholz. - no longer need gcc32. - spec same for shrike and severn. - renamed spec to libnet10.spec. * Fri Jul 25 2003 Phillip Compton - 0:1.0.2a-0.fdr.1 - shrke vs severn differentiation - buildroot -> RPM_BUILD_ROOT. - Renamed to libnet10. - Provides libnet - Obsoletes libnet < 1.1.0. - BuildReq gcc32 for severn. * Mon Apr 07 2003 Phillip Compton - 0:1.0.2a-0.fdr.1 - Initial Release.