Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
nv:tegra3:nexus7
>
libpcap
> libpcap.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libpcap.spec of Package libpcap
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.22 # # >> macros # << macros Name: libpcap Summary: A system-independent interface for user-level packet capture Version: 1.1.1 Release: 1 Group: Development/Libraries License: BSD with advertising URL: http://www.tcpdump.org Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz Source100: libpcap.yaml Patch0: libpcap-man.patch Patch1: libpcap-multilib.patch Patch2: libpcap-nodev.patch Patch3: libpcap-fragment.patch Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(bluez) BuildRequires: glibc-headers BuildRequires: bison BuildRequires: flex %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 Requires: %{name} = %{version}-%{release} %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 -n %{name}-%{version} # libpcap-man.patch %patch0 -p1 # libpcap-multilib.patch %patch1 -p1 # libpcap-nodev.patch %patch2 -p1 # libpcap-fragment.patch %patch3 -p1 # >> setup # << setup %build # >> build pre export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" # << build pre %configure --disable-static make %{?jobs:-j%jobs} # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %make_install # >> install post rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a # << install post %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) # >> files %doc LICENSE README CHANGES CREDITS %{_libdir}/libpcap.so.* %{_mandir}/man7/pcap*.7* # << files %files devel %defattr(-,root,root,-) # >> files devel %{_bindir}/pcap-config %{_includedir}/pcap*.h %{_includedir}/pcap %{_libdir}/libpcap.so %{_mandir}/man1/pcap-config.1* %{_mandir}/man3/pcap*.3* %{_mandir}/man5/pcap*.5* # << files devel