1172677Smlaier%define prefix   /usr
2172677Smlaier%define version @VERSION@
3172677Smlaier
4235426SdelphijSummary: A system-independent interface for user-level packet capture
5172677SmlaierName: libpcap
6172677SmlaierVersion: %version
7172677SmlaierRelease: 1
8172677SmlaierGroup: Development/Libraries
9235426SdelphijLicense: BSD with advertising
10172677SmlaierSource: @NAME@.tar.gz
11172677SmlaierBuildRoot: /tmp/%{name}-buildroot
12172677SmlaierURL: http://www.tcpdump.org
13172677Smlaier
14235426SdelphijSource: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
15235426Sdelphij
16172677Smlaier%description
17235426SdelphijLibpcap provides a portable framework for low-level network
18235426Sdelphijmonitoring.  Libpcap can provide network statistics collection,
19235426Sdelphijsecurity monitoring and network debugging.  Since almost every system
20235426Sdelphijvendor provides a different interface for packet capture, the libpcap
21235426Sdelphijauthors created this system-independent API to ease in porting and to
22235426Sdelphijalleviate the need for several system-dependent packet capture modules
23235426Sdelphijin each application.
24172677Smlaier
25235426SdelphijInstall libpcap if you need to do low-level network traffic monitoring
26235426Sdelphijon your network.
27235426Sdelphij
28235426Sdelphij%package devel
29235426SdelphijSummary: Libraries and header files for the libpcap library
30235426SdelphijGroup: Development/Libraries
31235426Sdelphij
32235426Sdelphij%description devel
33235426SdelphijLibpcap provides a portable framework for low-level network
34235426Sdelphijmonitoring.  Libpcap can provide network statistics collection,
35235426Sdelphijsecurity monitoring and network debugging.  Since almost every system
36235426Sdelphijvendor provides a different interface for packet capture, the libpcap
37235426Sdelphijauthors created this system-independent API to ease in porting and to
38235426Sdelphijalleviate the need for several system-dependent packet capture modules
39235426Sdelphijin each application.
40235426Sdelphij
41235426SdelphijThis package provides the libraries, include files, and other 
42235426Sdelphijresources needed for developing libpcap applications.
43235426Sdelphij 
44172677Smlaier%prep
45235426Sdelphij%setup -q
46172677Smlaier
47172677Smlaier%build
48235426Sdelphijexport CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
49235426Sdelphij%configure
50235426Sdelphijmake %{?_smp_mflags}
51172677Smlaier
52172677Smlaier%install
53172677Smlaierrm -rf $RPM_BUILD_ROOT
54172677Smlaier
55235426Sdelphijmake DESTDIR=$RPM_BUILD_ROOT install
56235426Sdelphij
57172677Smlaier%clean
58172677Smlaierrm -rf $RPM_BUILD_ROOT
59172677Smlaier
60172677Smlaier%files
61172677Smlaier%defattr(-,root,root)
62235426Sdelphij%doc LICENSE README CHANGES INSTALL.txt README.linux TODO VERSION CREDITS packaging/pcap.spec
63235426Sdelphij%{_libdir}/libpcap.so.*
64235426Sdelphij%{_mandir}/man7/pcap*.7*
65235426Sdelphij
66235426Sdelphij%files devel
67235426Sdelphij%defattr(-,root,root)
68235426Sdelphij%{_bindir}/pcap-config
69241231Sdelphij%{_includedir}/pcap/*.h
70235426Sdelphij%{_includedir}/pcap.h
71241231Sdelphij%{_includedir}/pcap-bpf.h
72241231Sdelphij%{_includedir}/pcap-namedb.h
73235426Sdelphij%{_libdir}/libpcap.so
74235426Sdelphij%{_libdir}/libpcap.a
75235426Sdelphij%{_mandir}/man1/pcap-config.1*
76235426Sdelphij%{_mandir}/man3/pcap*.3*
77235426Sdelphij%{_mandir}/man5/pcap*.5*
78