From 5c5ed634c5f77c72f1c552483934c1a7e5faaf3e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 7 Aug 2013 12:04:33 +0200 Subject: [PATCH] use _pkgdocdir if available (#994097) --- slang.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slang.spec b/slang.spec index 53fc7cd..bc5f105 100644 --- a/slang.spec +++ b/slang.spec @@ -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