aboutgitcodebugslistschat
path: root/contrib/fedora
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-02 17:55:23 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-02 17:55:23 +0200
commit96dbaf4d963f4916645085c60bc399e10dc8ea3d (patch)
tree43ca72c00ff2fa9970ab52a2e8b31f33fc9c342a /contrib/fedora
parentbac7dfebe47b997de8876a8380ee0a1bbf97ab1f (diff)
downloadpasst-96dbaf4d963f4916645085c60bc399e10dc8ea3d.tar
passt-96dbaf4d963f4916645085c60bc399e10dc8ea3d.tar.gz
passt-96dbaf4d963f4916645085c60bc399e10dc8ea3d.tar.bz2
passt-96dbaf4d963f4916645085c60bc399e10dc8ea3d.tar.lz
passt-96dbaf4d963f4916645085c60bc399e10dc8ea3d.tar.xz
passt-96dbaf4d963f4916645085c60bc399e10dc8ea3d.tar.zst
passt-96dbaf4d963f4916645085c60bc399e10dc8ea3d.zip
fedora: Add %dir entries for own SELinux policy directory and documentation
fedora-review says: Note: No known owner of /usr/share/selinux/packages/passt, /usr/share/doc/passt While at it, replace "passt" by "%{name}" in a few places for consistency. Reported-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/fedora')
-rw-r--r--contrib/fedora/passt.spec8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index 922f584..ca3e8b3 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -49,7 +49,7 @@ This package adds SELinux enforcement to passt(1) and pasta(1).
%make_build
%install
-%make_install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} docdir=%{_docdir}/passt
+%make_install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} docdir=%{_docdir}/%{name}
%ifarch x86_64
ln -sr %{buildroot}%{_mandir}/man1/passt.1 %{buildroot}%{_mandir}/man1/passt.avx2.1
ln -sr %{buildroot}%{_mandir}/man1/pasta.1 %{buildroot}%{_mandir}/man1/pasta.avx2.1
@@ -71,8 +71,9 @@ semodule -r pasta 2>/dev/null || :
%files
%license LICENSES/{AGPL-3.0-or-later.txt,BSD-3-Clause.txt}
-%doc %{_docdir}/passt/README.md
-%doc %{_docdir}/passt/demo.sh
+%dir %{_docdir}/%{name}
+%doc %{_docdir}/%{name}/README.md
+%doc %{_docdir}/%{name}/demo.sh
%{_bindir}/passt
%{_bindir}/pasta
%{_bindir}/qrap
@@ -87,6 +88,7 @@ semodule -r pasta 2>/dev/null || :
%endif
%files selinux
+%dir %{_datadir}/selinux/packages/%{name}
%{_datadir}/selinux/packages/%{name}/passt.pp
%{_datadir}/selinux/packages/%{name}/pasta.pp