mirror of
https://passt.top/passt
synced 2025-05-23 09:45:34 +02:00
Makefile: Use more GNU-style directory variables, explicit docdir for OpenSUSE
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>
This commit is contained in:
parent
f233d6c0f0
commit
7b710946b1
2 changed files with 21 additions and 11 deletions
contrib/fedora
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue