67 lines
1.5 KiB
RPMSpec
67 lines
1.5 KiB
RPMSpec
Name: libpcap
|
|
Epoch: 14
|
|
Version: 1.9.1
|
|
Release: 3
|
|
Summary: A system-independent interface for user-level packet capture
|
|
License: BSD with advertising
|
|
URL: http://www.tcpdump.org
|
|
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
|
|
|
Patch0001: 0001-man-tcpdump-and-tcpslice-have-manpages-in-man8.patch
|
|
Patch0002: 0002-pcap-config-mitigate-multilib-conflict.patch
|
|
Patch0003: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
|
|
Patch0004: ieee80215-arphrd.patch
|
|
Patch0005: clean-up-signed-vs-unsigned-do-more-error-checking-in-the-parser.patch
|
|
|
|
BuildRequires: bison bluez-libs-devel flex gcc git glibc-kernheaders >= 2.2.0
|
|
|
|
%description
|
|
This is the official web site of tcpdump, a powerful command-line
|
|
packet analyzer; and libpcap, a portable C/C++ library for
|
|
network traffic capture.
|
|
|
|
%package devel
|
|
Summary: header files for libpcap
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
%description devel
|
|
header files for libpcap
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -S git
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%delete_la_and_a
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%{_libdir}/libpcap.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/pcap-config
|
|
%{_includedir}/*
|
|
%{_libdir}/libpcap.so
|
|
%{_libdir}/pkgconfig/libpcap.pc
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc README.md CHANGES CREDITS
|
|
%{_mandir}/man*
|
|
|
|
%changelog
|
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 14:1.9.1-3
|
|
- Package init
|