From c3704e0faf9159a097a7d6109bec223fdcc46f19 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Mar 2016 04:22:51 +0100 Subject: Fix dkms configuration --- pcitool.spec.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pcitool.spec.in') 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 -- cgit v1.2.3