Browse Source

cryptsetup add missing source & python3

Signed-off-by: basebuilder_pel7ppc64lebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64lebuilder0 5 years ago
parent
commit
6b129cbf8c
  1. BIN
      SOURCES/luks2_mda_images.tar.xz
  2. BIN
      SOURCES/luks2_valid_hdr.tar.xz
  3. 32
      SPECS/cryptsetup.spec

BIN
SOURCES/luks2_mda_images.tar.xz

Binary file not shown.

BIN
SOURCES/luks2_valid_hdr.tar.xz

Binary file not shown.

32
SPECS/cryptsetup.spec

@ -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

Loading…
Cancel
Save