summaryrefslogtreecommitdiffstats
path: root/pcitool.spec.in
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-08 14:35:06 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-08 14:35:06 +0100
commit70aab572f4199391fd514a9e1a64af8b1a3b8324 (patch)
tree3ee9783fcc9e7cb51b121eed400071f3cadf9116 /pcitool.spec.in
parenteec7e74d2eccf811f0d25bb40fa514dc47655d67 (diff)
parentc3704e0faf9159a097a7d6109bec223fdcc46f19 (diff)
downloadpcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.tar.gz
pcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.tar.bz2
pcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.tar.xz
pcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.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 c7d5929..8de8002 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}/
@@ -239,7 +242,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