libpcap/libpcap.spec
xingwei a0bfe9e97d fix CVE-2023-7256 and CVE-2024-8006
(cherry picked from commit 53cac2836c7e26dea84fad3363106924b1b23e37)
2024-09-24 10:28:34 +08:00

120 lines
2.7 KiB
RPMSpec

Name: libpcap
Epoch: 14
Version: 1.10.3
Release: 2
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
Patch0: backport-0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
Patch1: backport-pcap-config-mitigate-multilib-conflict.patch
Patch2: libpcap-1.10.1-sw.patch
Patch3: backport-0001-CVE-2023-7256.patch
Patch4: backport-0002-CVE-2023-7256.patch
Patch5: backport-CVE-2024-8006.patch
BuildRequires: make bison flex gcc git glibc-kernheaders >= 2.2.0
%ifnarch i686
BuildRequires: bluez-devel
%endif
%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
* Mon Sep 23 2024 xingwei14 <xingwei14@h-partners.com> - 14:1.10.3-2
- Type:CVE
- CVE:CVE-2023-7256 CVE-2024-8006
- SUG:NA
- DESC:fix CVE-2023-7256 and CVE-2024-8006
* Mon Feb 06 2023 xinghe <xinghe2@h-partners.com> - 14:1.10.3-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC:update libpcap to 1.10.3
* Thu Jul 28 2022 wuzx<wuzx1226@qq.com> - 14:1.10.1-3
- add sw64 patch
* Fri Feb 18 2022 xihaochen <xihaochen@h-partners.com> - 14:1.10.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: delete the bluez-devel in i686 arch
* Wed Dec 08 2021 xihaochen <xihaochen@huawei.com> - 14:1.10.1-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC:update libpcap to 1.10.1
* 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
* 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
* 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
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 14:1.9.1-4
- delete useless info
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 14:1.9.1-3
- Package init