diff mbox series

[ndctl,1/2] ndctl.spec.in: Address misc. packaging bugs (RHBZ#2100157)

Message ID 20220829234157.101085-2-vishal.l.verma@intel.com
State Accepted
Commit 59ed1caacc6f3e382e9126d0016ee6f49848ed62
Headers show
Series misc RPM / release scripts fixes | expand

Commit Message

Verma, Vishal L Aug. 29, 2022, 11:41 p.m. UTC
Address some RPM packing bugs where the spec failed to claim parent
directories that it creates for config files.

Based on a patch by Ralf Corsépius <corsepiu@fedoraproject.org>

Link: https://src.fedoraproject.org/rpms/ndctl/c/401f506f1288384127e1ca20c64df64a9cd413f2?branch=rawhide
Cc: Ralf Corsépius <corsepiu@fedoraproject.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 ndctl.spec.in | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ndctl.spec.in b/ndctl.spec.in
index cfcafa2..4788dab 100644
--- a/ndctl.spec.in
+++ b/ndctl.spec.in
@@ -171,9 +171,14 @@  fi
 %{_mandir}/man1/ndctl*
 %{bashcompdir}/ndctl
 %{_unitdir}/ndctl-monitor.service
+
+%dir %{_sysconfdir}/ndctl
+%dir %{_sysconfdir}/ndctl/keys
 %{_sysconfdir}/ndctl/keys/keys.readme
+
 %{_sysconfdir}/modprobe.d/nvdimm-security.conf
 
+%dir %{_sysconfdir}/ndctl.conf.d
 %config(noreplace) %{_sysconfdir}/ndctl.conf.d/monitor.conf
 %config(noreplace) %{_sysconfdir}/ndctl.conf.d/ndctl.conf
 
@@ -182,10 +187,11 @@  fi
 %license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
 %{_bindir}/daxctl
 %{_mandir}/man1/daxctl*
-%{_datadir}/daxctl/daxctl.conf
+%{_datadir}/daxctl
 %{bashcompdir}/daxctl
 %{_unitdir}/daxdev-reconfigure@.service
 %config %{_udevrulesdir}/90-daxctl-device.rules
+%dir %{_sysconfdir}/daxctl.conf.d/
 %config(noreplace) %{_sysconfdir}/daxctl.conf.d/daxctl.example.conf
 
 %files -n cxl-cli