c62ce2
Name:     libpcap
c62ce2
Epoch:    14
c62ce2
Version:  1.9.1
4158a9
Release:  5%{?dist}
c62ce2
Summary:  A system-independent interface for user-level packet capture
c62ce2
License:  BSD with advertising
c62ce2
URL:      http://www.tcpdump.org
c62ce2
c62ce2
BuildRequires: bison
c62ce2
BuildRequires: bluez-libs-devel
c62ce2
BuildRequires: flex
c62ce2
BuildRequires: git
c62ce2
BuildRequires: glibc-kernheaders >= 2.2.0
4158a9
BuildRequires: rdma-core-devel
c62ce2
c62ce2
Source:  http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
c62ce2
c62ce2
Patch0001:      0001-man-tcpdump-and-tcpslice-have-manpages-in-man8.patch
c62ce2
Patch0002:      0002-pcap-config-mitigate-multilib-conflict.patch
c62ce2
Patch0003:      0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
c62ce2
Patch0004:      0004-invalid-IPv4-address.patch
c62ce2
c62ce2
%description
c62ce2
Libpcap provides a portable framework for low-level network
c62ce2
monitoring.  Libpcap can provide network statistics collection,
c62ce2
security monitoring and network debugging.  Since almost every system
c62ce2
vendor provides a different interface for packet capture, the libpcap
c62ce2
authors created this system-independent API to ease in porting and to
c62ce2
alleviate the need for several system-dependent packet capture modules
c62ce2
in each application.
c62ce2
c62ce2
Install libpcap if you need to do low-level network traffic monitoring
c62ce2
on your network.
c62ce2
c62ce2
%package devel
c62ce2
Summary: Libraries and header files for the libpcap library
c62ce2
Requires: %{name} = %{epoch}:%{version}-%{release}
c62ce2
c62ce2
%description devel
c62ce2
Libpcap provides a portable framework for low-level network
c62ce2
monitoring.  Libpcap can provide network statistics collection,
c62ce2
security monitoring and network debugging.  Since almost every system
c62ce2
vendor provides a different interface for packet capture, the libpcap
c62ce2
authors created this system-independent API to ease in porting and to
c62ce2
alleviate the need for several system-dependent packet capture modules
c62ce2
in each application.
c62ce2
c62ce2
This package provides the libraries, include files, and other
c62ce2
resources needed for developing libpcap applications.
c62ce2
c62ce2
%prep
c62ce2
%autosetup -S git
c62ce2
c62ce2
#sparc needs -fPIC
c62ce2
%ifarch %{sparc}
c62ce2
sed -i -e 's|-fpic|-fPIC|g' configure
c62ce2
%endif
c62ce2
c62ce2
%build
c62ce2
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
4158a9
%configure --enable-rdma
c62ce2
make %{?_smp_mflags}
c62ce2
c62ce2
%install
c62ce2
make DESTDIR=$RPM_BUILD_ROOT install
c62ce2
rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a
c62ce2
c62ce2
%ldconfig_scriptlets
c62ce2
c62ce2
%files
c62ce2
%defattr(-,root,root)
c62ce2
%license LICENSE
c62ce2
%doc README.md CHANGES CREDITS
c62ce2
%{_libdir}/libpcap.so.*
c62ce2
%{_mandir}/man7/pcap*.7*
c62ce2
c62ce2
%files devel
c62ce2
%defattr(-,root,root)
c62ce2
%{_bindir}/pcap-config
c62ce2
%{_includedir}/pcap*.h
c62ce2
%{_includedir}/pcap
c62ce2
%{_libdir}/libpcap.so
c62ce2
%{_libdir}/pkgconfig/libpcap.pc
c62ce2
%{_mandir}/man1/pcap-config.1*
c62ce2
%{_mandir}/man3/pcap*.3*
c62ce2
%{_mandir}/man5/pcap*.5*
c62ce2
c62ce2
%changelog
4158a9
* Mon Jan 18 2021 Michal Ruprich <mruprich@redhat.com> - 14:1.9.1-5
4158a9
- Resolves: #1743650 - Enable inbox support for sniffing offloaded RDMA traffic with tcpdump
4158a9
919c70
* Fri May 22 2020 Michal Ruprich <michalruprich@gmail.com> - 14:1.9.1-4
919c70
- Related: #1806422 - Building libpcap to side-tag for tcpdump
919c70
919c70
* Fri May 22 2020 Michal Ruprich <michalruprich@gmail.com> - 14:1.9.1-3
919c70
- Related: #1743650 - reverting rdma changes due to unresolved dependency loop
919c70
c62ce2
* Wed May 06 2020 Michal Ruprich <michalruprich@gmail.com> - 14:1.9.1-2
c62ce2
- Related: #1806422 - Building libpcap to side-tag for tcpdump
c62ce2
c62ce2
* Thu Apr 09 2020 Michal Ruprich <michalruprich@gmail.com> - 14:1.9.1-1
c62ce2
- Resolves: #1806422 - rebase libpcap to version 1.9.1
c62ce2
- Resolves: #1743650 - [RFE] enable inbox support for sniffing offloaded (RDMA) traffic with tcpdump
c62ce2
- Resolves: #1785330 - Invalid IPv4 addresses are accepted without reporting even a warning
c62ce2
- Resolves: #1792208 - Resource exhaustion while PHB header length validation
c62ce2
c62ce2
* Wed Jul 03 2019 Michal Ruprich <mruprich@redhat.com> - 14:1.9.0-3
c62ce2
- Resolves: #1708397 - Move libpcap.pc to libpcap-devel
c62ce2
- Removing obsolete group tag
c62ce2
c62ce2
* Wed May 22 2019 Michal Ruprich <mruprich@redhat.com> - 14:1.9.0-2
c62ce2
- Resolves: #1680929 - libpcap changes blocked until gating tests are added
c62ce2
c62ce2
* Wed Aug 01 2018 Michal Ruprich <mruprich@redhat.com> - 14:1.9.0-1
c62ce2
- New version 1.9.0
c62ce2
c62ce2
* Thu Jun 07 2018 Michal Ruprich <mruprich@redhat.com> - 14:1.8.1-9
c62ce2
- Adding support for AF_VSOCK (rhbz#1587833)
c62ce2
c62ce2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 14:1.8.1-8
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c62ce2
c62ce2
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 14:1.8.1-7
c62ce2
- Switch to %%ldconfig_scriptlets
c62ce2
c62ce2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 14:1.8.1-6
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c62ce2
c62ce2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 14:1.8.1-5
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c62ce2
c62ce2
* Thu May 18 2017 Martin Sehnoutka <msehnout@redhat.com> - 14:1.8.1-4
c62ce2
- Drop TPACKET_V3 patch as it should be fixed in kernel by now
c62ce2
c62ce2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 14:1.8.1-3
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c62ce2
c62ce2
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.8.1-2
c62ce2
- Add missing %%license macro
c62ce2
c62ce2
* Mon Oct 31 2016 Luboš Uhliarik <luhliari@redhat.com> - 14:1.8.1-1
c62ce2
- new version 1.8.1
c62ce2
c62ce2
* Mon Aug 08 2016 Luboš Uhliarik <luhliari@redhat.com> - 14:1.8.0-1
c62ce2
- new version 1.8.0
c62ce2
c62ce2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 14:1.7.4-2
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c62ce2
c62ce2
* Mon Jun 29 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.7.4-1
c62ce2
- update to 1.7.4 (#1236387)
c62ce2
c62ce2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.7.3-2
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c62ce2
c62ce2
* Tue May 26 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.7.3-1
c62ce2
- update to 1.7.3 (#1214723)
c62ce2
- fix build against bluez-5 (#1178297)
c62ce2
c62ce2
* Fri Mar 13 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.7.2-1
c62ce2
- update to 1.7.2 (#1201078)
c62ce2
c62ce2
* Mon Feb 23 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.6.2-2
c62ce2
- fix scaling of pcap-ng timestamps (#1169322)
c62ce2
- remove kernel-devel from buildrequires
c62ce2
c62ce2
* Mon Sep 29 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.6.2-1
c62ce2
- update to 1.6.2 (#1124174)
c62ce2
- disable TPACKET_V3 support (#1131500)
c62ce2
c62ce2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.5.3-5
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c62ce2
c62ce2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.5.3-4
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c62ce2
c62ce2
* Mon Mar 31 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-3
c62ce2
- don't link against libnl
c62ce2
c62ce2
* Fri Mar 28 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-2
c62ce2
- link against libnl (#765716)
c62ce2
c62ce2
* Wed Jan 15 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-1
c62ce2
- update to 1.5.3
c62ce2
c62ce2
* Thu Nov 28 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.5.1-1
c62ce2
- update to 1.5.1
c62ce2
c62ce2
* Fri Nov 08 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.5.0-1.20131108git459712e
c62ce2
- update to snapshot 20131108git459712e
c62ce2
c62ce2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.4.0-2
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c62ce2
c62ce2
* Thu Jun 06 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.4.0-1
c62ce2
- update to 1.4.0
c62ce2
c62ce2
* Tue Mar 26 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.3.0-4
c62ce2
- remove unused variable from pcap-config to prevent multilib conflicts
c62ce2
- specfile cleanup
c62ce2
c62ce2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.3.0-3
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c62ce2
c62ce2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.3.0-2
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c62ce2
c62ce2
* Wed Jun 13 2012 Michal Sekletar <msekleta@redhat.com> 14:1.3.0-1
c62ce2
- Update to 1.3.0
c62ce2
c62ce2
* Thu Jan 05 2012 Jan Synáček <jsynacek@redhat.com> 14:1.2.1-2
c62ce2
- Rebuilt for GCC 4.7
c62ce2
c62ce2
* Tue Jan 03 2012 Jan Synáček <jsynacek@redhat.com> 14:1.2.1-1
c62ce2
- Update to 1.2.1
c62ce2
- Drop unnecessary -fragment patch
c62ce2
c62ce2
* Fri Dec 02 2011 Michal Sekletar <msekleta@redhat.com> 14:1.2.0-1
c62ce2
- update to 1.2.0
c62ce2
c62ce2
* Tue Sep 06 2011 Michal Sekletar <msekleta@redhat.com> 14:1.1.1-4
c62ce2
- fix capture of fragmented ipv6 packets
c62ce2
c62ce2
* Fri Apr 22 2011 Miroslav Lichvar <mlichvar@redhat.com> 14:1.1.1-3
c62ce2
- ignore /sys/net/dev files on ENODEV (#693943)
c62ce2
- drop ppp patch
c62ce2
- compile with -fno-strict-aliasing
c62ce2
c62ce2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.1.1-2
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c62ce2
c62ce2
* Tue Apr 06 2010 Miroslav Lichvar <mlichvar@redhat.com> 14:1.1.1-1
c62ce2
- update to 1.1.1
c62ce2
c62ce2
* Wed Dec 16 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-5.20091201git117cb5
c62ce2
- update to snapshot 20091201git117cb5
c62ce2
c62ce2
* Sat Oct 17 2009 Dennis Gilmore <dennis@ausil.us> 14:1.0.0-4.20090922gite154e2
c62ce2
- use -fPIC on sparc arches
c62ce2
c62ce2
* Wed Sep 23 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-3.20090922gite154e2
c62ce2
- update to snapshot 20090922gite154e2
c62ce2
- drop old soname
c62ce2
c62ce2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.0.0-2.20090716git6de2de
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c62ce2
c62ce2
* Wed Jul 22 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-1.20090716git6de2de
c62ce2
- update to 1.0.0, git snapshot 20090716git6de2de
c62ce2
c62ce2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:0.9.8-4
c62ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c62ce2
c62ce2
* Fri Jun 27 2008 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.8-3
c62ce2
- use CFLAGS when linking (#445682)
c62ce2
c62ce2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 14:0.9.8-2
c62ce2
- Autorebuild for GCC 4.3
c62ce2
c62ce2
* Wed Oct 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.8-1
c62ce2
- update to 0.9.8
c62ce2
c62ce2
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.7-3
c62ce2
- update license tag
c62ce2
c62ce2
* Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 14:0.9.7-2
c62ce2
- Rebuild for RH #249435
c62ce2
c62ce2
* Tue Jul 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.7-1
c62ce2
- update to 0.9.7
c62ce2
c62ce2
* Tue Jun 19 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.6-1
c62ce2
- update to 0.9.6
c62ce2
c62ce2
* Tue Nov 28 2006 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.5-1
c62ce2
- split from tcpdump package (#193657)
c62ce2
- update to 0.9.5
c62ce2
- don't package static library
c62ce2
- maintain soname