Blame SPECS/libpcap.spec

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