9b1536
Name: libpcap
9b1536
Epoch: 14
9b1536
Version: 1.5.3
9b1536
Release: 11%{?dist}
9b1536
Summary: A system-independent interface for user-level packet capture
9b1536
Group: Development/Libraries
9b1536
License: BSD with advertising
9b1536
URL: http://www.tcpdump.org
9b1536
BuildRequires: glibc-kernheaders >= 2.2.0 bison flex bluez-libs-devel git
9b1536
9b1536
Source:  http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
9b1536
Patch1:  libpcap-man.patch
9b1536
Patch2:  libpcap-multilib.patch
9b1536
Patch3:  libpcap-s390.patch
9b1536
Patch4:  0001-NFLOG-don-t-crash-trying-to-filter-at-link-layer.patch
9b1536
Patch5:  0001-pcap-linux-don-t-use-TPACKETV3-for-memory-mmapped-ca.patch
9b1536
Patch6:  0001-Make-sure-the-userland-filtering-happens-correctly-o.patch
9b1536
Patch7:  0001-bpf-increase-snaplen-if-doing-cooked-mode-userspace-.patch
9b1536
Patch8:  0001-linktype-add-netlink-link-dlt-type.patch
9b1536
Patch9:  0001-Handle-using-cooked-mode-for-DLT_NETLINK-in-activate.patch
9b1536
Patch10: 0001-Introduce-bpf_filter1-function.patch
9b1536
Patch11: 0002-Use-BPF-extensions-in-compiled-filters.patch
9b1536
Patch12: 0003-More-descriptive-name-for-bpf_filter1.patch
9b1536
Patch13: 0004-Get-rid-of-unused-variable.patch
9b1536
Patch14: 0005-Move-the-socket-ops-out-of-gencode.c.patch
9b1536
Patch15: 0001-Add-names-for-DLT_NETLINK.patch
9b1536
Patch16: 0001-Fix-link-type-for-nlmon.patch
9b1536
Patch17: 0001-bpf-make-sure-sll-header-size-if-accounted-for.patch
9b1536
Patch18: 0006-Bound-tpacketv2-to-64k.patch
9b1536
Patch19: 0007-Add-support-for-AF_VSOCK.patch
9b1536
Patch20: 0008-Vlan-tpid-handling.patch
9b1536
9b1536
9b1536
%description
9b1536
Libpcap provides a portable framework for low-level network
9b1536
monitoring.  Libpcap can provide network statistics collection,
9b1536
security monitoring and network debugging.  Since almost every system
9b1536
vendor provides a different interface for packet capture, the libpcap
9b1536
authors created this system-independent API to ease in porting and to
9b1536
alleviate the need for several system-dependent packet capture modules
9b1536
in each application.
9b1536
9b1536
Install libpcap if you need to do low-level network traffic monitoring
9b1536
on your network.
9b1536
9b1536
%package devel
9b1536
Summary: Libraries and header files for the libpcap library
9b1536
Group: Development/Libraries
9b1536
Requires: %{name} = %{epoch}:%{version}-%{release}
9b1536
9b1536
%description devel
9b1536
Libpcap provides a portable framework for low-level network
9b1536
monitoring.  Libpcap can provide network statistics collection,
9b1536
security monitoring and network debugging.  Since almost every system
9b1536
vendor provides a different interface for packet capture, the libpcap
9b1536
authors created this system-independent API to ease in porting and to
9b1536
alleviate the need for several system-dependent packet capture modules
9b1536
in each application.
9b1536
9b1536
This package provides the libraries, include files, and other
9b1536
resources needed for developing libpcap applications.
9b1536
9b1536
%prep
9b1536
%autosetup -S git
9b1536
9b1536
#sparc needs -fPIC
9b1536
%ifarch %{sparc}
9b1536
sed -i -e 's|-fpic|-fPIC|g' configure
9b1536
%endif
9b1536
9b1536
%build
9b1536
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
9b1536
%configure
9b1536
make %{?_smp_mflags}
9b1536
9b1536
%install
9b1536
make DESTDIR=$RPM_BUILD_ROOT install
9b1536
rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a
9b1536
9b1536
%post -p /sbin/ldconfig
9b1536
9b1536
%postun -p /sbin/ldconfig
9b1536
9b1536
%files
9b1536
%defattr(-,root,root)
9b1536
%doc LICENSE README CHANGES CREDITS
9b1536
%{_libdir}/libpcap.so.*
9b1536
%{_mandir}/man7/pcap*.7*
9b1536
9b1536
%files devel
9b1536
%defattr(-,root,root)
9b1536
%{_bindir}/pcap-config
9b1536
%{_includedir}/pcap*.h
9b1536
%{_includedir}/pcap
9b1536
%{_libdir}/libpcap.so
9b1536
%{_mandir}/man1/pcap-config.1*
9b1536
%{_mandir}/man3/pcap*.3*
9b1536
%{_mandir}/man5/pcap*.5*
9b1536
9b1536
%changelog
9b1536
* Tue Oct 17 2017 Michal Ruprich - 14:1.5.3-11
9b1536
- Resolves: #1427251 - tcpdump incorrectly shows 0x8100 tag for 802.1ad frames
9b1536
9b1536
* Tue Aug 15 2017 Martin Sehnoutka <msehnout@redhat.com> - 14:1.5.3-10
9b1536
- Add support for AF_VSOCK
9b1536
9b1536
* Mon May 29 2017 Martin Sehnoutka <msehnout@redhat.com> - 14:1.5.3-9
9b1536
- Bound packet size to 64k
9b1536
9b1536
* Tue Sep 15 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-8
9b1536
- make sure that sll header size is accounted for (#1176612)
9b1536
9b1536
* Wed Jul 08 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-7
9b1536
- make sure that netlink monitor interfaces are also properly recognized by tcpdump (#1031974)
9b1536
9b1536
* Tue Jun 16 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-6
9b1536
- libpcap now correctly recognizes Netlink datalink type (#1031974)
9b1536
- fix vlan tagged packet filtering (#1079525)
9b1536
9b1536
* Tue Mar 31 2015 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-5
9b1536
- display also first packet when capturing in cooked mode (#1176612)
9b1536
- make sure that userland bpf filter interpreter is given snaplen such that size of
9b1536
  cooked header is account for
9b1536
9b1536
* Tue Dec  2 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-4
9b1536
- disable TPACKET_V3 memory mapped packet capture on AF_PACKET socket, use TPACKET_V2 instead (#1085096)
9b1536
9b1536
* Thu Feb 13 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-3
9b1536
- don't crash when trying to filter on interface with NFLOG link layer type (#1062511)
9b1536
9b1536
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 14:1.5.3-2
9b1536
- Mass rebuild 2014-01-24
9b1536
9b1536
* Wed Jan 15 2014 Michal Sekletar <msekleta@redhat.com> - 14:1.5.3-1
9b1536
- update to 1.5.3
9b1536
9b1536
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 14:1.5.0-2.20131108git459712e
9b1536
- Mass rebuild 2013-12-27
9b1536
9b1536
* Fri Nov 08 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.5.0-1.20131108git459712e
9b1536
- update to snapshot 20131108git459712e (#1026856)
9b1536
9b1536
* Thu Jun 06 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.4.0-1
9b1536
- update to 1.4.0
9b1536
9b1536
* Tue Mar 26 2013 Michal Sekletar <msekleta@redhat.com> - 14:1.3.0-4
9b1536
- remove unused variable from pcap-config to prevent multilib conflicts
9b1536
- specfile cleanup
9b1536
9b1536
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.3.0-3
9b1536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9b1536
9b1536
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.3.0-2
9b1536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9b1536
9b1536
* Wed Jun 13 2012 Michal Sekletar <msekleta@redhat.com> 14:1.3.0-1
9b1536
- Update to 1.3.0
9b1536
9b1536
* Thu Jan 05 2012 Jan Synáček <jsynacek@redhat.com> 14:1.2.1-2
9b1536
- Rebuilt for GCC 4.7
9b1536
9b1536
* Tue Jan 03 2012 Jan Synáček <jsynacek@redhat.com> 14:1.2.1-1
9b1536
- Update to 1.2.1
9b1536
- Drop unnecessary -fragment patch
9b1536
9b1536
* Fri Dec 02 2011 Michal Sekletar <msekleta@redhat.com> 14:1.2.0-1
9b1536
- update to 1.2.0
9b1536
9b1536
* Tue Sep 06 2011 Michal Sekletar <msekleta@redhat.com> 14:1.1.1-4
9b1536
- fix capture of fragmented ipv6 packets
9b1536
9b1536
* Fri Apr 22 2011 Miroslav Lichvar <mlichvar@redhat.com> 14:1.1.1-3
9b1536
- ignore /sys/net/dev files on ENODEV (#693943)
9b1536
- drop ppp patch
9b1536
- compile with -fno-strict-aliasing
9b1536
9b1536
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.1.1-2
9b1536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9b1536
9b1536
* Tue Apr 06 2010 Miroslav Lichvar <mlichvar@redhat.com> 14:1.1.1-1
9b1536
- update to 1.1.1
9b1536
9b1536
* Wed Dec 16 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-5.20091201git117cb5
9b1536
- update to snapshot 20091201git117cb5
9b1536
9b1536
* Sat Oct 17 2009 Dennis Gilmore <dennis@ausil.us> 14:1.0.0-4.20090922gite154e2
9b1536
- use -fPIC on sparc arches
9b1536
9b1536
* Wed Sep 23 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-3.20090922gite154e2
9b1536
- update to snapshot 20090922gite154e2
9b1536
- drop old soname
9b1536
9b1536
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.0.0-2.20090716git6de2de
9b1536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9b1536
9b1536
* Wed Jul 22 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-1.20090716git6de2de
9b1536
- update to 1.0.0, git snapshot 20090716git6de2de
9b1536
9b1536
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:0.9.8-4
9b1536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9b1536
9b1536
* Fri Jun 27 2008 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.8-3
9b1536
- use CFLAGS when linking (#445682)
9b1536
9b1536
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 14:0.9.8-2
9b1536
- Autorebuild for GCC 4.3
9b1536
9b1536
* Wed Oct 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.8-1
9b1536
- update to 0.9.8
9b1536
9b1536
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.7-3
9b1536
- update license tag
9b1536
9b1536
* Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 14:0.9.7-2
9b1536
- Rebuild for RH #249435
9b1536
9b1536
* Tue Jul 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.7-1
9b1536
- update to 0.9.7
9b1536
9b1536
* Tue Jun 19 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.6-1
9b1536
- update to 0.9.6
9b1536
9b1536
* Tue Nov 28 2006 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.5-1
9b1536
- split from tcpdump package (#193657)
9b1536
- update to 0.9.5
9b1536
- don't package static library
9b1536
- maintain soname