1
0
forked from pool/libpcap
Files
libpcap/libpcap.spec
Marcus Meissner 9802e9803e - Update to 1.10.6: [bsc#1255765, CVE-2025-11961]
* General:
    - Fix "tcpdump -i <n>" for something-only libpcap builds.
    - gencode: Fix an undefined behavior in gen_mcode().
    - gencode: Add a missing free() in gen_scode().
    - Remove "DLT_" from the descriptions of two dlt_choices[] entries.
    - Report the size of time_t in the version string.
    - Validate remote capture source strings better.
    - CVE-2025-11961: Fix OOBR and OOBW in pcap_ether_aton().
  * Source code:
    - Clean up code that computes the length of a netmask.
    - Mind netmap support in pcap_lib_version().
  * Link-layer types:
    - Add LINKTYPE_ETW/DLT_ETW.
    - Add LINKTYPE_NETANALYZER_NG/DLT_NETANALYZER_NG (pull request #1008).
    - Add LINKTYPE_ZBOSS_NCP/DLT_ZBOSS_NCP.
    - Add LINKTYPE_USB_2_0_LOW_SPEED/DLT_USB_2_0_LOW_SPEED,
      LINKTYPE_USB_2_0_FULL_SPEED/DLT_USB_2_0_FULL_SPEED,
      LINKTYPE_USB_2_0_HIGH_SPEED/DLT_USB_2_0_HIGH_SPEED
    - Add LINKTYPE_AUERSWALD_LOG/DLT_AUERSWALD_LOG.
    - Add LINKTYPE_ZWAVE_TAP/DLT_ZWAVE_TAP.
    - Add LINKTYPE_SILABS_DEBUG_CHANNEL/DLT_SILABS_DEBUG_CHANNEL.
    - Add LINKTYPE_FIRA_UCI/DLT_FIRA_UCI.
    - Rename LINKTYPE_IPMB_LINUX/DLT_IPMB_LINUX to
      LINKTYPE_I2C_LINUX/DLT_I2C_LINUX, as it's really just an
      encapsulation of I2C, and is also being used for HDMI DDC.
      Keep DLT_IPMB_LINUX around as a #define for backwards
      compatibility.
    - Add LINKTYPE_MDB/DLT_MDB.
    - Add LINKTYPE_DECT_NR/DLT_DECT_NR.

OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=86
2026-01-09 09:47:36 +00:00

128 lines
3.7 KiB
RPMSpec

#
# spec file for package libpcap
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libpcap
Version: 1.10.6
Release: 0
Summary: A Library for Network Sniffers
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://www.tcpdump.org/
Source: https://www.tcpdump.org/release/%{name}-%{version}.tar.xz
Source2: baselibs.conf
Source3: https://www.tcpdump.org/tcpdump-workers.asc#/%{name}.keyring
Source4: https://www.tcpdump.org/release/%{name}-%{version}.tar.xz.sig
Patch2: libpcap-1.0.0-ppp.patch
Patch3: libpcap-1.0.0-s390.patch
BuildRequires: autoconf >= 2.69
BuildRequires: automake
BuildRequires: bison
BuildRequires: bluez-devel
BuildRequires: dbus-1-devel
BuildRequires: flex
BuildRequires: libnl3-devel
BuildRequires: pkgconfig >= 0.17.0
BuildRequires: pkgconfig(libusb-1.0)
%description
libpcap is a library used by packet sniffer programs. It provides an
interface for them to capture and analyze packets from network devices.
This package is only needed if you plan to compile or write such a
program yourself.
%package -n libpcap1
Summary: A Library for Network Sniffers
Group: System/Libraries
Provides: libpcap = %{version}
Obsoletes: libpcap < %{version}
%description -n libpcap1
libpcap is a library used by packet sniffer programs. It provides an
interface for them to capture and analyze packets from network devices.
This package is only needed if you plan to compile or write such a
program yourself.
%package devel
Summary: A Library for Network Sniffers
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libpcap1 = %{version}
%description devel
libpcap is a library used by packet sniffer programs. It provides an
interface for them to capture and analyze packets from network devices.
This package is only needed if you plan to compile or write such a
program yourself.
%package devel-static
Summary: A Library for Network Sniffers
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
Requires: bluez-devel
Requires: dbus-1-devel
Requires: libnl3-devel
Requires: pkgconfig(libusb-1.0)
%description devel-static
libpcap static libraries
%prep
%setup -q
%patch -P 2
%patch -P 3 -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
autoreconf -fiv
%ifarch %{sparc}
pic="PIC"
%else
pic="pic"
%endif
export CFLAGS="%{optflags} -f$pic" CXXFLAGS="%{optflags} -f$pic"
%configure \
--enable-bluetooth=yes \
--enable-ipv6 \
--enable-rdma
%make_build all shared
%install
mkdir -p %{buildroot}%{_bindir}
make DESTDIR=%{buildroot} install install-shared
%post -n libpcap1 -p /sbin/ldconfig
%postun -n libpcap1 -p /sbin/ldconfig
%files -n libpcap1
%license LICENSE
%doc CHANGES CREDITS README.md doc/README.linux TODO
%{_libdir}/*.so.*
%{_mandir}/man7/*
%files devel-static
%{_libdir}/*.*a
%files devel
%{_mandir}/man[1-6]/*
%{_includedir}/*
%{_bindir}/pcap-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog