summaryrefslogtreecommitdiff
path: root/veracrypt/veracrypt.spec
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-06 08:05:59 -0400
committerB Stack <bgstack15@gmail.com>2018-09-06 08:05:59 -0400
commitb9bbbb6fed8624e3d503c600d3c0de31db867dfd (patch)
treee8b9f8c2c6b9955d5b7b3f7cb8b1bfdff9102ad7 /veracrypt/veracrypt.spec
parentattempt 2 for licensing file (diff)
downloadstackrpms-b9bbbb6fed8624e3d503c600d3c0de31db867dfd.tar.gz
stackrpms-b9bbbb6fed8624e3d503c600d3c0de31db867dfd.tar.bz2
stackrpms-b9bbbb6fed8624e3d503c600d3c0de31db867dfd.zip
fix doc on el, part 2
Diffstat (limited to 'veracrypt/veracrypt.spec')
-rw-r--r--veracrypt/veracrypt.spec9
1 files 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
bgstack15