2019-12-25 15:54:18 +08:00
|
|
|
Name: libpcap
|
|
|
|
|
Epoch: 14
|
|
|
|
|
Version: 1.9.1
|
2020-01-11 20:06:23 +08:00
|
|
|
Release: 4
|
2019-12-25 15:54:18 +08:00
|
|
|
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
|
|
|
|
|
|
2020-01-11 20:06:23 +08:00
|
|
|
Patch0001: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
|
|
|
|
|
Patch0002: clean-up-signed-vs-unsigned-do-more-error-checking-in-the-parser.patch
|
2019-12-25 15:54:18 +08:00
|
|
|
|
|
|
|
|
BuildRequires: bison bluez-libs-devel flex gcc git glibc-kernheaders >= 2.2.0
|
2019-09-30 10:57:32 -04:00
|
|
|
|
|
|
|
|
%description
|
2019-12-25 15:54:18 +08:00
|
|
|
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.
|
2019-09-30 10:57:32 -04:00
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: header files for libpcap
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2019-09-30 10:57:32 -04:00
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
%description devel
|
|
|
|
|
header files for libpcap
|
2019-09-30 10:57:32 -04:00
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
%package_help
|
2019-09-30 10:57:32 -04:00
|
|
|
|
|
|
|
|
%prep
|
2019-12-25 15:54:18 +08:00
|
|
|
%autosetup -n %{name}-%{version} -S git
|
2019-09-30 10:57:32 -04:00
|
|
|
|
|
|
|
|
%build
|
2019-12-25 15:54:18 +08:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2019-09-30 10:57:32 -04:00
|
|
|
%configure
|
2019-12-25 15:54:18 +08:00
|
|
|
%make_build
|
2019-09-30 10:57:32 -04:00
|
|
|
|
|
|
|
|
%install
|
2019-12-25 15:54:18 +08:00
|
|
|
%make_install
|
2019-09-30 10:57:32 -04:00
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
%delete_la_and_a
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
2019-09-30 10:57:32 -04:00
|
|
|
|
|
|
|
|
%files
|
2019-12-25 15:54:18 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:57:32 -04:00
|
|
|
%license LICENSE
|
|
|
|
|
%{_libdir}/libpcap.so.*
|
|
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:57:32 -04:00
|
|
|
%{_bindir}/pcap-config
|
2019-12-25 15:54:18 +08:00
|
|
|
%{_includedir}/*
|
2019-09-30 10:57:32 -04:00
|
|
|
%{_libdir}/libpcap.so
|
|
|
|
|
%{_libdir}/pkgconfig/libpcap.pc
|
|
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:57:32 -04:00
|
|
|
%doc README.md CHANGES CREDITS
|
2019-12-25 15:54:18 +08:00
|
|
|
%{_mandir}/man*
|
2019-09-30 10:57:32 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-01-11 20:06:23 +08:00
|
|
|
* Sat Jan 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 14:1.9.1-4
|
|
|
|
|
- delete useless info
|
|
|
|
|
|
2019-12-25 15:54:18 +08:00
|
|
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 14:1.9.1-3
|
2019-09-30 10:57:32 -04:00
|
|
|
- Package init
|