%define pcap_sover 0.9 Name: libpcap Version: 1.1.1 Release: 3 Summary: A system-independent interface for user-level packet capture Group: Development/Libraries License: BSD with advertising URL: http://www.tcpdump.org BuildRequires: bison flex BuildRequires: bluez-libs-devel Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz Patch1: libpcap-man.patch Patch2: libpcap-multilib.patch Patch3: libpcap-s390.patch Patch4: libpcap-nodev.patch %description Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application. Install libpcap if you need to do low-level network traffic monitoring on your network. %package devel Summary: Libraries and header files for the libpcap library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application. This package provides the libraries, include files, and other resources needed for developing libpcap applications. %prep %setup -q %patch1 -p1 -b .man %patch2 -p1 -b .multilib %patch3 -p1 -b .s390 %patch4 -p1 -b .nodev %build export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)" %configure --enable-ipv6 make SOVERSION=%{pcap_sover} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} make SOVERSION=%{pcap_sover} DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a rm -rf $RPM_BUILD_ROOT%{_datadir}/doc %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc LICENSE README CHANGES CREDITS %{_libdir}/libpcap.so.* %files devel %defattr(-,root,root) %dir %{_includedir}/pcap %{_includedir}/pcap/*.h %{_includedir}/*.h %{_bindir}/pcap-config %{_libdir}/libpcap.so %{_mandir}/man?/*