[521] | 1 | Summary: C library for portable packet creation and injection |
---|
| 2 | Name: libnet |
---|
| 3 | Version: 1.1.2.1 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: BSD |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | URL: http://www.packetfactory.net/libnet/ |
---|
| 8 | Source0: http://www.packetfactory.net/libnet/dist/libnet-%{version}.tar.gz |
---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 10 | |
---|
| 11 | %description |
---|
| 12 | Libnet is an API to help with the construction and handling of network packets. |
---|
| 13 | It provides a portable framework for low-level network packet writing and |
---|
| 14 | handling (use libnet in conjunction with libpcap and you can write some really |
---|
| 15 | cool stuff). Libnet includes packet creation at the IP layer and at the link |
---|
| 16 | layer as well as a host of supplementary and complementary functionality. |
---|
| 17 | Libnet is very handy with which to write network tools and network test code. |
---|
| 18 | See the manpage and sample test code for more detailed information. |
---|
| 19 | |
---|
| 20 | %package devel |
---|
| 21 | Summary: Development files for libnet |
---|
| 22 | Group: Development/Libraries |
---|
| 23 | Provides: %{name} = %{version}-%{release} |
---|
| 24 | |
---|
| 25 | %description devel |
---|
| 26 | Libnet is an API to help with the construction and handling of network packets. |
---|
| 27 | It provides a portable framework for low-level network packet writing and |
---|
| 28 | handling (use libnet in conjunction with libpcap and you can write some really |
---|
| 29 | cool stuff). Libnet includes packet creation at the IP layer and at the link |
---|
| 30 | layer as well as a host of supplementary and complementary functionality. |
---|
| 31 | Libnet is very handy with which to write network tools and network test code. |
---|
| 32 | See the manpage and sample test code for more detailed information. |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -q -n libnet |
---|
| 37 | sed -i -e 's/\r$//' doc/CHANGELOG doc/CONTRIB |
---|
| 38 | find . -depth -type d -name CVS -exec rm -rf {} ';' |
---|
| 39 | rm -rf sample/win32 |
---|
| 40 | rm -f sample/.\#* sample/.*.swp |
---|
| 41 | |
---|
| 42 | %build |
---|
| 43 | %configure |
---|
| 44 | make %{?_smp_mflags} |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | rm -rf %{buildroot} |
---|
| 48 | make DESTDIR=%{buildroot} install |
---|
| 49 | |
---|
| 50 | install -D --mode=0755 libnet-config %{buildroot}%{_bindir}/libnet-config |
---|
| 51 | |
---|
| 52 | install -d --mode=0755 %{buildroot}%{_mandir}/man3 |
---|
| 53 | install -D --mode=0644 doc/man/man3/libnet*.3 %{buildroot}%{_mandir}/man3/ |
---|
| 54 | |
---|
| 55 | make -C sample clean |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | rm -rf %{buildroot} |
---|
| 59 | |
---|
| 60 | %files devel |
---|
| 61 | %defattr(-,root,root,-) |
---|
| 62 | %doc README VERSION |
---|
| 63 | %doc doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES |
---|
| 64 | %doc doc/MIGRATION doc/PACKET_BUILDING doc/PORTED doc/RAWSOCKET_NON_SEQUITUR |
---|
| 65 | %doc doc/TODO doc/html/ sample/ |
---|
| 66 | |
---|
| 67 | %{_bindir}/libnet-config |
---|
| 68 | %{_includedir}/libnet/ |
---|
| 69 | %{_includedir}/libnet.h |
---|
| 70 | %{_libdir}/libnet.a |
---|
| 71 | %{_mandir}/man3/libnet* |
---|
| 72 | |
---|
| 73 | %changelog |
---|
| 74 | * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5 |
---|
| 75 | - applied new versioning policy |
---|
| 76 | |
---|
| 77 | * Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1 |
---|
| 78 | - initial build for Vine Linux based on FE package. |
---|
| 79 | |
---|
| 80 | * Tue Aug 29 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-9 |
---|
| 81 | - rebuild for FC6 |
---|
| 82 | |
---|
| 83 | * Fri Feb 17 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-8 |
---|
| 84 | - rebuild for fc5 |
---|
| 85 | |
---|
| 86 | * Thu Dec 22 2005 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-7 |
---|
| 87 | - rebuild |
---|
| 88 | |
---|
| 89 | * Mon Sep 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-6 |
---|
| 90 | - bump release and add dist tag |
---|
| 91 | |
---|
| 92 | * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5 |
---|
| 93 | - spec file cleanup |
---|
| 94 | |
---|
| 95 | * Fri Aug 26 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-4 |
---|
| 96 | - use pushd and popd (from Oliver Falk) |
---|
| 97 | |
---|
| 98 | * Mon Aug 22 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-3 |
---|
| 99 | - Correct dos end of lines |
---|
| 100 | - add in devel: Provides: %%{name} = %%{version}-%%{release} |
---|
| 101 | |
---|
| 102 | * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-2 |
---|
| 103 | - put everything in a devel subpackage |
---|
| 104 | - add smpflags |
---|
| 105 | - clean in sample |
---|
| 106 | |
---|
| 107 | * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-1 |
---|
| 108 | - rebuild changing only name |
---|
| 109 | |
---|
| 110 | * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2 |
---|
| 111 | - Rebuild for Fedora Core 2 |
---|
| 112 | |
---|
| 113 | * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1 |
---|
| 114 | - Initial specfile |
---|