From b9bbbb6fed8624e3d503c600d3c0de31db867dfd Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 6 Sep 2018 08:05:59 -0400 Subject: fix doc on el, part 2 --- veracrypt/veracrypt.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/veracrypt/veracrypt.spec b/veracrypt/veracrypt.spec index aed875c..a8dad81 100644 --- a/veracrypt/veracrypt.spec +++ b/veracrypt/veracrypt.spec @@ -67,6 +67,11 @@ %endif %endif +%define doctarget %{_docdir}/%{name} +%if 0%{?rhel} + %define %{doctarget} %{_docdir}/%{name}-%{version} +%endif + Name: veracrypt Version: 1.22 Release: 4 @@ -170,7 +175,7 @@ if test -e "%{indocdir}/chm/VeraCrypt User Guide.chm" ; then mv "%{indocdir}/chm/VeraCrypt User Guide.chm" "%{indocdir}/chm/VeraCrypt_User_Guide.chm" || : fi -%{__install} -m 0644 -t %{buildroot}%{_docdir}/%{name} %{indocdir}/chm/VeraCrypt_User_Guide.chm +%{__install} -D -m 0644 -t %{buildroot}%{doctarget} %{indocdir}/chm/VeraCrypt_User_Guide.chm # icons pushd %{srcdir}/Resources/Icons @@ -224,7 +229,7 @@ fi %else %doc %{license_files} %endif -%doc "%{indocdir}/chm/VeraCrypt_User_Guide.chm" %{indocdir}/EFI-DCS/ %{indocdir}/html/ +%doc %{indocdir}/chm/VeraCrypt_User_Guide.chm %{indocdir}/EFI-DCS/ %{indocdir}/html/ %if !0%{?dummy_package} %{_bindir}/%{name} %endif -- cgit