pciutils/pciutils.spec
Tomáš Chvátal 37542058ce - Version bump to 3.3.0:
* Device names exported by BIOS are displayed on Linux.
   * On Linux systems, HWDB is used to look up device names
     when our ID database gives no match. (More precisely,
     HWDB is consulted after local pci.ids, but before using
     network to query online pci.ids.) Thanks to Tom Gundersen
     for the initial patch.
   * Added experimental back-end for OS X / Darwin. Thanks to
     Richard Yao for providing it.
   * Filters now support matching by device class. Original
     patch by Matthew Wilcox, wrappers for ABI compatibility
     by me.
   * Interrupt Pin and Interrupt Line registers are displayed
     for bridge devices, too.
   * Several portability bugs have been fixed.
   * Several typos have been fixed. Also, use of questionable
     constructs in man pages has been reduced.
   * PCIe link capabilities now include the ASPMOptComp bit.
   * The "CRS Software Visibility" bit is now decoded properly.
   * Updated pci.ids to the current snapshot of the database.
- Refresh patch:
  * pciutils-endianh.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/pciutils?expand=0&rev=46
2014-11-18 13:30:50 +00:00

107 lines
3.3 KiB
RPMSpec

#
# spec file for package pciutils
#
# 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
# 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 http://bugs.opensuse.org/
#
%define lname libpci3
Name: pciutils
Version: 3.3.0
Release: 0
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
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
%description
lspci: This program displays detailed information about all PCI busses
and devices in the system, replacing the original /proc/pci interface.
setpci: This program allows reading from and writing to PCI device
configuration registers. For example, you can adjust the latency timers
with it.
update-pciids: This program downloads the current version of the
pci.ids file.
%package -n %{lname}
Summary: PCI utility library
Group: System/Libraries
%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}
%description devel
This package contains the files that are necessary for software
development using the PCI utilities.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
make %{?_smp_mflags} OPT="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS) -Wall" PREFIX=%{_prefix} LIBDIR=/%{_lib} SBINDIR=/sbin STRIP="" SHARED="yes"
%install
make install PREFIX=%{buildroot}%{_prefix} SBINDIR=%{buildroot}/sbin \
ROOT=%{buildroot}/ MANDIR=%{buildroot}/%{_mandir} STRIP="" \
SHARED="yes" LIBDIR=%{buildroot}/%{_lib}
mkdir -p %{buildroot}%{_includedir}/pci
cp -p lib/{pci,header,config,types}.h %{buildroot}%{_includedir}/pci/
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
%postun -n %{lname} -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc README COPYING
%doc %{_mandir}/man?/*
/sbin/*
%files -n %{lname}
%defattr(-,root,root)
/%{_lib}/libpci.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/pci/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libpci.pc
%changelog