From 897bd62adfbb22ac16065ca7ec03335b20502cae Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 15 Jun 2020 22:27:52 +0800 Subject: [PATCH] fish.spec: use _docdir macro more reliably _pkgdocdir contains the version on some platforms but not others. --- fish.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fish.spec.in b/fish.spec.in index f9aaa4fb6..57d756794 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -91,8 +91,8 @@ make %{?_smp_mflags} %if 0%{?suse_version} %suse_update_desktop_file fish "System;TerminalEmulator" %endif -cp -a README.rst %{buildroot}%{_pkgdocdir} -cp -a CONTRIBUTING.rst %{buildroot}%{_pkgdocdir} +cp -a README.rst %{buildroot}%{_docdir}/%{name}/ +cp -a CONTRIBUTING.rst %{buildroot}%{_docdir}/%{name}/ %check # OpenSUSE does out-of-tree builds and defines __builddir @@ -126,7 +126,7 @@ fi %defattr(-,root,root,-) # The documentation directory -%doc %{_datadir}/doc/fish/ +%doc %{_docdir}/%{name} # man files %{_mandir}/man1/*