summaryrefslogtreecommitdiffstats
path: root/pcitool.spec.in
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-06 04:22:51 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-06 04:22:51 +0100
commitc3704e0faf9159a097a7d6109bec223fdcc46f19 (patch)
tree5623f5856734b441285a6cc1bebd828d47e13f9c /pcitool.spec.in
parent0dce5c26ecec594b3f25b9e003c830874a690e1c (diff)
downloadpcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.tar.gz
pcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.tar.bz2
pcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.tar.xz
pcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.zip
Fix dkms configuration
Diffstat (limited to 'pcitool.spec.in')
-rw-r--r--pcitool.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/pcitool.spec.in b/pcitool.spec.in
index 07773da..136d47c 100644
--- a/pcitool.spec.in
+++ b/pcitool.spec.in
@@ -35,6 +35,7 @@ operation.
%package -n libpcilib${PCILIB_ABI_VERSION}
Summary: User-space PCI library
Group: Development/Libraries
+Provides: pcilib = %{version}
Requires: pcilib-python >= %{version}
Requires: pcilib-dkms >= %{version}
@@ -58,6 +59,7 @@ API exposes 4 API layers.
Summary: Development files for pcilib
Group: Development/Libraries
Requires: libpcilib${PCILIB_ABI_VERSION} = %{version}
+Requires: uthash
%description -n libpcilib-devel
Development files for user-space PCI library
@@ -138,6 +140,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_includedir}/linux/
install -m 644 driver/ioctl.h $RPM_BUILD_ROOT/%{_includedir}/linux/pcidriver.h
mkdir -p $RPM_BUILD_ROOT/usr/src/%{modname}-%{version}/pcilib/
install -m 644 misc/dkms.conf $RPM_BUILD_ROOT/%{_prefix}/src/%{modname}-%{version}/
+install -m 755 misc/dkms-postbuild.sh $RPM_BUILD_ROOT/%{_prefix}/src/%{modname}-%{version}/
install -m 644 pcilib/*.h $RPM_BUILD_ROOT/%{_prefix}/src/%{modname}-%{version}/pcilib/
cp -r driver $RPM_BUILD_ROOT/usr/src/%{modname}-%{version}/
@@ -231,7 +234,7 @@ exit 0
%if %{defined suse_version}
/var/adm/fillup-templates/sysconfig.*
%else
-%{_sysconfdir}/sysconfig/*
+%config %{_sysconfdir}/sysconfig/*
%endif
%{_unitdir}/*
%{_datadir}/pcilib${PCILIB_ABI_VERSION}/pyserver