1 | Summary: C library for portable packet creation and injection |
---|
2 | Name: libnet |
---|
3 | Version: 1.1.6 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: BSD |
---|
6 | Group: System Environment/Libraries |
---|
7 | URL: http://www.sourceforge.net/projects/libnet-dev/ |
---|
8 | Source0: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz |
---|
9 | |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | |
---|
15 | %description |
---|
16 | Libnet is an API to help with the construction and handling of network |
---|
17 | packets. It provides a portable framework for low-level network packet |
---|
18 | writing and handling (use libnet in conjunction with libpcap and you can |
---|
19 | write some really cool stuff). Libnet includes packet creation at the IP |
---|
20 | layer and at the link layer as well as a host of supplementary and |
---|
21 | complementary functionality. |
---|
22 | |
---|
23 | %package devel |
---|
24 | Summary: Development files for the libnet library |
---|
25 | Summary(ja): libnet ライブラリの開発用ファイル |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | |
---|
29 | %description devel |
---|
30 | The libnet-devel package includes header files and libraries necessary |
---|
31 | for developing programs which use the libnet library. Libnet is very handy |
---|
32 | with which to write network tools and network test code. See the manpage |
---|
33 | and sample test code for more detailed information. |
---|
34 | |
---|
35 | %prep |
---|
36 | %setup -q |
---|
37 | |
---|
38 | # Keep the sample directory untouched by make |
---|
39 | rm -rf __dist_sample |
---|
40 | mkdir -p __dist_sample |
---|
41 | cp -a sample __dist_sample |
---|
42 | |
---|
43 | %build |
---|
44 | %configure |
---|
45 | make %{?_smp_mflags} |
---|
46 | |
---|
47 | %install |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install |
---|
50 | |
---|
51 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la} |
---|
52 | |
---|
53 | # Prepare samples directory and perform some fixes |
---|
54 | rm -rf __dist_sample/sample/win32 |
---|
55 | rm -f __dist_sample/sample/Makefile.{am,in} |
---|
56 | sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \ |
---|
57 | __dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new |
---|
58 | touch -c -r __dist_sample/sample/libnet_test.h{,.new} |
---|
59 | mv -f __dist_sample/sample/libnet_test.h{.new,} |
---|
60 | |
---|
61 | # Remove makefile relics from documentation |
---|
62 | rm -f doc/html/Makefile* |
---|
63 | |
---|
64 | %clean |
---|
65 | rm -rf $RPM_BUILD_ROOT |
---|
66 | |
---|
67 | %post -p /sbin/ldconfig |
---|
68 | |
---|
69 | %postun -p /sbin/ldconfig |
---|
70 | |
---|
71 | %files |
---|
72 | %defattr(-,root,root,-) |
---|
73 | %doc README doc/CHANGELOG doc/CONTRIB doc/COPYING |
---|
74 | %{_libdir}/%{name}.so.* |
---|
75 | |
---|
76 | %files devel |
---|
77 | %defattr(-,root,root,-) |
---|
78 | %doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING |
---|
79 | %doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/ |
---|
80 | %{_bindir}/%{name}-config |
---|
81 | %{_libdir}/%{name}.so |
---|
82 | %{_includedir}/libnet.h |
---|
83 | %{_includedir}/%{name}/ |
---|
84 | %{_mandir}/man3/%{name}*.3* |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Thu Feb 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1.6-1 |
---|
88 | - updated to 1.1.6 |
---|
89 | |
---|
90 | * Thu Mar 15 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.5-1 |
---|
91 | - updated to 1.1.5; spec revamped |
---|
92 | |
---|
93 | - Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2.1-2 |
---|
94 | - rebuilt with current VineSeed |
---|
95 | |
---|
96 | - Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5 |
---|
97 | - applied new versioning policy |
---|
98 | |
---|
99 | - Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1 |
---|
100 | - initial build for Vine Linux based on FE package. |
---|
101 | |
---|
102 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3 |
---|
103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
104 | |
---|
105 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2 |
---|
106 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
107 | |
---|
108 | * Tue Dec 28 2010 Robert Scheck <robert@fedoraproject.org> 1.1.5-1 |
---|
109 | - Upgrade to 1.1.5 |
---|
110 | |
---|
111 | * Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> 1.1.4-4 |
---|
112 | - Added patch for capability support rather UID check (#589770) |
---|
113 | |
---|
114 | * Fri Aug 21 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-3 |
---|
115 | - Move libnet.so.* to /lib[64] to avoid static linking (#518150) |
---|
116 | |
---|
117 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2 |
---|
118 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
119 | |
---|
120 | * Thu Jun 11 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-1 |
---|
121 | - Upgrade to 1.1.4 |
---|
122 | |
---|
123 | * Sat Jun 06 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-2 |
---|
124 | - Added upstream patch to solve HAVE_CONFIG_H (#501633, #502400) |
---|
125 | |
---|
126 | * Sat May 16 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-1 |
---|
127 | - Upgrade to 1.1.3 |
---|
128 | |
---|
129 | * Sun Apr 19 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-14 |
---|
130 | - Enabled a shared library and made lots of spec file cleanups |
---|
131 | |
---|
132 | * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-13 |
---|
133 | - Rebuild against gcc 4.4 and rpm 4.6 |
---|
134 | |
---|
135 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2.1-12 |
---|
136 | - Autorebuild for GCC 4.3 |
---|
137 | |
---|
138 | * Wed Aug 1 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-11 |
---|
139 | - build with -fPIC (#250296) |
---|
140 | |
---|
141 | * Fri Jan 12 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-10 |
---|
142 | - add debian patch to correct bad checksums |
---|
143 | |
---|
144 | * Tue Aug 29 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-9 |
---|
145 | - rebuild for FC6 |
---|
146 | |
---|
147 | * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-8 |
---|
148 | - rebuild for fc5 |
---|
149 | |
---|
150 | * Thu Dec 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-7 |
---|
151 | - rebuild |
---|
152 | |
---|
153 | * Mon Sep 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-6 |
---|
154 | - bump release and add dist tag |
---|
155 | |
---|
156 | * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5 |
---|
157 | - spec file cleanup |
---|
158 | |
---|
159 | * Fri Aug 26 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-4 |
---|
160 | - use pushd and popd (from Oliver Falk) |
---|
161 | |
---|
162 | * Mon Aug 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-3 |
---|
163 | - Correct dos end of lines |
---|
164 | - add in devel: Provides: %%{name} = %%{version}-%%{release} |
---|
165 | |
---|
166 | * Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-2 |
---|
167 | - put everything in a devel subpackage |
---|
168 | - add smpflags |
---|
169 | - clean in sample |
---|
170 | |
---|
171 | * Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-1 |
---|
172 | - rebuild changing only name |
---|
173 | |
---|
174 | * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2 |
---|
175 | - Rebuild for Fedora Core 2 |
---|
176 | |
---|
177 | * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1 |
---|
178 | - Initial specfile |
---|