1 %define prefix /usr 2 %define version @VERSION@ 3 4 Summary: A system-independent interface for user-level packet capture 5 Name: libpcap 6 Version: %version 7 Release: 1 8 Group: Development/Libraries 9 License: BSD with advertising 10 Source: @NAME (a] .tar.gz 11 BuildRoot: /tmp/%{name}-buildroot 12 URL: http://www.tcpdump.org 13 14 Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz 15 16 %description 17 Libpcap provides a portable framework for low-level network 18 monitoring. Libpcap can provide network statistics collection, 19 security monitoring and network debugging. Since almost every system 20 vendor provides a different interface for packet capture, the libpcap 21 authors created this system-independent API to ease in porting and to 22 alleviate the need for several system-dependent packet capture modules 23 in each application. 24 25 Install libpcap if you need to do low-level network traffic monitoring 26 on your network. 27 28 %package devel 29 Summary: Libraries and header files for the libpcap library 30 Group: Development/Libraries 31 32 %description devel 33 Libpcap provides a portable framework for low-level network 34 monitoring. Libpcap can provide network statistics collection, 35 security monitoring and network debugging. Since almost every system 36 vendor provides a different interface for packet capture, the libpcap 37 authors created this system-independent API to ease in porting and to 38 alleviate the need for several system-dependent packet capture modules 39 in each application. 40 41 This package provides the libraries, include files, and other 42 resources needed for developing libpcap applications. 43 44 %prep 45 %setup -q 46 47 %build 48 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" 49 %configure 50 make %{?_smp_mflags} 51 52 %install 53 rm -rf $RPM_BUILD_ROOT 54 55 make DESTDIR=$RPM_BUILD_ROOT install 56 57 %clean 58 rm -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