2 %define version @VERSION@
4 Summary: A system-independent interface for user-level packet capture
8 Group: Development/Libraries
9 License: BSD with advertising
11 BuildRoot: /tmp/%{name}-buildroot
12 URL: http://www.tcpdump.org
14 Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
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
25 Install libpcap if you need to do low-level network traffic monitoring
29 Summary: Libraries and header files for the libpcap library
30 Group: Development/Libraries
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
41 This package provides the libraries, include files, and other
42 resources needed for developing libpcap applications.
48 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
53 rm -rf $RPM_BUILD_ROOT
55 make DESTDIR=$RPM_BUILD_ROOT install
58 rm -rf $RPM_BUILD_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*
68 %{_bindir}/pcap-config
69 %{_includedir}/pcap/*.h
71 %{_includedir}/pcap-bpf.h
72 %{_includedir}/pcap-namedb.h
75 %{_mandir}/man1/pcap-config.1*
76 %{_mandir}/man3/pcap*.3*
77 %{_mandir}/man5/pcap*.5*