|
@@ -2,24 +2,24 @@
|
|
|
Summary: PCI bus related utilities.
|
|
|
Summary(ja): Linux PCI ユーティリティ
|
|
|
Name: pciutils
|
|
|
-Version: 3.6.4
|
|
|
+Version: 3.13.0
|
|
|
Release: 1%{?_dist_release}
|
|
|
-Group: Applications/System
|
|
|
+Group: admin-tools
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
|
|
|
License: GPLv2+
|
|
|
-URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
|
|
|
+URL: https://mj.ucw.cz/sw/pciutils/
|
|
|
Source: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/pciutils-%{version}.tar.xz
|
|
|
|
|
|
#change pci.ids directory to hwdata, fedora/rhel specific
|
|
|
-Patch1: pciutils-2.2.1-idpath.patch
|
|
|
+Patch1: pciutils-2.2.1-idpath.patch
|
|
|
|
|
|
#add support for directory with another pci.ids, rejected by upstream, rhbz#195327
|
|
|
-Patch2: pciutils-dir-d.patch
|
|
|
+Patch2: pciutils-dir-d.patch
|
|
|
+Patch3: pciutils-3.13.0-fixleak.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-ExclusiveOS: Linux
|
|
|
BuildRequires: sed
|
|
|
Requires: hwdata
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
@@ -38,10 +38,11 @@ require kernel version 2.1.82 or newer (which support the
|
|
|
このパッケージに収められたユーティリティはカーネル 2.1.82 以降
|
|
|
(/proc/bus/pci インタフェースがサポートされているもの) を必要とします.
|
|
|
|
|
|
+
|
|
|
%package devel
|
|
|
Summary: Linux PCI development library.
|
|
|
-Summary(ja): Linux PCI 開発ライブラリ
|
|
|
-Group: Development/Libraries
|
|
|
+Summary(ja): Linux PCI 開発ライブラリ
|
|
|
+Group: programming
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
Provides: pkgconfig(libpci) = %{version}
|
|
|
|
|
@@ -53,41 +54,49 @@ devices connected to the PCI bus.
|
|
|
このパッケージには PCI バスに接続された各種デバイスの状態を見たり
|
|
|
設定したりするのに必要なライブラリが収められています.
|
|
|
|
|
|
+
|
|
|
%package libs
|
|
|
Summary: Linux PCI library
|
|
|
Summary(ja): Linux PCI ライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
|
|
|
%description libs
|
|
|
This package contains a library for inspecting and setting
|
|
|
devices connected to the PCI bus.
|
|
|
|
|
|
+
|
|
|
%package static
|
|
|
Summary: Linux PCI satic library
|
|
|
Summary(ja): Linux PCI スタッティックライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
%description static
|
|
|
This package contains a library for inspecting and setting
|
|
|
devices connected to the PCI bus.
|
|
|
|
|
|
+
|
|
|
## to build compat32 for x86_64 architecture support
|
|
|
%package -n compat32-%{name}-libs
|
|
|
Summary: Linux PCI library.
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming,legacy
|
|
|
Requires: compat32-%{name}-devel = %{version}-%{release}
|
|
|
%description -n compat32-%{name}-libs
|
|
|
This package contains a library for inspecting and setting
|
|
|
devices connected to the PCI bus.
|
|
|
|
|
|
+
|
|
|
%package -n compat32-%{name}-devel
|
|
|
Summary: Linux PCI development library.
|
|
|
-Group: Development/Libraries
|
|
|
+Group: system,legacy
|
|
|
%description -n compat32-%{name}-devel
|
|
|
This package contains a library for inspecting and setting
|
|
|
devices connected to the PCI bus.
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n pciutils-%{version}
|
|
|
%autopatch -p1
|
|
@@ -107,32 +116,21 @@ sed -i -e "s|^libdir=.*$|libdir=%{_libdir}|" lib/libpci.pc
|
|
|
|
|
|
|
|
|
%install
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
-install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8,%{_libdir},%{_libdir}/pkgconfig,%{_includedir}/pci}
|
|
|
+install -d %{buildroot}/{sbin,%{_mandir}/man8,%{_libdir},%{_libdir}/pkgconfig,%{_includedir}/pci}
|
|
|
|
|
|
-install -p lspci setpci update-pciids $RPM_BUILD_ROOT/sbin
|
|
|
-install -p lspci.8 setpci.8 update-pciids.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
-install -p lib/libpci.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
|
|
|
-ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/*.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpci.so
|
|
|
+install -p lspci setpci update-pciids %{buildroot}/sbin
|
|
|
+install -p lspci.8 setpci.8 update-pciids.8 %{buildroot}%{_mandir}/man8
|
|
|
+install -p lib/libpci.so.*.*.* %{buildroot}%{_libdir}
|
|
|
+ln -s $(basename %{buildroot}%{_libdir}/*.so.*.*.*) %{buildroot}%{_libdir}/libpci.so
|
|
|
|
|
|
-mv lib/libpci.a.toinstall lib/libpci.a
|
|
|
-install -p lib/libpci.a $RPM_BUILD_ROOT%{_libdir}
|
|
|
-/sbin/ldconfig -N $RPM_BUILD_ROOT%{_libdir}
|
|
|
-install -p lib/pci.h $RPM_BUILD_ROOT%{_includedir}/pci
|
|
|
-install -p lib/header.h $RPM_BUILD_ROOT%{_includedir}/pci
|
|
|
-install -p lib/config.h $RPM_BUILD_ROOT%{_includedir}/pci
|
|
|
-install -p lib/types.h $RPM_BUILD_ROOT%{_includedir}/pci
|
|
|
-install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
|
-
|
|
|
-
|
|
|
-%post libs -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun libs -p /sbin/ldconfig
|
|
|
-
|
|
|
-%post -n compat32-%{name}-libs -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -n compat32-%{name}-libs -p /sbin/ldconfig
|
|
|
+mkdir -p %{buildroot}%{_libdir}
|
|
|
+mv lib/libpci.a.toinstall %{buildroot}%{_libdir}/libpci.a
|
|
|
+ldconfig -N %{buildroot}%{_libdir}
|
|
|
+install -p lib/pci.h %{buildroot}%{_includedir}/pci
|
|
|
+install -p lib/header.h %{buildroot}%{_includedir}/pci
|
|
|
+install -p lib/config.h %{buildroot}%{_includedir}/pci
|
|
|
+install -p lib/types.h %{buildroot}%{_includedir}/pci
|
|
|
+install -p lib/libpci.pc %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
|
|
|
|
|
%files
|
|
@@ -169,11 +167,10 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
|
%endif
|
|
|
|
|
|
|
|
|
-%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
-
|
|
|
%changelog
|
|
|
+* Tue Jul 16 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.13.0-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.6.4-1
|
|
|
- new upstream release.
|
|
|
- dropped all patches.
|