0f7e16
Summary: Utility for setting up encrypted disks
0f7e16
Name: cryptsetup
0b2424
Version: 2.6.0
0b2424
Release: 2%{?dist}
0f7e16
License: GPLv2+ and LGPLv2+
0f7e16
URL: https://gitlab.com/cryptsetup/cryptsetup
0f7e16
BuildRequires: openssl-devel, popt-devel, device-mapper-devel
0f7e16
BuildRequires: libuuid-devel, gcc, json-c-devel
0f7e16
BuildRequires: libpwquality-devel, libblkid-devel
0f7e16
BuildRequires: make
0b2424
BuildRequires: asciidoctor
0f7e16
Requires: cryptsetup-libs = %{version}-%{release}
0f7e16
Requires: libpwquality >= 1.2.0
0b2424
Obsoletes: %{name}-reencrypt <= %{version}
0b2424
Provides: %{name}-reencrypt = %{version}
0f7e16
0f7e16
%global upstream_version %{version}
0b2424
Source0: https://www.kernel.org/pub/linux/utils/cryptsetup/v2.6/cryptsetup-%{upstream_version}.tar.xz
0b2424
0b2424
# binary archive with updated tests/conversion_imgs.tar.xz and tests/luks2_header_requirements.tar.xz
0b2424
# for testing (can not be patched via rpmbuild)
0f7e16
Source1: tests.tar.xz
0f7e16
0f7e16
# Following patch has to applied last
0b2424
Patch0000: %{name}-2.6.1-Run-PBKDF-benchmark-with-8-bytes-long-well-known-pas.patch
0b2424
Patch0001: %{name}-2.6.1-Change-tests-to-use-passphrases-with-minimal-8-chars.patch
0b2424
Patch0002: %{name}-2.6.1-Enable-crypt_header_is_detached-for-empty-contexts.patch
0b2424
Patch0003: %{name}-2.6.1-Abort-encryption-when-header-and-data-devices-are-sa.patch
38c00b
Patch9998: %{name}-Add-FIPS-related-error-message-in-keyslot-add-code.patch
0f7e16
Patch9999: %{name}-add-system-library-paths.patch
0f7e16
0f7e16
%description
0f7e16
The cryptsetup package contains a utility for setting up
0f7e16
disk encryption using dm-crypt kernel module.
0f7e16
0f7e16
%package devel
0f7e16
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
0f7e16
Requires: pkgconfig
0f7e16
Summary: Headers and libraries for using encrypted file systems
0f7e16
0f7e16
%description devel
0f7e16
The cryptsetup-devel package contains libraries and header files
0f7e16
used for writing code that makes use of disk encryption.
0f7e16
0f7e16
%package libs
0f7e16
Summary: Cryptsetup shared library
0f7e16
0f7e16
%description libs
0f7e16
This package contains the cryptsetup shared library, libcryptsetup.
0f7e16
0f7e16
%package -n veritysetup
0f7e16
Summary: A utility for setting up dm-verity volumes
0f7e16
Requires: cryptsetup-libs = %{version}-%{release}
0f7e16
0f7e16
%description -n veritysetup
0f7e16
The veritysetup package contains a utility for setting up
0f7e16
disk verification using dm-verity kernel module.
0f7e16
0f7e16
%package -n integritysetup
0f7e16
Summary: A utility for setting up dm-integrity volumes
0f7e16
Requires: cryptsetup-libs = %{version}-%{release}
0f7e16
0f7e16
%description -n integritysetup
0f7e16
The integritysetup package contains a utility for setting up
0f7e16
disk integrity protection using dm-integrity kernel module.
0f7e16
0f7e16
%prep
0f7e16
%autosetup -n cryptsetup-%{upstream_version} -p 1 -a 1
38c00b
0f7e16
%build
0b2424
rm -f man/*.8
0b2424
%configure --enable-fips --enable-pwquality --enable-internal-sse-argon2 --disable-ssh-token --enable-asciidoc
0f7e16
%make_build
0f7e16
0f7e16
%install
0f7e16
%make_install
0f7e16
rm -rf %{buildroot}%{_libdir}/*.la
0f7e16
0f7e16
%find_lang cryptsetup
0f7e16
0f7e16
%ldconfig_scriptlets -n cryptsetup-libs
0f7e16
0f7e16
%files
0f7e16
%license COPYING
0b2424
%doc AUTHORS FAQ.md docs/*ReleaseNotes
0f7e16
%{_mandir}/man8/cryptsetup.8.gz
0b2424
%{_mandir}/man8/cryptsetup-*.8.gz
0f7e16
%{_sbindir}/cryptsetup
0f7e16
0f7e16
%files -n veritysetup
0f7e16
%license COPYING
0f7e16
%{_mandir}/man8/veritysetup.8.gz
0f7e16
%{_sbindir}/veritysetup
0f7e16
0f7e16
%files -n integritysetup
0f7e16
%license COPYING
0f7e16
%{_mandir}/man8/integritysetup.8.gz
0f7e16
%{_sbindir}/integritysetup
0f7e16
0f7e16
%files devel
0f7e16
%doc docs/examples/*
0f7e16
%{_includedir}/libcryptsetup.h
0f7e16
%{_libdir}/libcryptsetup.so
0f7e16
%{_libdir}/pkgconfig/libcryptsetup.pc
0f7e16
0f7e16
%files libs -f cryptsetup.lang
0f7e16
%license COPYING COPYING.LGPL
0f7e16
%{_libdir}/libcryptsetup.so.*
0f7e16
%dir %{_libdir}/%{name}/
0f7e16
%{_tmpfilesdir}/cryptsetup.conf
0f7e16
%ghost %attr(700, -, -) %dir /run/cryptsetup
0f7e16
0f7e16
%changelog
0b2424
* Wed Dec 14 2022 Daniel Zatovic <dzatovic@redhat.com> - 2.6.0-2
0b2424
- Fix FIPS related bugs.
0b2424
- Abort encryption when header and data devices are same.
0b2424
- Resolves: #2150251 #2148841
0b2424
0b2424
* Wed Nov 30 2022 Daniel Zatovic <dzatovic@redhat.com> - 2.6.0-1
0b2424
- Update to cryptsetup 2.6.0.
0b2424
- Resolves: #2003748 #2108404 #1862173
38c00b
a6bc65
* Wed Aug 10 2022 Ondrej Kozina <okozina@redhat.com> - 2.4.3-5
e54c5a
- patch: Delegate FIPS mode detection to crypto backend.
a6bc65
- Resolves: #2080516
e54c5a
0f7e16
* Thu Feb 24 2022 Ondrej Kozina <okozina@redhat.com> - 2.4.3-4
0f7e16
- patch: Fix broken upstream test.
0f7e16
- Resolves: #2056439
0f7e16
0f7e16
* Wed Feb 23 2022 Ondrej Kozina <okozina@redhat.com> - 2.4.3-3
0f7e16
- patch: Fix cryptsetup --test-passphrase when device in
0f7e16
  reencryption
0f7e16
- Resolves: #2056439
0f7e16
0f7e16
* Thu Feb 17 2022 Ondrej Kozina <okozina@redhat.com> - 2.4.3-2
0f7e16
- Various FIPS related fixes.
0f7e16
- Resolves: #2051630
0f7e16
0f7e16
* Fri Jan 21 2022 Ondrej Kozina <okozina@redhat.com> - 2.4.3-1
0f7e16
- Update to cryptsetup 2.4.3.
0f7e16
- patch: Fix typo in repair command prompt.
0f7e16
  Resolves: #2022309 #2023316 #2032782
0f7e16
0f7e16
* Wed Sep 29 2021 Ondrej Kozina <okozina@redhat.com> - 2.4.1-1
0f7e16
- Update to cryptsetup 2.4.1.
0f7e16
  Resolves: #2005035 #2005877
0f7e16
0f7e16
* Thu Aug 19 2021 Ondrej Kozina <okozina@redhat.com> - 2.4.0-1
0f7e16
- Update to cryptsetup 2.4.0.
0f7e16
  Resolves: #1869553 #1972722 #1974271 #1975799
0f7e16
0f7e16
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.6-3
0f7e16
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
0f7e16
  Related: rhbz#1991688
0f7e16
0f7e16
* Thu Jun 17 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.6-2
0f7e16
- Specbump for openssl 3.0
0f7e16
  Related: rhbz#1971065
0f7e16
0f7e16
* Wed Jun 16 2021 Ondrej Kozina <okozina@redhat.com> - 2.3.6-1
0f7e16
- Update to cryptsetup 2.3.6.
0f7e16
- Resolves: #1961291 #1970932
0f7e16
0f7e16
* Tue Jun 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.5-5
0f7e16
- Rebuilt for RHEL 9 BETA for openssl 3.0
0f7e16
0f7e16
Related: rhbz#1971065
0f7e16
0f7e16
* Tue Apr 27 2021 Ondrej Kozina <okozina@redhat.com> - 2.3.5-4
0f7e16
- Drop dependency on libargon2
0f7e16
- Resolves: #1936959
0f7e16
0f7e16
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.5-3
0f7e16
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
0f7e16
0f7e16
* Thu Mar 11 2021 Milan Broz <gmazyland@gmail.com> - 2.3.5-1
0f7e16
- Update to cryptsetup 2.3.5.
0f7e16
0f7e16
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-2
0f7e16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0f7e16
0f7e16
* Thu Sep 03 2020 Milan Broz <gmazyland@gmail.com> - 2.3.4-1
0f7e16
- Update to cryptsetup 2.3.4.
0f7e16
- Fix for CVE-2020-14382 (#1874712)