1%define prefix /usr 2%define version @VERSION@ 3 4Summary: A system-independent interface for user-level packet capture 5Name: libpcap 6Version: %version 7Release: 1 8Group: Development/Libraries 9License: BSD with advertising 10Source: @NAME@.tar.gz 11BuildRoot: /tmp/%{name}-buildroot 12URL: http://www.tcpdump.org 13 14Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz 15 16%description 17Libpcap provides a portable framework for low-level network 18monitoring. Libpcap can provide network statistics collection, 19security monitoring and network debugging. Since almost every system 20vendor provides a different interface for packet capture, the libpcap 21authors created this system-independent API to ease in porting and to 22alleviate the need for several system-dependent packet capture modules 23in each application. 24 25Install libpcap if you need to do low-level network traffic monitoring 26on your network. 27 28%package devel 29Summary: Libraries and header files for the libpcap library 30Group: Development/Libraries 31 32%description devel 33Libpcap provides a portable framework for low-level network 34monitoring. Libpcap can provide network statistics collection, 35security monitoring and network debugging. Since almost every system 36vendor provides a different interface for packet capture, the libpcap 37authors created this system-independent API to ease in porting and to 38alleviate the need for several system-dependent packet capture modules 39in each application. 40 41This package provides the libraries, include files, and other 42resources needed for developing libpcap applications. 43 44%prep 45%setup -q 46 47%build 48export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" 49%configure 50make %{?_smp_mflags} 51 52%install 53rm -rf $RPM_BUILD_ROOT 54 55make DESTDIR=$RPM_BUILD_ROOT install 56 57%clean 58rm -rf $RPM_BUILD_ROOT 59 60%files 61%defattr(-,root,root) 62%doc LICENSE README CHANGES INSTALL.txt README.linux TODO VERSION CREDITS packaging/pcap.spec 63%{_libdir}/libpcap.so.* 64%{_mandir}/man7/pcap*.7* 65 66%files devel 67%defattr(-,root,root) 68%{_bindir}/pcap-config 69%{_includedir}/pcap/*.h 70%{_includedir}/pcap.h 71%{_includedir}/pcap-bpf.h 72%{_includedir}/pcap-namedb.h 73%{_libdir}/libpcap.so 74%{_libdir}/libpcap.a 75%{_mandir}/man1/pcap-config.1* 76%{_mandir}/man3/pcap*.3* 77%{_mandir}/man5/pcap*.5* 78