use _pkgdocdir if available (#994097)
This commit is contained in:
parent
49d65e7495
commit
5c5ed634c5
@ -1,3 +1,4 @@
|
||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||
%if 0%{?fedora:1}
|
||||
%bcond_without oniguruma
|
||||
%else
|
||||
@ -82,7 +83,8 @@ head -n -1800 < changes.txt > changes.txt_ && tail -n 1800 < changes.txt | \
|
||||
;
|
||||
|
||||
# fails with %{?_smp_mflags}
|
||||
make RPATH="" install_doc_dir=%{_docdir}/%{name}-%{version}
|
||||
# install_doc_dir sets SLANG_DOC_DIR macro
|
||||
make RPATH="" install_doc_dir=%{_pkgdocdir}
|
||||
|
||||
%install
|
||||
make install-all INSTALL="install -p" RPATH="" DESTDIR=$RPM_BUILD_ROOT
|
||||
|
Loading…
Reference in New Issue
Block a user