diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-08-21 11:23:54 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-08-21 22:25:51 +0200 |
commit | 7b710946b152fabab0f3c838e5518576beb9020c (patch) | |
tree | b86c61f2deab1d2f1569f3efb3d79d017689c3be /contrib | |
parent | f233d6c0f0680d4d0fdd6278faa58a574088e424 (diff) | |
download | passt-7b710946b152fabab0f3c838e5518576beb9020c.tar passt-7b710946b152fabab0f3c838e5518576beb9020c.tar.gz passt-7b710946b152fabab0f3c838e5518576beb9020c.tar.bz2 passt-7b710946b152fabab0f3c838e5518576beb9020c.tar.lz passt-7b710946b152fabab0f3c838e5518576beb9020c.tar.xz passt-7b710946b152fabab0f3c838e5518576beb9020c.tar.zst passt-7b710946b152fabab0f3c838e5518576beb9020c.zip |
Makefile: Use more GNU-style directory variables, explicit docdir for OpenSUSE2022_08_21.7b71094
It turns out that, while on most distributions "docdir" would be
/usr/share/doc, it's /usr/share/doc/packages/ on OpenSUSE Tumbleweed.
Use an explicit docdir as shown in:
https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
and don't unnecessarily hardcode directory variables in the Makefile.
Otherwise, RPM builds for OpenSUSE will fail now that we have a README
there.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fedora/passt.spec | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec index 8bbe0d0..87c3e93 100644 --- a/contrib/fedora/passt.spec +++ b/contrib/fedora/passt.spec @@ -51,7 +51,11 @@ 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 %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 |