Right now we install the files in RPMs only, and we include
them in the -daemon package which is probably not the best
option either. Start installing them via autotools; the RPMs
will get them automatically in the -docs package.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
examples/Makefile.am | 9 ++++++++-
libvirt.spec.in | 2 --
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 67d959c6a3..4122219e22 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -18,9 +18,13 @@
FILTERS = $(wildcard $(srcdir)/xml/nwfilter/*.xml)
+POLKIT_EXAMPLES = \
+ $(wildcard $(srcdir)/polkit/*.rules) \
+ $(NULL)
+
EXTRA_DIST = \
lxcconvert/virt-lxc-convert \
- polkit/libvirt-acl.rules \
+ $(POLKIT_EXAMPLES) \
$(wildcard $(srcdir)/systemtap/*.stp) \
$(FILTERS) \
$(wildcard $(srcdir)/xml/storage/*.xml) \
@@ -99,6 +103,9 @@ endif WITH_NWFILTER
examplesdir = $(docdir)/examples
+polkitexamplesdir = $(examplesdir)/polkit
+polkitexamples_DATA = $(POLKIT_EXAMPLES)
+
install-data-local:
for p in $(EXAMPLES); do \
d=$$(dirname $$p); \
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 06cdce9a2f..7157b449a1 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -1572,8 +1572,6 @@ exit 0
%{_mandir}/man8/virtlockd.8*
%{_mandir}/man7/virkey*.7*
-%doc examples/polkit/*.rules
-
%files daemon-config-network
%dir %{_datadir}/libvirt/networks/
%{_datadir}/libvirt/networks/default.xml
--
2.21.0