diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 06:54:55 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 06:54:55 -0800 |
commit | 9a7f43d7ff4426a843b26762ca48a1a81a89bada (patch) | |
tree | 7db9208bcc9ad4b6e0e65f8265184b8520fee7e2 /packaging | |
download | libpcap-9a7f43d7ff4426a843b26762ca48a1a81a89bada.tar.gz libpcap-9a7f43d7ff4426a843b26762ca48a1a81a89bada.tar.bz2 libpcap-9a7f43d7ff4426a843b26762ca48a1a81a89bada.zip |
Imported Upstream version 1.3.0upstream/1.3.0
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/pcap.spec.in | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/packaging/pcap.spec.in b/packaging/pcap.spec.in new file mode 100644 index 0000000..ff7b996 --- /dev/null +++ b/packaging/pcap.spec.in @@ -0,0 +1,77 @@ +%define prefix /usr +%define version @VERSION@ + +Summary: A system-independent interface for user-level packet capture +Name: libpcap +Version: %version +Release: 1 +Group: Development/Libraries +License: BSD with advertising +Source: @NAME@.tar.gz +BuildRoot: /tmp/%{name}-buildroot +URL: http://www.tcpdump.org + +Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz + +%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. + +Install libpcap if you need to do low-level network traffic monitoring +on your network. + +%package devel +Summary: Libraries and header files for the libpcap library +Group: Development/Libraries + +%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. + +This package provides the libraries, include files, and other +resources needed for developing libpcap applications. + +%prep +%setup -q + +%build +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc LICENSE README CHANGES INSTALL.txt README.linux TODO VERSION CREDITS packaging/pcap.spec +%{_libdir}/libpcap.so.* +%{_mandir}/man7/pcap*.7* + +%files devel +%defattr(-,root,root) +%{_bindir}/pcap-config +%{_includedir}/pcap/*.h +%{_includedir}/pcap.h +%{_includedir}/pcap-bpf.h +%{_includedir}/pcap-namedb.h +%{_libdir}/libpcap.so +%{_libdir}/libpcap.a +%{_mandir}/man1/pcap-config.1* +%{_mandir}/man3/pcap*.3* +%{_mandir}/man5/pcap*.5* |