Projects
home:pandora:RobinOS23
libpcap
_service:download_src_package:libpcap.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:libpcap.spec of Package libpcap
%define anolis_release 2 Name: libpcap Epoch: 14 Version: 1.10.1 Release: %{anolis_release}%{?dist} Summary: A system-independent interface for user-level packet capture License: BSD with advertising URL: https://www.tcpdump.org/ BuildRequires: make BuildRequires: bison BuildRequires: bluez-libs-devel BuildRequires: flex BuildRequires: gcc BuildRequires: git BuildRequires: glibc-kernheaders >= 2.2.0 #rdma-core-devel not available on arm %ifnarch %{arm} BuildRequires: rdma-core-devel %endif Source: https://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 doc Summary: Documentation files for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Libraries and header files for the libpcap library Requires: %{name} = %{epoch}:%{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 %autosetup -S git #sparc needs -fPIC %ifarch %{sparc} sed -i -e 's|-fpic|-fPIC|g' configure %endif %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %ifarch %{arm} %configure %else %configure --enable-rdma %endif %make_build %install %make_install rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a %ldconfig_scriptlets %files %license LICENSE %{_libdir}/libpcap.so.* %{_mandir}/man7/pcap*.7* %files doc %doc README.md CHANGES CREDITS %files devel %{_bindir}/pcap-config %{_includedir}/pcap*.h %{_includedir}/pcap %{_libdir}/libpcap.so %{_libdir}/pkgconfig/libpcap.pc %{_mandir}/man1/pcap-config.1* %{_mandir}/man3/pcap*.3* %{_mandir}/man5/pcap*.5* %changelog * Sun Oct 09 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 1.10.1-2 - add doc package * Wed Mar 09 2022 pangqing <pangqing@uniontech.com> - 1.10.1-1 - Init for anolisOS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2