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