Name: libpcap0 Version: 1.0.0 Summary: A system-independent interface for user-level packet capture Release: 3mamba Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: http://www.tcpdump.org Source: http://www.tcpdump.org/release/libpcap-%{version}.tar.gz Patch0: libpcap-1.0.0-pcap_config.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRequires: bison BuildRequires: flex >= 2.4 BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. %package devel Group: Development/Libraries Summary: Static library and header files for the pcap library Requires: %{name} = %{?epoch:%epoch:}%{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. %prep %setup -q -n libpcap-%{version} %patch -p1 %build %if "%{_host}" != "%{_build}" cat >> config.cache << _EOF ac_cv_linux_vers=`uname -r 2>&1 | \ sed -n -e '$s/.* //' -e '$s/\..*//p'` _EOF %endif %configure \ --enable-ipv6 \ --with-pcap=linux \ %if "%{_host}" != "%{_build}" --cache-file=config.cache %endif %make all "CCOPT=%{optflags} -fPIC" # FIXME: ugly hack - but `make shared' create a broken shared library %{_host}-gcc -Wl,-soname,libpcap.so.0 -shared -fpic -o libpcap.so.%{version} *.o %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{_bindir} %makeinstall install -m755 libpcap.so.%{version} %{buildroot}%{_libdir} ln -s libpcap.so.%{version} %{buildroot}%{_libdir}/libpcap.so.0 ln -s libpcap.so.%{version} %{buildroot}%{_libdir}/libpcap.so install -d %{buildroot}%{_includedir}/net/ ln -s ../pcap-bpf.h %{buildroot}%{_includedir}/net/bpf.h %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libpcap.so.* %files devel %defattr(-,root,root) %{_bindir}/pcap-config %{_includedir}/*.h %{_includedir}/net/bpf.h %{_includedir}/pcap/*.h %{_libdir}/libpcap.a %{_libdir}/libpcap.so %{_mandir}/man1/pcap-config.1.* %{_mandir}/man3/* %{_mandir}/man5/pcap-savefile.5.* %{_mandir}/man7/pcap-filter.7.* %{_mandir}/man7/pcap-linktype.7.* %changelog * Mon Jul 23 2012 Silvan Calarco 1.0.0-3mamba - rebuilt as legacy package * Fri May 28 2010 Davide Madrisan 1.0.0-2mamba - fixed pcap-config * Sun Nov 02 2008 Silvan Calarco 1.0.0-1mamba - automatic update by autodist * Tue Oct 02 2007 Aleph0 0.9.8-1mamba - update to 0.9.8 * Tue Jul 24 2007 Aleph0 0.9.7-1mamba - update to 0.9.7 * Tue Jun 12 2007 Aleph0 0.9.6-1mamba - update to 0.9.6 * Tue Mar 20 2007 Aleph0 0.9.5-1qilnx - update to 0.9.5 * Tue Oct 04 2005 Davide Madrisan 0.9.4-1qilnx - update to version 0.9.4 by autospec * Fri Jul 08 2005 Davide Madrisan 0.9.1-2qilnx - fixed shared library creation * Wed Jul 06 2005 Davide Madrisan 0.9.1-1qilnx - update to version 0.9.1 by autospec * Wed Mar 31 2004 Davide Madrisan 0.8.3-1qilnx - new version rebuild * Thu Mar 25 2004 Silvan Calarco 0.8.1-2qilnx - added syslink /usr/include/net/bpf.h (see www.ethereal.com/docs/user-guide/x716.html) * Thu Jan 15 2004 Davide Madrisan 0.8.1-1qilnx - specfile updated - package updated to latest version * Fri May 09 2003 Alessandro Ramazzina 0.7.2-1qilnx - creation of libpcap package