mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
fish.spec: fix documentation path on OpenSUSE
(It's a shame the _docdir macro is unusuable, but even downstream doesn't use it.)
This commit is contained in:
parent
46cde6cc55
commit
b64c210ade
1 changed files with 9 additions and 1 deletions
10
fish.spec.in
10
fish.spec.in
|
@ -73,11 +73,15 @@ make %{?_smp_mflags}
|
||||||
%endif
|
%endif
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
# OpenSUSE has strong opinions about categories which do not apply to other systems
|
# 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}
|
%if 0%{?suse_version}
|
||||||
%suse_update_desktop_file fish "System;TerminalEmulator"
|
%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 README.rst %{buildroot}%{_datadir}/doc/fish/
|
||||||
cp -a CONTRIBUTING.rst %{buildroot}%{_datadir}/doc/fish/
|
cp -a CONTRIBUTING.rst %{buildroot}%{_datadir}/doc/fish/
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# OpenSUSE does out-of-tree builds and defines __builddir
|
# OpenSUSE does out-of-tree builds and defines __builddir
|
||||||
|
@ -110,7 +114,11 @@ fi
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
# The documentation directory
|
# The documentation directory
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%doc %{_datadir}/doc/packages/fish/
|
||||||
|
%else
|
||||||
%doc %{_datadir}/doc/fish/
|
%doc %{_datadir}/doc/fish/
|
||||||
|
%endif
|
||||||
|
|
||||||
# man files
|
# man files
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
Loading…
Reference in a new issue