|
|
|
@ -1,30 +1,10 @@
@@ -1,30 +1,10 @@
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} |
|
|
|
|
%if 0%{?fedora} >= 29 |
|
|
|
|
Obsoletes: python2-cryptsetup |
|
|
|
|
Obsoletes: cryptsetup-python3 |
|
|
|
|
%global python2_enable 0 |
|
|
|
|
%global python3_enable 0 |
|
|
|
|
%else |
|
|
|
|
%global python2_enable 1 |
|
|
|
|
%global python3_enable 1 |
|
|
|
|
%endif |
|
|
|
|
%else |
|
|
|
|
Obsoletes: cryptsetup-python3 |
|
|
|
|
%global python3_enable 0 |
|
|
|
|
%if 0%{?rhel} == 7 |
|
|
|
|
%global python2_enable 1 |
|
|
|
|
# Change to 1 when argon2 lands |
|
|
|
|
%global libargon2_enable 0 |
|
|
|
|
%global libargon2_enable 1 |
|
|
|
|
# Change to 1 when dm-integrity gets backported |
|
|
|
|
%global integritysetup_enable 0 |
|
|
|
|
%else |
|
|
|
|
Obsoletes: cryptsetup-python |
|
|
|
|
Obsoletes: python2-cryptsetup |
|
|
|
|
%global python2_enable 0 |
|
|
|
|
%endif |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: A utility for setting up encrypted disks |
|
|
|
@ -227,11 +207,6 @@ chmod +x tests/generators/generate-*.sh
@@ -227,11 +207,6 @@ chmod +x tests/generators/generate-*.sh
|
|
|
|
|
%setup -T -a 2 -D -n cryptsetup-%{upstream_version}/tests |
|
|
|
|
%setup -T -a 3 -D -n cryptsetup-%{upstream_version}/tests |
|
|
|
|
|
|
|
|
|
%if %{python3_enable} |
|
|
|
|
# copy the whole directory for the python3 build |
|
|
|
|
cp -a . %{py3dir} |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%setup -T -a 1 -D -n cryptsetup-%{upstream_version} |
|
|
|
|
pushd cryptsetup-1.7.4 |
|
|
|
|
%patch0 -p1 |
|
|
|
@ -240,6 +215,11 @@ pushd cryptsetup-1.7.4
@@ -240,6 +215,11 @@ pushd cryptsetup-1.7.4
|
|
|
|
|
%patch3 -p1 |
|
|
|
|
%patch4 -p1 |
|
|
|
|
|
|
|
|
|
%if %{python3_enable} |
|
|
|
|
# copy the whole directory for the python3 build |
|
|
|
|
cp -a . %{py3dir} |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
%configure --enable-fips --enable-pwquality --with-default-luks-format=LUKS1 %{?configure_cipher} %{?configure_libargon2} %{?configure_integritysetup} |
|
|
|
|
pushd cryptsetup-1.7.4 |
|
|
|
|