|
|
cc1bd62 |
%define pcap_sover 0.9
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
Name: libpcap
|
|
|
cc1bd62 |
Epoch: 14
|
|
|
72a914f |
Version: 0.9.8
|
|
|
b58c0a1 |
Release: 3%{?dist}
|
|
|
cc1bd62 |
Summary: A system-independent interface for user-level packet capture
|
|
|
cc1bd62 |
Group: Development/Libraries
|
|
|
76faa1a |
License: BSD with advertising
|
|
|
cc1bd62 |
URL: http://www.tcpdump.org
|
|
|
cc1bd62 |
BuildRequires: glibc-kernheaders >= 2.2.0 bison flex
|
|
|
cc1bd62 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
|
|
cc1bd62 |
Patch1: libpcap-man.patch
|
|
|
51b8111 |
Patch2: libpcap-0.9.7-shared.patch
|
|
|
cc1bd62 |
Patch3: libpcap-s390.patch
|
|
|
cc1bd62 |
Patch4: libpcap-0.8.3-ppp.patch
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%description
|
|
|
cc1bd62 |
Libpcap provides a portable framework for low-level network
|
|
|
cc1bd62 |
monitoring. Libpcap can provide network statistics collection,
|
|
|
cc1bd62 |
security monitoring and network debugging. Since almost every system
|
|
|
cc1bd62 |
vendor provides a different interface for packet capture, the libpcap
|
|
|
cc1bd62 |
authors created this system-independent API to ease in porting and to
|
|
|
cc1bd62 |
alleviate the need for several system-dependent packet capture modules
|
|
|
cc1bd62 |
in each application.
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
Install libpcap if you need to do low-level network traffic monitoring
|
|
|
cc1bd62 |
on your network.
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%package devel
|
|
|
cc1bd62 |
Summary: Libraries and header files for the libpcap library
|
|
|
cc1bd62 |
Group: Development/Libraries
|
|
|
cc1bd62 |
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%description devel
|
|
|
cc1bd62 |
Libpcap provides a portable framework for low-level network
|
|
|
cc1bd62 |
monitoring. Libpcap can provide network statistics collection,
|
|
|
cc1bd62 |
security monitoring and network debugging. Since almost every system
|
|
|
cc1bd62 |
vendor provides a different interface for packet capture, the libpcap
|
|
|
cc1bd62 |
authors created this system-independent API to ease in porting and to
|
|
|
cc1bd62 |
alleviate the need for several system-dependent packet capture modules
|
|
|
cc1bd62 |
in each application.
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
This package provides the libraries, include files, and other
|
|
|
cc1bd62 |
resources needed for developing libpcap applications.
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%prep
|
|
|
cc1bd62 |
%setup -q
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%patch1 -p1 -b .man
|
|
|
cc1bd62 |
%patch2 -p1 -b .shared
|
|
|
cc1bd62 |
%patch3 -p1 -b .s390
|
|
|
cc1bd62 |
%patch4 -p0 -b .ppp
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%build
|
|
|
51b8111 |
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)"
|
|
|
cc1bd62 |
%configure --enable-ipv6
|
|
|
cc1bd62 |
make SOVERSION=%{pcap_sover}
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%install
|
|
|
cc1bd62 |
rm -rf $RPM_BUILD_ROOT
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
make SOVERSION=%{pcap_sover} DESTDIR=$RPM_BUILD_ROOT install
|
|
|
cc1bd62 |
rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%clean
|
|
|
cc1bd62 |
rm -rf $RPM_BUILD_ROOT
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%post -p /sbin/ldconfig
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%postun -p /sbin/ldconfig
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%files
|
|
|
cc1bd62 |
%defattr(-,root,root)
|
|
|
cc1bd62 |
%doc LICENSE README CHANGES CREDITS doc/pcap.txt
|
|
|
cc1bd62 |
%{_libdir}/libpcap.so.*
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%files devel
|
|
|
cc1bd62 |
%defattr(-,root,root)
|
|
|
cc1bd62 |
%{_includedir}/pcap*.h
|
|
|
cc1bd62 |
%{_libdir}/libpcap.so
|
|
|
cc1bd62 |
%{_mandir}/man3/pcap.3*
|
|
|
cc1bd62 |
|
|
|
cc1bd62 |
%changelog
|
|
|
b58c0a1 |
* Fri Jun 27 2008 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.8-3
|
|
|
b58c0a1 |
- use CFLAGS when linking (#445682)
|
|
|
b58c0a1 |
|
|
|
c740683 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 14:0.9.8-2
|
|
|
c740683 |
- Autorebuild for GCC 4.3
|
|
|
c740683 |
|
|
|
72a914f |
* Wed Oct 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.8-1
|
|
|
72a914f |
- update to 0.9.8
|
|
|
72a914f |
|
|
|
76faa1a |
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.7-3
|
|
|
76faa1a |
- update license tag
|
|
|
76faa1a |
|
|
|
6db7be8 |
* Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 14:0.9.7-2
|
|
|
6db7be8 |
- Rebuild for RH #249435
|
|
|
6db7be8 |
|
|
|
51b8111 |
* Tue Jul 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.7-1
|
|
|
51b8111 |
- update to 0.9.7
|
|
|
51b8111 |
|
|
|
b232654 |
* Tue Jun 19 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.6-1
|
|
|
b232654 |
- update to 0.9.6
|
|
|
b232654 |
|
|
|
cc1bd62 |
* Tue Nov 28 2006 Miroslav Lichvar <mlichvar@redhat.com> 14:0.9.5-1
|
|
|
cc1bd62 |
- split from tcpdump package (#193657)
|
|
|
cc1bd62 |
- update to 0.9.5
|
|
|
cc1bd62 |
- don't package static library
|
|
|
cc1bd62 |
- maintain soname
|