cc1bd62
Name: libpcap
cc1bd62
Epoch: 14
7ed25bd
Version: 1.1.1
70b655c
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
3324fa0
BuildRequires: glibc-kernheaders >= 2.2.0 bison flex bluez-libs-devel
cc1bd62
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7ed25bd
7ed25bd
Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
cc1bd62
Patch1: libpcap-man.patch
3324fa0
Patch2: libpcap-multilib.patch
cc1bd62
Patch3: libpcap-s390.patch
824b43d
Patch4: libpcap-nodev.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
7ed25bd
%setup -q
cc1bd62
cc1bd62
%patch1 -p1 -b .man 
3324fa0
%patch2 -p1 -b .multilib
cc1bd62
%patch3 -p1 -b .s390
824b43d
%patch4 -p1 -b .nodev
cc1bd62
787ec60
#sparc needs -fPIC 
787ec60
%ifarch %{sparc}
787ec60
sed -i -e 's|-fpic|-fPIC|g' configure
787ec60
%endif
787ec60
cc1bd62
%build
ad250b0
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
7ed25bd
%configure
3324fa0
make %{?_smp_mflags}
cc1bd62
cc1bd62
%install
cc1bd62
rm -rf $RPM_BUILD_ROOT
cc1bd62
3324fa0
make 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)
7ed25bd
%doc LICENSE README CHANGES CREDITS
cc1bd62
%{_libdir}/libpcap.so.*
3324fa0
%{_mandir}/man7/pcap*.7*
cc1bd62
cc1bd62
%files devel
cc1bd62
%defattr(-,root,root)
3324fa0
%{_bindir}/pcap-config
cc1bd62
%{_includedir}/pcap*.h
3324fa0
%{_includedir}/pcap
cc1bd62
%{_libdir}/libpcap.so
3324fa0
%{_mandir}/man1/pcap-config.1*
3324fa0
%{_mandir}/man3/pcap*.3*
3324fa0
%{_mandir}/man5/pcap*.5*
cc1bd62
cc1bd62
%changelog
70b655c
* Fri Apr 22 2011 Miroslav Lichvar <mlichvar@redhat.com> 14:1.1.1-3
70b655c
- ignore /sys/net/dev files on ENODEV (#693943)
70b655c
- drop ppp patch
70b655c
- compile with -fno-strict-aliasing
70b655c
e7a7f4a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.1.1-2
e7a7f4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e7a7f4a
7ed25bd
* Tue Apr 06 2010 Miroslav Lichvar <mlichvar@redhat.com> 14:1.1.1-1
7ed25bd
- update to 1.1.1
7ed25bd
e6fc524
* Wed Dec 16 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-5.20091201git117cb5
e6fc524
- update to snapshot 20091201git117cb5
e6fc524
787ec60
* Sat Oct 17 2009 Dennis Gilmore <dennis@ausil.us> 14:1.0.0-4.20090922gite154e2
787ec60
- use -fPIC on sparc arches
787ec60
216697f
* Wed Sep 23 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-3.20090922gite154e2
3974bc5
- update to snapshot 20090922gite154e2
3974bc5
- drop old soname
3974bc5
2c889e4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:1.0.0-2.20090716git6de2de
2c889e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2c889e4
3324fa0
* Wed Jul 22 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:1.0.0-1.20090716git6de2de
3324fa0
- update to 1.0.0, git snapshot 20090716git6de2de
3324fa0
40be080
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:0.9.8-4
40be080
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
40be080
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