summaryrefslogtreecommitdiff
path: root/veracrypt
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-06 07:05:40 -0400
committerB Stack <bgstack15@gmail.com>2018-09-06 07:05:40 -0400
commit873dd6b5e4162a4bb6001f10e9446dec82da2894 (patch)
treecc66dc2b03e325c38d1317c40417748ead87bbc3 /veracrypt
parentattempt to fix license file 1 (diff)
downloadstackrpms-873dd6b5e4162a4bb6001f10e9446dec82da2894.tar.gz
stackrpms-873dd6b5e4162a4bb6001f10e9446dec82da2894.tar.bz2
stackrpms-873dd6b5e4162a4bb6001f10e9446dec82da2894.zip
attempt 2 for licensing file
Diffstat (limited to 'veracrypt')
-rw-r--r--veracrypt/veracrypt.spec23
1 files changed, 16 insertions, 7 deletions
diff --git a/veracrypt/veracrypt.spec b/veracrypt/veracrypt.spec
index a417aae..aed875c 100644
--- a/veracrypt/veracrypt.spec
+++ b/veracrypt/veracrypt.spec
@@ -104,8 +104,6 @@ BuildRequires: ghostscript-core
%else
BuildRequires: ghostscript
%endif
-# WORKHERE: experiment with not requiring this, explicitly
-#Requires: wxGTK3
%description
VeraCrypt is a free open source disk encryption software for Windows, Mac OSX and Linux. Brought to you by IDRIX (https://www.idrix.fr) and based on TrueCrypt 7.1a.
@@ -132,16 +130,22 @@ if hash "${WXCONFIG}-%{?wx_toolkit}" >/dev/null 2>&1 ; then
fi
%endif
-pushd %{srcdir}
-%{__make} WX_CONFIG="${WXCONFIG}" %{?_smp_mflags}
-popd
+%if !0%{?dummy_package}
+ pushd %{srcdir}
+ %{__make} WX_CONFIG="${WXCONFIG}" %{?_smp_mflags}
+ popd
+%endif
%install
#%make_install -C %{tarballdir}/src
%{__install} -d "%{buildroot}%{_bindir}"
+%if !0%{?dummy_package}
%{__install} %{srcdir}/Main/veracrypt "%{buildroot}%{_bindir}"
+%endif
%{__install} -d "%{buildroot}%{_docdir}/%{name}"
+%if !0%{?doc_license}
%{__install} -m 0644 %{srcdir}/License.txt "%{buildroot}%{_docdir}/%{name}"
+%endif
%{__install} -d "%{buildroot}%{_datadir}/applications" "%{buildroot}%{_datadir}/pixmaps"
%{__install} %{srcdir}/Setup/Linux/%{name}.desktop "%{buildroot}%{_datadir}/applications"
%{__install} %{srcdir}/Resources/Icons/VeraCrypt-256x256.xpm "%{buildroot}%{_datadir}/pixmaps/veracrypt.xpm"
@@ -162,8 +166,11 @@ test -f %{srcdir}/Setup/Linux/%{name}.desktop && \
#do
# %{__install} -p -D -d %{indocdir}/${thisdir} %{buildroot}%{_defaultdocdir}/%{name}/${thisdir}
#done
-# rename doc with spaces in name, mostly for user guide
-find %{indocdir} -name '* *' ! -regex '.*doc.html.*' -exec rename -v ' ' '_' {} + || :
+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
# icons
pushd %{srcdir}/Resources/Icons
@@ -218,7 +225,9 @@ fi
%doc %{license_files}
%endif
%doc "%{indocdir}/chm/VeraCrypt_User_Guide.chm" %{indocdir}/EFI-DCS/ %{indocdir}/html/
+%if !0%{?dummy_package}
%{_bindir}/%{name}
+%endif
#%{_docdir}/%{name} # handled by %doc above?
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
bgstack15