[cryptsetup] Update to cryptsetup 1.6.5. Add cryptsetup-python3 subpackage.

Milan Broz mbroz at fedoraproject.org
Sun Jun 29 12:51:17 UTC 2014


commit 6e66c7950af8e9163a0ffb8d20c1daa0ad012d75
Author: Milan Broz <gmazyland at gmail.com>
Date:   Sun Jun 29 14:45:08 2014 +0200

    Update to cryptsetup 1.6.5.
    Add cryptsetup-python3 subpackage.

 .gitignore                |    2 +-
 cryptsetup-1.6.4.tar.sign |   17 -----------------
 cryptsetup-1.6.5.tar.sign |   17 +++++++++++++++++
 cryptsetup.spec           |   41 ++++++++++++++++++++++++++++++++++++++---
 sources                   |    2 +-
 5 files changed, 57 insertions(+), 22 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0951472..7ec8220 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/cryptsetup-1.6.4.tar.xz
+/cryptsetup-1.6.5.tar.xz
diff --git a/cryptsetup-1.6.5.tar.sign b/cryptsetup-1.6.5.tar.sign
new file mode 100644
index 0000000..3d58c07
--- /dev/null
+++ b/cryptsetup-1.6.5.tar.sign
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1
+
+iQIcBAABCAAGBQJTsAB+AAoJENmwV3vZPpj8bh0P/3MhINlKtwNZUIpBmutuioiN
+TSZBXnC08oriTWll3LaUtT18q4gfdNZ0nmetew9AcdAHtaYEiSgdiuVkx4TVmXNV
+I7oAE1GCopYt7KCBBS06ql3RylrqEdpt0dscb0WDvvbtc5G0WFh9rDflsPXZpaEt
+heqpLG6mNUHnkfl9SOc3h0X9/H6G6bITvn1nJdNvfoZFJdqVI28d059Ax4dsx9ag
+x/smj/TyvfxpJ897g0Ta+j8PPXLm3vanZZW/eBYujJd/ks6dGY9oeqyU3xZ/Uiwx
+D6qDSbrkD8kzXoj7YyyMWkK3QtL3vhBSJoRC9Icf8hCg3jHS2FZ5ZYS6hzYvJQp7
+qsiOBxAyMgl1u0hYYldv0WRyi3Dv+C7HQdVHZicLdK30KqN3DKyJEPTnVt4+1nj2
+xNyZKM0kkHHMK+Cws2p17Y/ESH8TocJzaYdOehA5avRix7F9Ygg1g9BUGMGo3GDb
+DsrTes35A9GGnQ6M+/YIFmzfaG92SLDUHzxCBtZ6I1GPAsxK41qSJ5CMbfxN0w3/
+SGa3Xybi2ZTyDJf5pSJdnnRsU51dayG3ensXPwc56/thkLGiapIVziWWVTA9TsaS
+4B9emIPFkpkyX3mrfMsW3ap+lkkZ/KuqSeTkQep+Y24a/yaRX4YBjJCvAuu3DaZc
+tGJBiO00fS647Vw/KP5w
+=E6bJ
+-----END PGP SIGNATURE-----
diff --git a/cryptsetup.spec b/cryptsetup.spec
index b1f83ff..b52b723 100644
--- a/cryptsetup.spec
+++ b/cryptsetup.spec
@@ -1,13 +1,16 @@
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 Summary: A utility for setting up encrypted disks
 Name: cryptsetup
-Version: 1.6.4
-Release: 3%{?dist}
+Version: 1.6.5
+Release: 1%{?dist}
 License: GPLv2+ and LGPLv2+
 Group: Applications/System
 URL: http://cryptsetup.googlecode.com/
 BuildRequires: libgcrypt-devel, popt-devel, device-mapper-devel
 BuildRequires: libgpg-error-devel, libuuid-devel, libsepol-devel
-BuildRequires: libselinux-devel, python-devel, libpwquality-devel
+BuildRequires: libselinux-devel, python-devel, python3-devel
+BuildRequires: libpwquality-devel
 BuildRequires: fipscheck-devel >= 1.3.0
 Provides: cryptsetup-luks = %{version}-%{release}
 Obsoletes: cryptsetup-luks < 1.4.0
@@ -76,11 +79,24 @@ Obsoletes: python-cryptsetup < 1.4.0
 This package provides Python bindings for libcryptsetup, a library
 for setting up disk encryption using dm-crypt kernel module.
 
+%package python3
+Group: System Environment/Libraries
+Summary: Python3 bindings for libcryptsetup
+Requires: %{name}-libs = %{version}-%{release}
+Provides: python3-cryptsetup = %{version}-%{release}
+
+%description python3
+This package provides Python bindings for libcryptsetup, a library
+for setting up disk encryption using dm-crypt kernel module.
+
 %prep
 %setup -q -n cryptsetup-%{upstream_version}
 chmod -x python/pycryptsetup-test.py
 chmod -x misc/dracut_90reencrypt/*
 
+# copy the whole directory for the python3 build
+cp -a . %{py3dir}
+
 %build
 %configure --enable-python --enable-fips --enable-cryptsetup-reencrypt --enable-pwquality %{?configure_pbkdf2}
 # remove rpath
@@ -88,6 +104,11 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make %{?_smp_mflags}
 
+pushd %{py3dir}
+%configure --enable-python --with-python_version=3
+make %{?_smp_mflags}
+popd
+
 %install
 # Generate HMAC checksums (FIPS)
 %define __spec_install_post \
@@ -100,6 +121,11 @@ make %{?_smp_mflags}
 make install DESTDIR=%{buildroot}
 rm -rf %{buildroot}/%{_libdir}/*.la
 install -d %{buildroot}/%{_libdir}/fipscheck
+
+pushd %{py3dir}
+make install DESTDIR=%{buildroot}
+rm -rf %{buildroot}/%{_libdir}/*.la
+popd
 %find_lang cryptsetup
 
 %post -n cryptsetup-libs -p /sbin/ldconfig
@@ -137,9 +163,18 @@ install -d %{buildroot}/%{_libdir}/fipscheck
 %exclude %{python_sitearch}/pycryptsetup.la
 %{python_sitearch}/pycryptsetup.so
 
+%files python3
+%doc COPYING.LGPL python/pycryptsetup-test.py
+%exclude %{python3_sitearch}/pycryptsetup.la
+%{python3_sitearch}/pycryptsetup.so
+
 %clean
 
 %changelog
+* Sun Jun 29 2014 Milan Broz <gmazyland at gmail.com> - 1.6.5-1
+- Update to cryptsetup 1.6.5.
+- Add cryptsetup-python3 subpackage.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.4-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index a86b5b8..dc1d9b6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f68ce7b7f4be08449f3c8b114ed5accb  cryptsetup-1.6.4.tar.xz
+128a5f63284ca3a26b4d4ffe821fa235  cryptsetup-1.6.5.tar.xz


More information about the scm-commits mailing list