diff options
Diffstat (limited to 'veracrypt')
-rw-r--r-- | veracrypt/veracrypt.spec | 9 |
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 |