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