enable libkmod support (#1087862)
This commit is contained in:
parent
34fb8a2451
commit
122cfef738
@ -1,6 +1,6 @@
|
||||
Name: pciutils
|
||||
Version: 3.2.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
|
||||
Source1: multilibconfigh
|
||||
|
||||
@ -16,7 +16,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
ExclusiveOS: Linux
|
||||
Requires: hwdata
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
BuildRequires: sed
|
||||
BuildRequires: sed kmod-devel
|
||||
Summary: PCI bus related utilities
|
||||
Group: Applications/System
|
||||
|
||||
@ -60,12 +60,12 @@ devices connected to the PCI bus.
|
||||
sed -i -e 's|^SRC=.*|SRC="http://pciids.sourceforge.net/pci.ids"|' update-pciids.sh
|
||||
|
||||
%build
|
||||
make SHARED="no" ZLIB="no" STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
||||
make SHARED="no" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
||||
mv lib/libpci.a lib/libpci.a.toinstall
|
||||
|
||||
make clean
|
||||
|
||||
make SHARED="yes" ZLIB="no" STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" LIBDIR="/%{_lib}" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
||||
make SHARED="yes" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" LIBDIR="/%{_lib}" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
||||
|
||||
#fix lib vs. lib64 in libpci.pc (static Makefile is used)
|
||||
sed -i "s|^libdir=.*$|libdir=/%{_lib}|" lib/libpci.pc
|
||||
@ -123,6 +123,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%changelog
|
||||
* Tue Apr 15 2014 Michal Hlavinka <mhlavink@redhat.com> - 3.2.1-2
|
||||
- enable libkmod support (#1087862)
|
||||
|
||||
* Fri Nov 15 2013 Michal Hlavinka <mhlavink@redhat.com> - 3.2.1-1
|
||||
- updated to 3.2.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user