2021-01-02 21:31:52 +00:00
|
|
|
Summary: C library for portable packet creation and injection
|
|
|
|
Name: libnet
|
|
|
|
Version: 1.2
|
2022-01-20 16:47:10 +00:00
|
|
|
Release: 5%{?dist}
|
2021-01-02 21:31:52 +00:00
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/libnet/libnet
|
|
|
|
Source0: https://github.com/libnet/libnet/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
2021-04-08 12:32:05 +00:00
|
|
|
Patch0: libnet-config.patch
|
2021-01-02 21:31:52 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: %{_bindir}/pod2man
|
2005-09-12 19:59:58 +00:00
|
|
|
|
|
|
|
%description
|
2009-05-16 17:04:16 +00:00
|
|
|
Libnet is an API to help with the construction and handling of network
|
|
|
|
packets. It provides a portable framework for low-level network packet
|
|
|
|
writing and handling (use libnet in conjunction with libpcap and you can
|
|
|
|
write some really cool stuff). Libnet includes packet creation at the IP
|
|
|
|
layer and at the link layer as well as a host of supplementary and
|
|
|
|
complementary functionality.
|
2005-09-12 19:59:58 +00:00
|
|
|
|
|
|
|
%package devel
|
2021-01-02 21:31:52 +00:00
|
|
|
Summary: Development files for the libnet library
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
2005-09-12 19:59:58 +00:00
|
|
|
|
|
|
|
%description devel
|
2009-05-16 17:04:16 +00:00
|
|
|
The libnet-devel package includes header files and libraries necessary
|
2021-01-02 21:31:52 +00:00
|
|
|
for developing programs which use the libnet library. Libnet is very
|
|
|
|
handy with which to write network tools and network test code. See the
|
|
|
|
man page and sample test code for more detailed information.
|
|
|
|
|
|
|
|
%if 0%{!?_without_doc:1}
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for the libnet library
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Libnet is an API to help with the construction and handling of network
|
|
|
|
packets. It provides a portable framework for low-level network packet
|
|
|
|
writing and handling. This package contains the API documentation for
|
|
|
|
developing applications that use libnet.
|
|
|
|
%endif
|
2005-09-12 19:59:58 +00:00
|
|
|
|
|
|
|
%prep
|
2009-05-16 17:04:16 +00:00
|
|
|
%setup -q
|
2021-04-08 12:32:05 +00:00
|
|
|
%patch0 -p1
|
2021-01-02 21:31:52 +00:00
|
|
|
# Avoid library soname bump (https://github.com/libnet/libnet/issues/115)
|
|
|
|
sed -e 's/-version-info 9:0:0/-version-info 9:0:8/' -i src/Makefile.{am,in}
|
2007-07-31 23:00:49 +00:00
|
|
|
|
2009-05-16 17:04:16 +00:00
|
|
|
%build
|
2013-12-20 23:14:31 +00:00
|
|
|
%configure
|
2021-01-02 21:31:52 +00:00
|
|
|
%make_build
|
2005-09-12 19:59:58 +00:00
|
|
|
|
|
|
|
%install
|
2021-01-02 21:31:52 +00:00
|
|
|
%make_install INSTALL='install -p'
|
|
|
|
|
|
|
|
# Don't install any libtool .la files
|
2013-12-20 23:14:31 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la}
|
2005-09-12 19:59:58 +00:00
|
|
|
|
2021-01-02 21:31:52 +00:00
|
|
|
# Clean up for later usage in documentation
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
|
2009-05-16 17:04:16 +00:00
|
|
|
|
2021-01-02 21:31:52 +00:00
|
|
|
# Prepare samples for usage in documentation
|
|
|
|
rm -rf sample/{Makefile*,win32}
|
|
|
|
for file in sample/*.[hc]; do
|
|
|
|
sed \
|
|
|
|
-e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
|
|
|
|
-e 's@#include "../include/config.h"@#include <config.h>@' \
|
|
|
|
$file > $file.new
|
|
|
|
touch -c -r $file{,.new}
|
|
|
|
mv -f $file{.new,}
|
|
|
|
done
|
2009-05-16 17:04:16 +00:00
|
|
|
|
2019-01-22 17:39:56 +00:00
|
|
|
%ldconfig_scriptlets
|
2009-05-16 17:04:16 +00:00
|
|
|
|
|
|
|
%files
|
2021-01-02 21:31:52 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md ChangeLog.md
|
2012-04-02 15:24:56 +00:00
|
|
|
%{_libdir}/%{name}.so.*
|
2005-09-12 19:59:58 +00:00
|
|
|
|
2009-05-16 17:04:16 +00:00
|
|
|
%files devel
|
2021-01-02 21:31:52 +00:00
|
|
|
%doc doc/MIGRATION.md doc/RAWSOCKET.md sample/
|
2009-05-16 17:04:16 +00:00
|
|
|
%{_bindir}/%{name}-config
|
|
|
|
%{_libdir}/%{name}.so
|
2021-01-02 21:31:52 +00:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_includedir}/%{name}.h
|
2009-05-16 17:04:16 +00:00
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_mandir}/man3/%{name}*.3*
|
2007-07-31 23:00:49 +00:00
|
|
|
|
2021-01-02 21:31:52 +00:00
|
|
|
%if 0%{!?_without_doc:1}
|
|
|
|
%files doc
|
|
|
|
%doc doc/html/
|
|
|
|
%endif
|
|
|
|
|
2005-09-12 19:59:58 +00:00
|
|
|
%changelog
|
2022-01-20 16:47:10 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 11:55:44 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-08 12:32:05 +00:00
|
|
|
* Thu Apr 08 2021 Adrian Reber <adrian@lisas.de> - 1.2-3
|
|
|
|
- Fix file conflicts with libnet-devel
|
|
|
|
|
2021-01-26 17:35:39 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-02 21:31:52 +00:00
|
|
|
* Sat Jan 02 2021 Robert Scheck <robert@fedoraproject.org> 1.2-1
|
|
|
|
- Upgrade to 1.2 (#1912031)
|
|
|
|
|
2020-07-28 05:10:38 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-29 09:50:03 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 13:52:56 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 07:43:27 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 08:29:35 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 22:47:02 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 01:54:36 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 19:19:36 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 19:06:42 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-04 03:35:46 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 16:10:38 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-17 04:49:33 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 04:34:47 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-12-20 23:14:31 +00:00
|
|
|
* Fri Dec 20 2013 Robert Scheck <robert@fedoraproject.org> 1.1.6-7
|
|
|
|
- Run autoreconf to recognize aarch64 (#925813)
|
|
|
|
- Conditionalized usage of %%{_lib} vs %%{_libdir} for RHEL < 7
|
|
|
|
- Tight run-time dependencies between sub-packages via %%{?_isa}
|
|
|
|
|
2013-08-03 06:21:40 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 04:49:17 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 20:35:39 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-02 15:24:56 +00:00
|
|
|
* Mon Apr 02 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-3
|
|
|
|
- Removed redundant leading slashes.
|
|
|
|
|
2012-04-02 14:54:37 +00:00
|
|
|
* Mon Apr 02 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-2
|
|
|
|
- Move from lib to libdir.
|
|
|
|
|
2012-03-30 12:44:36 +00:00
|
|
|
* Fri Mar 30 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-1
|
|
|
|
- Upgrade to 1.1.6, BZ 808394.
|
|
|
|
|
2012-01-13 08:06:49 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-08 08:38:19 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-28 21:02:29 +00:00
|
|
|
* Tue Dec 28 2010 Robert Scheck <robert@fedoraproject.org> 1.1.5-1
|
|
|
|
- Upgrade to 1.1.5
|
|
|
|
|
2010-07-09 21:16:57 +00:00
|
|
|
* Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> 1.1.4-4
|
|
|
|
- Added patch for capability support rather UID check (#589770)
|
|
|
|
|
2009-08-21 14:08:50 +00:00
|
|
|
* Fri Aug 21 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-3
|
|
|
|
- Move libnet.so.* to /lib[64] to avoid static linking (#518150)
|
|
|
|
|
2009-07-25 06:10:58 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-11 11:58:59 +00:00
|
|
|
* Thu Jun 11 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-1
|
|
|
|
- Upgrade to 1.1.4
|
|
|
|
|
2009-06-06 13:21:28 +00:00
|
|
|
* Sat Jun 06 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-2
|
|
|
|
- Added upstream patch to solve HAVE_CONFIG_H (#501633, #502400)
|
|
|
|
|
2009-05-16 17:04:16 +00:00
|
|
|
* Sat May 16 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-1
|
|
|
|
- Upgrade to 1.1.3
|
|
|
|
|
|
|
|
* Sun Apr 19 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-14
|
|
|
|
- Enabled a shared library and made lots of spec file cleanups
|
|
|
|
|
2009-02-23 21:16:52 +00:00
|
|
|
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-13
|
|
|
|
- Rebuild against gcc 4.4 and rpm 4.6
|
|
|
|
|
2008-02-19 18:22:11 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2.1-12
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-07-31 23:00:49 +00:00
|
|
|
* Wed Aug 1 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-11
|
|
|
|
- build with -fPIC (#250296)
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Fri Jan 12 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-10
|
|
|
|
- add debian patch to correct bad checksums
|
|
|
|
|
|
|
|
* Tue Aug 29 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-9
|
2006-08-29 11:09:47 +00:00
|
|
|
- rebuild for FC6
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-8
|
2006-02-17 15:12:58 +00:00
|
|
|
- rebuild for fc5
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Thu Dec 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-7
|
2005-12-22 09:23:45 +00:00
|
|
|
- rebuild
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Mon Sep 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-6
|
2005-09-12 20:07:13 +00:00
|
|
|
- bump release and add dist tag
|
|
|
|
|
2005-09-12 19:59:58 +00:00
|
|
|
* Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
|
|
|
|
- spec file cleanup
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Fri Aug 26 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-4
|
2005-09-12 19:59:58 +00:00
|
|
|
- use pushd and popd (from Oliver Falk)
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Mon Aug 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-3
|
2005-09-12 19:59:58 +00:00
|
|
|
- Correct dos end of lines
|
2006-08-29 11:09:47 +00:00
|
|
|
- add in devel: Provides: %%{name} = %%{version}-%%{release}
|
2005-09-12 19:59:58 +00:00
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-2
|
2005-09-12 19:59:58 +00:00
|
|
|
- put everything in a devel subpackage
|
|
|
|
- add smpflags
|
|
|
|
- clean in sample
|
|
|
|
|
2007-01-15 23:49:53 +00:00
|
|
|
* Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-1
|
2005-09-12 19:59:58 +00:00
|
|
|
- rebuild changing only name
|
|
|
|
|
|
|
|
* Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
|
|
|
|
- Rebuild for Fedora Core 2
|
|
|
|
|
|
|
|
* Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
|
|
|
|
- Initial specfile
|