aboutgitcodebugslistschat
path: root/contrib/fedora
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-08-29 16:53:49 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-08-30 19:17:48 +0200
commit63d13902296e39221b16941db4525e0efa8ce218 (patch)
tree1f0773c4e2b7aa152e28993eb9db6ff9c7f474d3 /contrib/fedora
parent345192ad84f0c31310eb7ec95d2bd7e2444a5337 (diff)
downloadpasst-63d13902296e39221b16941db4525e0efa8ce218.tar
passt-63d13902296e39221b16941db4525e0efa8ce218.tar.gz
passt-63d13902296e39221b16941db4525e0efa8ce218.tar.bz2
passt-63d13902296e39221b16941db4525e0efa8ce218.tar.lz
passt-63d13902296e39221b16941db4525e0efa8ce218.tar.xz
passt-63d13902296e39221b16941db4525e0efa8ce218.tar.zst
passt-63d13902296e39221b16941db4525e0efa8ce218.zip
fedora: Pass explicit bindir, mandir, docdir, and drop OpenSUSE override
Fedora's parameters currently match the ones from the Makefile (which is based on GNU recommendations), but that's not necessarily guaranteed. This should make the OpenSUSE Tumbleweed override for docdir unnecessary: drop it. Suggested-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.spec6
1 files changed, 1 insertions, 5 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index a8af326..922f584 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -49,11 +49,7 @@ This package adds SELinux enforcement to passt(1) and pasta(1).
%make_build
%install
-%if 0%{?suse_version} > 910
-%make_install DESTDIR=%{buildroot} prefix=%{_prefix} docdir=%{_prefix}/share/doc/packages/passt
-%else
-%make_install DESTDIR=%{buildroot} prefix=%{_prefix}
-%endif
+%make_install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} docdir=%{_docdir}/passt
%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