1 | Summary: C library for portable packet creation and injection |
---|
2 | Name: libnet |
---|
3 | Version: 1.1.2.1 |
---|
4 | Release: 2%{?_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}-root |
---|
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 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2.1-2 |
---|
75 | - rebuilt with current VineSeed |
---|
76 | |
---|
77 | * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5 |
---|
78 | - applied new versioning policy |
---|
79 | |
---|
80 | * Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1 |
---|
81 | - initial build for Vine Linux based on FE package. |
---|
82 | |
---|
83 | * Tue Aug 29 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-9 |
---|
84 | - rebuild for FC6 |
---|
85 | |
---|
86 | * Fri Feb 17 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-8 |
---|
87 | - rebuild for fc5 |
---|
88 | |
---|
89 | * Thu Dec 22 2005 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-7 |
---|
90 | - rebuild |
---|
91 | |
---|
92 | * Mon Sep 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-6 |
---|
93 | - bump release and add dist tag |
---|
94 | |
---|
95 | * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5 |
---|
96 | - spec file cleanup |
---|
97 | |
---|
98 | * Fri Aug 26 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-4 |
---|
99 | - use pushd and popd (from Oliver Falk) |
---|
100 | |
---|
101 | * Mon Aug 22 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-3 |
---|
102 | - Correct dos end of lines |
---|
103 | - add in devel: Provides: %%{name} = %%{version}-%%{release} |
---|
104 | |
---|
105 | * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-2 |
---|
106 | - put everything in a devel subpackage |
---|
107 | - add smpflags |
---|
108 | - clean in sample |
---|
109 | |
---|
110 | * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-1 |
---|
111 | - rebuild changing only name |
---|
112 | |
---|
113 | * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2 |
---|
114 | - Rebuild for Fedora Core 2 |
---|
115 | |
---|
116 | * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1 |
---|
117 | - Initial specfile |
---|