From b64c210aded45d1131425e533ae497a7ec438a6c Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 20 Mar 2024 23:45:38 +0800 Subject: [PATCH] fish.spec: fix documentation path on OpenSUSE (It's a shame the _docdir macro is unusuable, but even downstream doesn't use it.) --- fish.spec.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fish.spec.in b/fish.spec.in index a28b5bc19..de22e7c34 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -73,11 +73,15 @@ make %{?_smp_mflags} %endif %find_lang %{name} # OpenSUSE has strong opinions about categories which do not apply to other systems +# and uses a different path for the documentation %if 0%{?suse_version} %suse_update_desktop_file fish "System;TerminalEmulator" -%endif +cp -a README.rst %{buildroot}%{_datadir}/doc/packages/fish/ +cp -a CONTRIBUTING.rst %{buildroot}%{_datadir}/doc/packages/fish/ +%else cp -a README.rst %{buildroot}%{_datadir}/doc/fish/ cp -a CONTRIBUTING.rst %{buildroot}%{_datadir}/doc/fish/ +%endif %check # OpenSUSE does out-of-tree builds and defines __builddir @@ -110,7 +114,11 @@ fi %defattr(-,root,root,-) # The documentation directory +%if 0%{?suse_version} +%doc %{_datadir}/doc/packages/fish/ +%else %doc %{_datadir}/doc/fish/ +%endif # man files %{_mandir}/man1/*