- Remove COPYING from obs it is in tarball directly
- Version bump to 3.2.1: * CardBus bridge capabilities are displayed. * PCIe L1 PM substates are decoded. * Various bugs were fixed in decoding of PCIe capabilities. * The sysfs back-end does not spit out unnecessary warnings when empty slots report only a partial device address. This actually happens on IBM pSeries. * Updated pci.ids to the today's snapshot of the database. - Cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/Base:System/pciutils?expand=0&rev=42
This commit is contained in:
committed by
Git OBS Bridge
parent
5b52495153
commit
5c11c71ef8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package pciutils
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,31 +16,29 @@
|
||||
#
|
||||
|
||||
|
||||
%define lname libpci3
|
||||
Name: pciutils
|
||||
%define lname libpci3
|
||||
Version: 3.2.0
|
||||
Version: 3.2.1
|
||||
Release: 0
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: pkgconfig(libkmod)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
Requires: pciutils-ids
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: pciutils-64bit
|
||||
%endif
|
||||
#
|
||||
Summary: PCI utilities for Kernel version 2
|
||||
License: GPL-2.0+
|
||||
Group: Hardware/Other
|
||||
Url: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
|
||||
Source: ftp://ftp.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.xz
|
||||
Source1: COPYING
|
||||
Source2: baselibs.conf
|
||||
Patch0: pciutils-3.2.0_update-dist.patch
|
||||
Patch1: %{name}-3.1.9_pkgconfig.patch
|
||||
Patch2: pciutils-ocloexec.patch
|
||||
Patch3: pciutils-endianh.patch
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: pkgconfig(libkmod)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
Requires: pciutils-ids
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: pciutils-64bit
|
||||
%endif
|
||||
|
||||
%description
|
||||
lspci: This program displays detailed information about all PCI busses
|
||||
@@ -53,21 +51,21 @@ with it.
|
||||
update-pciids: This program downloads the current version of the
|
||||
pci.ids file.
|
||||
|
||||
%package -n %lname
|
||||
%package -n %{lname}
|
||||
Summary: PCI utility library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %lname
|
||||
%description -n %{lname}
|
||||
libpci offers access to the PCI configuration space.
|
||||
|
||||
%package devel
|
||||
Summary: Library and Include Files of the PCI utilities
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{lname} = %{version}
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: pciutils-devel-64bit
|
||||
%endif
|
||||
Requires: %lname = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the files that are necessary for software
|
||||
@@ -79,6 +77,7 @@ development using the PCI utilities.
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} OPT="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS) -Wall" PREFIX=%{_prefix} LIBDIR=/%{_lib} SBINDIR=/sbin STRIP="" SHARED="yes"
|
||||
|
||||
@@ -92,9 +91,9 @@ rm -rf %{buildroot}%{_datadir}/pci.ids*
|
||||
install -D -m 0644 lib/libpci.pc %{buildroot}%{_libdir}/pkgconfig/libpci.pc
|
||||
ln -sf /%{_lib}/libpci.so.3 %{buildroot}%{_libdir}/libpci.so
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
@@ -102,7 +101,7 @@ ln -sf /%{_lib}/libpci.so.3 %{buildroot}%{_libdir}/libpci.so
|
||||
%doc %{_mandir}/man?/*
|
||||
/sbin/*
|
||||
|
||||
%files -n %lname
|
||||
%files -n %{lname}
|
||||
%defattr(-,root,root)
|
||||
/%{_lib}/libpci.so.*
|
||||
|
||||
|
Reference in New Issue
Block a user