2006-12-19 00:17:24 +01:00
|
|
|
#
|
2011-11-15 12:53:33 +01:00
|
|
|
# spec file for package pciutils
|
2006-12-19 00:17:24 +01:00
|
|
|
#
|
2012-02-01 15:19:40 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:24 +01:00
|
|
|
#
|
2008-09-13 07:11:06 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:17:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-09 22:12:11 +02:00
|
|
|
|
2006-12-19 00:17:24 +01:00
|
|
|
Name: pciutils
|
2012-02-01 15:19:40 +01:00
|
|
|
Version: 3.1.9
|
|
|
|
Release: 1
|
2009-08-17 14:30:35 +02:00
|
|
|
BuildRequires: zlib-devel
|
2010-06-18 05:32:42 +02:00
|
|
|
BuildRequires: pkg-config
|
2006-12-19 00:17:24 +01:00
|
|
|
Requires: pciutils-ids
|
2007-10-05 15:59:20 +02:00
|
|
|
AutoReqProv: on
|
2009-01-09 01:44:15 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pciutils-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:17:24 +01:00
|
|
|
Group: Hardware/Other
|
2011-12-06 18:36:20 +01:00
|
|
|
License: GPL-2.0+
|
2006-12-19 00:17:24 +01:00
|
|
|
Summary: PCI-utilities for Kernel version 2.2 and newer
|
2007-10-05 15:59:20 +02:00
|
|
|
Url: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
|
2007-05-06 17:17:28 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2009-08-17 14:30:35 +02:00
|
|
|
Source1: COPYING
|
2010-02-18 16:49:20 +01:00
|
|
|
Source2: baselibs.conf
|
2008-04-10 22:46:06 +02:00
|
|
|
Patch: update-pciutils-dist
|
2008-09-13 07:11:06 +02:00
|
|
|
Patch1: %{name}-%{version}_pkgconfig.patch
|
2011-11-15 12:53:33 +01:00
|
|
|
Patch2: pciutils-ocloexec.patch
|
2006-12-19 00:17:24 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-01-20 11:46:13 +01:00
|
|
|
Martin Mares <mj@ucw.cz>
|
2006-12-19 00:17:24 +01:00
|
|
|
|
|
|
|
%package devel
|
2011-12-06 18:36:20 +01:00
|
|
|
License: GPL-2.0+
|
2006-12-19 00:17:24 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Summary: Static Library and Include Files of the PCI-utilities
|
2009-01-09 01:44:15 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pciutils-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-03-29 18:24:13 +02:00
|
|
|
# As we only package a static library we need zlib-devel for final linking
|
2008-04-11 00:25:24 +02:00
|
|
|
Requires: zlib-devel %{name} = %{version}
|
2006-12-19 00:17:24 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the files that are necessary for software
|
|
|
|
development using the PCI-utilities.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-01-20 11:46:13 +01:00
|
|
|
Martin Mares <mj@ucw.cz>
|
2006-12-19 00:17:24 +01:00
|
|
|
|
|
|
|
%prep
|
2008-04-10 22:46:06 +02:00
|
|
|
%setup -q
|
|
|
|
%patch -p1
|
2012-02-01 15:19:40 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2006-12-19 00:17:24 +01:00
|
|
|
|
|
|
|
%build
|
2010-07-30 12:56:59 +02:00
|
|
|
make %{?_smp_mflags} OPT="$RPM_OPT_FLAGS -Wall" PREFIX=%{_prefix} LIBDIR=/%{_lib} SBINDIR=/sbin STRIP="" SHARED="yes"
|
2006-12-19 00:17:24 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} SBINDIR=$RPM_BUILD_ROOT/sbin \
|
2008-04-10 22:46:06 +02:00
|
|
|
ROOT=$RPM_BUILD_ROOT/ MANDIR=$RPM_BUILD_ROOT/%{_mandir} STRIP="" \
|
2008-04-12 20:06:35 +02:00
|
|
|
SHARED="yes" LIBDIR=$RPM_BUILD_ROOT/%{_lib}
|
2006-12-19 00:17:24 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_includedir}/pci
|
|
|
|
cp -p lib/{pci,header,config,types}.h $RPM_BUILD_ROOT%{_includedir}/pci/
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/pci.ids*
|
2008-04-12 20:06:35 +02:00
|
|
|
install -D -m 0644 lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libpci.pc
|
|
|
|
ln -sf /%{_lib}/libpci.so.3 %{buildroot}%{_libdir}/libpci.so
|
2006-12-19 00:17:24 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-04-10 22:46:06 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2006-12-19 00:17:24 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2009-08-17 14:30:35 +02:00
|
|
|
%doc README COPYING
|
2006-12-19 00:17:24 +01:00
|
|
|
%doc %{_mandir}/man?/*
|
2008-04-12 20:06:35 +02:00
|
|
|
/%{_lib}/libpci.so.*
|
2006-12-19 00:17:24 +01:00
|
|
|
/sbin/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/pci/
|
2008-04-11 00:25:24 +02:00
|
|
|
%{_libdir}/*.so
|
2008-04-12 20:06:35 +02:00
|
|
|
%{_libdir}/pkgconfig/libpci.pc
|
2008-04-09 22:12:11 +02:00
|
|
|
|
2007-03-29 18:24:13 +02:00
|
|
|
%changelog
|