From 9d42fa819afee8ee3b478d6ee3906163b177d18685fd80a58b065eb9dd74a600 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 16 May 2012 21:03:08 +0000 Subject: [PATCH] Accepting request 120775 from home:jengelh:branches:Base:System - Shared library policy: new subpackage libpci3 OBS-URL: https://build.opensuse.org/request/show/120775 OBS-URL: https://build.opensuse.org/package/show/Base:System/pciutils?expand=0&rev=34 --- baselibs.conf | 5 ++++- pciutils.changes | 5 +++++ pciutils.spec | 40 +++++++++++++++++++++------------------- 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index da267e8..38b2382 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,2 +1,5 @@ -pciutils +libpci3 pciutils-devel + requires -pciutils- + requires "libpci3- = " + diff --git a/pciutils.changes b/pciutils.changes index 5b79e08..af2f205 100644 --- a/pciutils.changes +++ b/pciutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Mar 18 15:33:42 UTC 2012 - jengelh@medozas.de + +- Shared library policy: new subpackage libpci3 + ------------------------------------------------------------------- Sun Jan 29 02:18:30 UTC 2012 - tabraham@novell.com diff --git a/pciutils.spec b/pciutils.spec index e48df15..224873a 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -15,24 +15,22 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: pciutils +%define lname libpci3 Version: 3.1.9 -Release: 1 -BuildRequires: zlib-devel +Release: 0 BuildRequires: pkg-config +BuildRequires: zlib-devel Requires: pciutils-ids -AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: pciutils-64bit %endif # -Group: Hardware/Other +Summary: PCI utilities for Kernel version 2.2 and newer License: GPL-2.0+ -Summary: PCI-utilities for Kernel version 2.2 and newer +Group: Hardware/Other Url: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml Source: %{name}-%{version}.tar.bz2 Source1: COPYING @@ -59,21 +57,25 @@ Authors: -------- Martin Mares +%package -n %lname +Summary: PCI utility library +Group: System/Libraries + +%description -n %lname +libpci offers access to the PCI configuration space. + %package devel -License: GPL-2.0+ +Summary: Library and Include Files of the PCI utilities Group: Development/Libraries/C and C++ -Summary: Static Library and Include Files of the PCI-utilities # bug437293 %ifarch ppc64 Obsoletes: pciutils-devel-64bit %endif -# -# As we only package a static library we need zlib-devel for final linking -Requires: zlib-devel %{name} = %{version} +Requires: %lname = %version %description devel This package contains the files that are necessary for software -development using the PCI-utilities. +development using the PCI utilities. @@ -100,20 +102,20 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/pci.ids* install -D -m 0644 lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libpci.pc ln -sf /%{_lib}/libpci.so.3 %{buildroot}%{_libdir}/libpci.so -%clean -rm -rf $RPM_BUILD_ROOT +%post -n %lname -p /sbin/ldconfig -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig %files %defattr(-, root, root) %doc README COPYING %doc %{_mandir}/man?/* -/%{_lib}/libpci.so.* /sbin/* +%files -n %lname +%defattr(-,root,root) +/%_lib/libpci.so.* + %files devel %defattr(-, root, root) %{_includedir}/pci/