|
|
10c479 |
Summary: C library for portable packet creation and injection
|
|
|
10c479 |
Name: libnet
|
|
|
10c479 |
Version: 1.1.6
|
|
|
a98580 |
Release: 7%{?dist}
|
|
|
10c479 |
License: BSD
|
|
|
10c479 |
Group: System Environment/Libraries
|
|
|
10c479 |
URL: http://www.sourceforge.net/projects/libnet-dev/
|
|
|
10c479 |
Source: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
|
|
|
10c479 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
10c479 |
|
|
|
10c479 |
%description
|
|
|
10c479 |
Libnet is an API to help with the construction and handling of network
|
|
|
10c479 |
packets. It provides a portable framework for low-level network packet
|
|
|
10c479 |
writing and handling (use libnet in conjunction with libpcap and you can
|
|
|
10c479 |
write some really cool stuff). Libnet includes packet creation at the IP
|
|
|
10c479 |
layer and at the link layer as well as a host of supplementary and
|
|
|
10c479 |
complementary functionality.
|
|
|
10c479 |
|
|
|
10c479 |
%package devel
|
|
|
10c479 |
Summary: Development files for the libnet library
|
|
|
10c479 |
Group: Development/Libraries
|
|
|
10c479 |
Requires: %{name} = %{version}-%{release}
|
|
|
10c479 |
|
|
|
10c479 |
%description devel
|
|
|
10c479 |
The libnet-devel package includes header files and libraries necessary
|
|
|
10c479 |
for developing programs which use the libnet library. Libnet is very handy
|
|
|
10c479 |
with which to write network tools and network test code. See the manpage
|
|
|
10c479 |
and sample test code for more detailed information.
|
|
|
10c479 |
|
|
|
10c479 |
%prep
|
|
|
10c479 |
%setup -q
|
|
|
10c479 |
|
|
|
10c479 |
# Keep the sample directory untouched by make
|
|
|
10c479 |
rm -rf __dist_sample
|
|
|
10c479 |
mkdir __dist_sample
|
|
|
10c479 |
cp -a sample __dist_sample
|
|
|
10c479 |
|
|
|
10c479 |
%build
|
|
|
10c479 |
%configure --libdir=%{_libdir}
|
|
|
10c479 |
make %{?_smp_mflags}
|
|
|
10c479 |
|
|
|
10c479 |
%install
|
|
|
10c479 |
rm -rf $RPM_BUILD_ROOT
|
|
|
10c479 |
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
|
|
10c479 |
|
|
|
10c479 |
# Move %%{name}.so to %%{_libdir}, remove static .a and libtool .la files
|
|
|
10c479 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}.{a,la,so}
|
|
|
10c479 |
pushd $RPM_BUILD_ROOT/%{_libdir}
|
|
|
10c479 |
#mkdir -p $RPM_BUILD_ROOT%%{_libdir}
|
|
|
10c479 |
ln -sf ../../%{_libdir}/$(ls %{name}.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/%{name}.so
|
|
|
10c479 |
popd
|
|
|
10c479 |
|
|
|
10c479 |
# Prepare samples directory and perform some fixes
|
|
|
10c479 |
rm -rf __dist_sample/sample/win32
|
|
|
10c479 |
rm -f __dist_sample/sample/Makefile.{am,in}
|
|
|
10c479 |
sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
|
|
|
10c479 |
__dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new
|
|
|
10c479 |
touch -c -r __dist_sample/sample/libnet_test.h{,.new}
|
|
|
10c479 |
mv -f __dist_sample/sample/libnet_test.h{.new,}
|
|
|
10c479 |
|
|
|
10c479 |
# Remove makefile relics from documentation
|
|
|
10c479 |
rm -f doc/html/Makefile*
|
|
|
10c479 |
|
|
|
10c479 |
%clean
|
|
|
10c479 |
rm -rf $RPM_BUILD_ROOT
|
|
|
10c479 |
|
|
|
10c479 |
%post -p /sbin/ldconfig
|
|
|
10c479 |
|
|
|
10c479 |
%postun -p /sbin/ldconfig
|
|
|
10c479 |
|
|
|
10c479 |
%files
|
|
|
10c479 |
%defattr(-,root,root,-)
|
|
|
10c479 |
%doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
|
|
|
10c479 |
%{_libdir}/%{name}.so.*
|
|
|
10c479 |
|
|
|
10c479 |
%files devel
|
|
|
10c479 |
%defattr(-,root,root,-)
|
|
|
10c479 |
%doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
|
|
|
10c479 |
%doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/
|
|
|
10c479 |
%{_bindir}/%{name}-config
|
|
|
10c479 |
%{_libdir}/%{name}.so
|
|
|
10c479 |
%{_includedir}/libnet.h
|
|
|
10c479 |
%{_includedir}/%{name}/
|
|
|
10c479 |
%{_mandir}/man3/%{name}*.3*
|
|
|
10c479 |
|
|
|
10c479 |
%changelog
|
|
|
a98580 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.6-7
|
|
|
a98580 |
- Mass rebuild 2014-01-24
|
|
|
a98580 |
|
|
|
a98580 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.6-6
|
|
|
a98580 |
- Mass rebuild 2013-12-27
|
|
|
a98580 |
|
|
|
10c479 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-5
|
|
|
10c479 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
10c479 |
|
|
|
10c479 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-4
|
|
|
10c479 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
10c479 |
|
|
|
10c479 |
* Mon Apr 02 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-3
|
|
|
10c479 |
- Removed redundant leading slashes.
|
|
|
10c479 |
|
|
|
10c479 |
* Mon Apr 02 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-2
|
|
|
10c479 |
- Move from lib to libdir.
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Mar 30 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-1
|
|
|
10c479 |
- Upgrade to 1.1.6, BZ 808394.
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
|
|
|
10c479 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
10c479 |
|
|
|
10c479 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
|
|
|
10c479 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
10c479 |
|
|
|
10c479 |
* Tue Dec 28 2010 Robert Scheck <robert@fedoraproject.org> 1.1.5-1
|
|
|
10c479 |
- Upgrade to 1.1.5
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> 1.1.4-4
|
|
|
10c479 |
- Added patch for capability support rather UID check (#589770)
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Aug 21 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-3
|
|
|
10c479 |
- Move libnet.so.* to /lib[64] to avoid static linking (#518150)
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
10c479 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
10c479 |
|
|
|
10c479 |
* Thu Jun 11 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-1
|
|
|
10c479 |
- Upgrade to 1.1.4
|
|
|
10c479 |
|
|
|
10c479 |
* Sat Jun 06 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-2
|
|
|
10c479 |
- Added upstream patch to solve HAVE_CONFIG_H (#501633, #502400)
|
|
|
10c479 |
|
|
|
10c479 |
* Sat May 16 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-1
|
|
|
10c479 |
- Upgrade to 1.1.3
|
|
|
10c479 |
|
|
|
10c479 |
* Sun Apr 19 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-14
|
|
|
10c479 |
- Enabled a shared library and made lots of spec file cleanups
|
|
|
10c479 |
|
|
|
10c479 |
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-13
|
|
|
10c479 |
- Rebuild against gcc 4.4 and rpm 4.6
|
|
|
10c479 |
|
|
|
10c479 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2.1-12
|
|
|
10c479 |
- Autorebuild for GCC 4.3
|
|
|
10c479 |
|
|
|
10c479 |
* Wed Aug 1 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-11
|
|
|
10c479 |
- build with -fPIC (#250296)
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Jan 12 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-10
|
|
|
10c479 |
- add debian patch to correct bad checksums
|
|
|
10c479 |
|
|
|
10c479 |
* Tue Aug 29 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-9
|
|
|
10c479 |
- rebuild for FC6
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-8
|
|
|
10c479 |
- rebuild for fc5
|
|
|
10c479 |
|
|
|
10c479 |
* Thu Dec 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-7
|
|
|
10c479 |
- rebuild
|
|
|
10c479 |
|
|
|
10c479 |
* Mon Sep 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-6
|
|
|
10c479 |
- bump release and add dist tag
|
|
|
10c479 |
|
|
|
10c479 |
* Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
|
|
|
10c479 |
- spec file cleanup
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Aug 26 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-4
|
|
|
10c479 |
- use pushd and popd (from Oliver Falk)
|
|
|
10c479 |
|
|
|
10c479 |
* Mon Aug 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-3
|
|
|
10c479 |
- Correct dos end of lines
|
|
|
10c479 |
- add in devel: Provides: %%{name} = %%{version}-%%{release}
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-2
|
|
|
10c479 |
- put everything in a devel subpackage
|
|
|
10c479 |
- add smpflags
|
|
|
10c479 |
- clean in sample
|
|
|
10c479 |
|
|
|
10c479 |
* Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-1
|
|
|
10c479 |
- rebuild changing only name
|
|
|
10c479 |
|
|
|
10c479 |
* Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
|
|
|
10c479 |
- Rebuild for Fedora Core 2
|
|
|
10c479 |
|
|
|
10c479 |
* Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
|
|
|
10c479 |
- Initial specfile
|