diff --git a/pciutils-3.13.0.tar.gz b/pciutils-3.13.0.tar.gz deleted file mode 100644 index 0a52535921ba92ff1b84e9a1f2bae40e0f4f2a78..0000000000000000000000000000000000000000 Binary files a/pciutils-3.13.0.tar.gz and /dev/null differ diff --git a/pciutils-3.14.0.tar.xz b/pciutils-3.14.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..550901886a1e154ad55e1be9cb879b35a28177c7 Binary files /dev/null and b/pciutils-3.14.0.tar.xz differ diff --git a/pciutils.spec b/pciutils.spec index 25d1afe78b2f3e5acbee9ee89aacf88011a80604..b20551ac7542c2c6c4a3b0f30e3ae108f3848749 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,17 +1,19 @@ Name: pciutils -Version: 3.13.0 -Release: 3 +Version: 3.14.0 +Release: 1 Summary: PCI bus related utilities -License: GPLv2+ +License: GPL-2.0-or-later URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml -Source0: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.gz +Source0: https://www.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.xz # support building with other compilers # rebased against 3.13.0 Patch2: 0002-Support-specify-CC.patch ExclusiveOS: Linux -BuildRequires: gcc sed kmod-devel pkgconfig zlib-devel +BuildRequires: gcc +BuildRequires: pkgconfig(libkmod) +BuildRequires: sed Requires: hwdata Provides: %{name}-libs Obsoletes: %{name}-libs @@ -32,7 +34,7 @@ setpci %package devel Summary: Library and Include Files of the PCI utilities -Requires: zlib-devel pkgconfig %{name} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} Provides: %{name}-devel-static Obsoletes: %{name}-devel-static @@ -40,23 +42,18 @@ Obsoletes: %{name}-devel-static This package contains the files that are necessary for software development using the PCI utilities. -%package help -Summary: Including man files for pciutils -Requires: man - -%description help -This contains man files for the using of pciutils. +%package_help %prep %autosetup -n %{name}-%{version} -p1 %build -make SHARED="no" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" PREFIX="/usr" %{?_smp_mflags} +make SHARED="no" ZLIB="no" LIBKMOD=yes STRIP="" OPT="%{build_cflags}" LDFLAGS="%{build_ldflags}" PREFIX="/usr" %{?_smp_mflags} mv lib/libpci.a lib/libpci.a.tobak make clean -make SHARED="yes" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" LIBDIR="/%{_lib}" %{?_smp_mflags} +make SHARED="yes" ZLIB="no" LIBKMOD=yes STRIP="" OPT="%{build_cflags}" LDFLAGS="%{build_ldflags}" PREFIX="/usr" LIBDIR="/%{_lib}" %{?_smp_mflags} sed -i "s|^libdir=.*$|libdir=/%{_lib}|" lib/libpci.pc %install @@ -76,12 +73,7 @@ install -p lib/libpci.so.* $RPM_BUILD_ROOT/%{_lib}/ ln -s ../../%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/*.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpci.so rm -rf $RPM_BUILD_ROOT/usr/share/hwdata/pci.ids* -%post -n %{name} -p /sbin/ldconfig - -%postun -n %{name} -p /sbin/ldconfig - %files -%defattr(-,root,root,-) %doc README ChangeLog pciutils.lsm COPYING /sbin/pcilmr /usr/share/pci.ids @@ -102,10 +94,11 @@ rm -rf $RPM_BUILD_ROOT/usr/share/hwdata/pci.ids* %{_mandir}/man7/* %{_mandir}/man8/* -%clean -rm -rf $RPM_BUILD_ROOT - %changelog +* Tue Sep 02 2025 Funda Wang - 3.14.0-1 +- update to 3.14.0 +- drop useless zlib requirement + * Tue Jul 01 2025 wangmian - 3.13.0-3 - Fixed bug for macros in Changelog