diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-08 02:15:51 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-08 02:15:51 +0100 |
commit | eec7e74d2eccf811f0d25bb40fa514dc47655d67 (patch) | |
tree | 1b2c199cb356da7fd299d5b53a632cf9a535ca3e /pcitool.spec.in | |
parent | 92b9df25f5bbb2f70ee2626907e410affc02bdeb (diff) | |
download | pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.tar.gz pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.tar.bz2 pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.tar.xz pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.zip |
Support XML configuration of device models
Diffstat (limited to 'pcitool.spec.in')
-rw-r--r-- | pcitool.spec.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcitool.spec.in b/pcitool.spec.in index 07773da..c7d5929 100644 --- a/pcitool.spec.in +++ b/pcitool.spec.in @@ -143,6 +143,10 @@ cp -r driver $RPM_BUILD_ROOT/usr/src/%{modname}-%{version}/ # Sample model cp -r xml/test $RPM_BUILD_ROOT/%{_datadir}/pcilib${PCILIB_ABI_VERSION}/models/ +cp -r xml/devices $RPM_BUILD_ROOT/%{_datadir}/pcilib${PCILIB_ABI_VERSION}/ + +# Default configuration +install -m 644 misc/ipedevices.xml $RPM_BUILD_ROOT/%{_datadir}/pcilib${PCILIB_ABI_VERSION}/devices/ # Servers mkdir -p $RPM_BUILD_ROOT/%{_unitdir} @@ -200,8 +204,11 @@ exit 0 %doc docs/HARDWARE %dir %{_libdir}/pcilib${PCILIB_ABI_VERSION}/ %dir %{_datadir}/pcilib${PCILIB_ABI_VERSION}/ +%dir %{_datadir}/pcilib${PCILIB_ABI_VERSION}/devices/ %dir %{_datadir}/pcilib${PCILIB_ABI_VERSION}/models/ +%{_datadir}/pcilib${PCILIB_ABI_VERSION}/*.xsd %{_datadir}/pcilib${PCILIB_ABI_VERSION}/models/*.xsd +%{_datadir}/pcilib${PCILIB_ABI_VERSION}/devices/ipedevices.xml %{_libdir}/libpcilib.so.* %files -n libpcilib-devel @@ -216,6 +223,7 @@ exit 0 %files -n pcilib-test %defattr(-, root, root) %{_datadir}/pcilib${PCILIB_ABI_VERSION}/models/test +%{_datadir}/pcilib${PCILIB_ABI_VERSION}/devices/testdevice.xml %files -n pcilib-dkms %defattr(-, root, root) |