From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v2 1/2] fedora: Add %dir entries for own SELinux policy directory and documentation Date: Fri, 02 Sep 2022 18:10:39 +0200 Message-ID: <20220902161040.2758587-2-sbrivio@redhat.com> In-Reply-To: <20220902161040.2758587-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7532924282057640689==" --===============7532924282057640689== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=C3=A9 Signed-off-by: Stefano Brivio --- v2: Move SELinux entry to the right section, extend usage of %{name} further, for consistency (Daniel P. Berrang=C3=A9) contrib/fedora/passt.spec | 8 +++++--- 1 file 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 =20 %install -%make_install DESTDIR=3D%{buildroot} prefix=3D%{_prefix} bindir=3D%{_bindir}= mandir=3D%{_mandir} docdir=3D%{_docdir}/passt +%make_install DESTDIR=3D%{buildroot} prefix=3D%{_prefix} bindir=3D%{_bindir}= mandir=3D%{_mandir} docdir=3D%{_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 || : =20 %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 =20 %files selinux +%dir %{_datadir}/selinux/packages/%{name} %{_datadir}/selinux/packages/%{name}/passt.pp %{_datadir}/selinux/packages/%{name}/pasta.pp =20 --=20 2.35.1 --===============7532924282057640689==--