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
This commit is contained in:
parent
fbc62d411f
commit
9d42fa819a
@ -1,2 +1,5 @@
|
||||
pciutils
|
||||
libpci3
|
||||
pciutils-devel
|
||||
requires -pciutils-<targettype>
|
||||
requires "libpci3-<targettype> = <version>"
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 <mj@ucw.cz>
|
||||
|
||||
%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/
|
||||
|
Loading…
Reference in New Issue
Block a user