libpcap/libpcap.spec

114 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-12-25 15:54:18 +08:00
Name: libpcap
Epoch: 14
2023-01-31 07:01:06 +00:00
Version: 1.10.3
Release: 1
2019-12-25 15:54:18 +08:00
Summary: A system-independent interface for user-level packet capture
2021-09-16 14:28:52 +08:00
License: BSD
2019-12-25 15:54:18 +08:00
URL: http://www.tcpdump.org
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
2020-08-07 16:11:04 +08:00
Patch0: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
2021-09-16 14:28:52 +08:00
Patch1: pcap-config-mitigate-multilib-conflict.patch
Patch2: libpcap-Add-sw64-architecture.patch
2019-12-25 15:54:18 +08:00
2023-01-31 07:01:06 +00:00
BuildRequires: make bison flex gcc glibc-kernheaders >= 2.2.0
%ifnarch i686
BuildRequires: bluez-libs-devel
%endif
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
%autosetup -n %{name}-%{version} -p1
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
2023-01-31 07:01:06 +00:00
* Tue Jan 31 2023 xinghe <xinghe2@h-partners.com> - 14:1.10.3-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC:update libpcap to 1.10.3
* Mon Nov 7 2022 wuzx<wuzx1226@qq.com> - 14:1.10.1-3
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Fri Feb 18 2022 xihaochen <xihaochen@h-partners.com> - 14:1.10.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: delete the bluez-libs-devel in i686 arch
2021-09-16 14:28:52 +08:00
* Thu Sep 16 2021 xinghe <xinghe2@huawei.com> - 14:1.10.1-1
- DESC:upgrade to 1.10.1
* Mon Aug 09 2021 yanglu <yanglu72@huawei.com> - 14:1.9.1-8
- DESC:delete -S git from %autosetup,and delete Buildrequires git
2020-11-28 16:58:53 +08:00
* Sat Nov 28 2020 xiaqirong <xiaqirong1@huawei.com> - 14:1.9.1-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:mitigate pcap config multilib conflict
2020-08-07 16:11:04 +08:00
* Fri Aug 07 2020 lunankun <lunankun@huawei.com> - 14:1.9.1-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix overflow in opt_init
2020-05-26 16:30:04 +08:00
* Tue May 26 2020 gaihuiying <gaihuiying1@huawei.com> - 14:1.9.1-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix overflow in opt_init
2020-01-11 23:10:29 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 14:1.9.1-4
2020-01-11 20:06:23 +08:00
- 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