Blame SPECS/volume_key.spec

590d58
Summary: An utility for manipulating storage encryption keys and passphrases
590d58
Name: volume_key
590d58
Version: 0.3.11
590d58
Release: 4%{?dist}
590d58
# lib/{SECerrs,SSLerrs}.h are both licensed under MPLv1.1, GPLv2 and LGPLv2
590d58
License: GPLv2 and (MPLv1.1 or GPLv2 or LGPLv2)
590d58
Group: Applications/System
590d58
URL: https://pagure.io/volume_key/
590d58
Requires: volume_key-libs%{?_isa} = %{version}-%{release}
590d58
590d58
Source0: https://releases.pagure.org/volume_key/volume_key-%{version}.tar.xz
590d58
# Add support for opening all types of LUKS devices (not just LUKS1)
590d58
# Resolves: rhbz#1626974
590d58
Patch0: volume_key-0.3.11-support_LUKS_all.patch
590d58
BuildRequires: cryptsetup-luks-devel, gettext-devel, glib2-devel, /usr/bin/gpg2
590d58
BuildRequires: gpgme-devel, libblkid-devel, nss-devel, python3-devel
590d58
# Needed by %%check:
590d58
BuildRequires: nss-tools
590d58
590d58
%description
590d58
This package provides a command-line tool for manipulating storage volume
590d58
encryption keys and storing them separately from volumes.
590d58
590d58
The main goal of the software is to allow restoring access to an encrypted
590d58
hard drive if the primary user forgets the passphrase.  The encryption key
590d58
back up can also be useful for extracting data after a hardware or software
590d58
failure that corrupts the header of the encrypted volume, or to access the
590d58
company data after an employee leaves abruptly.
590d58
590d58
%package devel
590d58
Summary: A library for manipulating storage encryption keys and passphrases
590d58
Group: Development/Libraries
590d58
Requires: volume_key-libs%{?_isa} = %{version}-%{release}
590d58
590d58
%description devel
590d58
This package provides libvolume_key, a library for manipulating storage volume
590d58
encryption keys and storing them separately from volumes.
590d58
590d58
The main goal of the software is to allow restoring access to an encrypted
590d58
hard drive if the primary user forgets the passphrase.  The encryption key
590d58
back up can also be useful for extracting data after a hardware or software
590d58
failure that corrupts the header of the encrypted volume, or to access the
590d58
company data after an employee leaves abruptly.
590d58
590d58
%package libs
590d58
Summary: A library for manipulating storage encryption keys and passphrases
590d58
Group: System Environment/Libraries
590d58
Requires: /usr/bin/gpg2
590d58
590d58
%description libs
590d58
This package provides libvolume_key, a library for manipulating storage volume
590d58
encryption keys and storing them separately from volumes.
590d58
590d58
The main goal of the software is to allow restoring access to an encrypted
590d58
hard drive if the primary user forgets the passphrase.  The encryption key
590d58
back up can also be useful for extracting data after a hardware or software
590d58
failure that corrupts the header of the encrypted volume, or to access the
590d58
company data after an employee leaves abruptly.
590d58
590d58
%package -n python3-volume_key
590d58
%{?python_provide:%python_provide python3-volume_key}
590d58
Summary: Python bindings for libvolume_key
590d58
Group: System Environment/Libraries
590d58
Requires: volume_key-libs%{?_isa} = %{version}-%{release}
590d58
590d58
%description -n python3-volume_key
590d58
This package provides Python bindings for libvolume_key, a library for
590d58
manipulating storage volume encryption keys and storing them separately from
590d58
volumes.
590d58
590d58
The main goal of the software is to allow restoring access to an encrypted
590d58
hard drive if the primary user forgets the passphrase.  The encryption key
590d58
back up can also be useful for extracting data after a hardware or software
590d58
failure that corrupts the header of the encrypted volume, or to access the
590d58
company data after an employee leaves abruptly.
590d58
590d58
volume_key currently supports only the LUKS volume encryption format.  Support
590d58
for other formats is possible, some formats are planned for future releases.
590d58
590d58
%prep
590d58
%setup -q
590d58
%patch0 -p1
590d58
590d58
%build
590d58
%configure
590d58
make %{?_smp_mflags}
590d58
590d58
%install
590d58
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
590d58
590d58
%check
590d58
make check || { \
590d58
echo "======================== ./test-suite.log ========================"; \
590d58
cat ./test-suite.log; \
590d58
echo "=================================================================="; \
590d58
exit 1; \
590d58
}
590d58
590d58
%find_lang volume_key
590d58
590d58
%clean
590d58
rm -rf $RPM_BUILD_ROOT
590d58
590d58
%ldconfig_scriptlets libs
590d58
590d58
%files
590d58
%defattr(-,root,root,-)
590d58
%doc README contrib
590d58
%{_bindir}/volume_key
590d58
%{_mandir}/man8/volume_key.8*
590d58
590d58
%files devel
590d58
%defattr(-,root,root,-)
590d58
%{_includedir}/volume_key
590d58
%exclude %{_libdir}/libvolume_key.la
590d58
%{_libdir}/libvolume_key.so
590d58
590d58
%files libs -f volume_key.lang
590d58
%defattr(-,root,root,-)
590d58
%doc AUTHORS COPYING ChangeLog NEWS
590d58
%{_libdir}/libvolume_key.so.*
590d58
590d58
%files -n python3-volume_key
590d58
%defattr(-,root,root,-)
590d58
%exclude %{python3_sitearch}/_volume_key.la
590d58
%{python3_sitearch}/_volume_key.so
590d58
%{python3_sitearch}/volume_key.py*
590d58
%{python3_sitearch}/__pycache__/volume_key.*
590d58
590d58
%changelog
590d58
* Tue Jan 08 2019 Jiri Kucera <jkucera@redhat.com>
590d58
- fixed License
590d58
- Requires: /usr/bin/gpg2 in libs subpackage
590d58
- Added support for opening all types of LUKS devices
590d58
  Resolves: #1626974
590d58
590d58
* Thu Aug 09 2018 Jiri Kucera <jkucera@redhat.com> - 0.3.11-3
590d58
- Added %%check
590d58
  Resolves: #1614420
590d58
590d58
* Tue Jul 24 2018 Jiri Kucera <jkucera@redhat.com> - 0.3.11-2
590d58
- added missing licenses
590d58
- update to gpg2
590d58
590d58
* Thu Jul 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.3.11-1
590d58
- Update to 3.11
590d58
- Change to Python 3
590d58
590d58
* Fri Jul 13 2018 Petr Viktorin <pviktori@redhat.com> - 0.3.9-20
590d58
- Allow Python 2 for build
590d58
590d58
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-19
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
590d58
590d58
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.9-18
590d58
- Switch to %%ldconfig_scriptlets
590d58
590d58
* Tue Nov 7 2017 Miloslav Trmač <mitr@redhat.com> - 0.3.9-17
590d58
- Update for libcryptsetup ABI change
590d58
590d58
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.9-16
590d58
- Python 2 binary package renamed to python2-volume_key
590d58
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
590d58
590d58
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-15
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
590d58
590d58
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-14
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
590d58
590d58
* Mon May 29 2017 Miloslav Trmač <mitr@redhat.com> - 0.3.9-13
590d58
- Point URL: and Source: to the new home at pagure.io
590d58
  Resolves: 1456378
590d58
590d58
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-12
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
590d58
590d58
* Sat Dec 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.9-11
590d58
- Rebuild for gpgme 1.18
590d58
590d58
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-10
590d58
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
590d58
590d58
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-9
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
590d58
590d58
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-8
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
590d58
590d58
* Tue Jan 13 2015 Miloslav Trmač <mitr@redhat.com> - 0.3.9-7
590d58
- Don't #include <config.h> in libvolume_key.h
590d58
  Patch by Vratislav Podzimek <vpodzime@redhat.com>.
590d58
590d58
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-6
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
590d58
590d58
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-5
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
590d58
590d58
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-4
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
590d58
590d58
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-3
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
590d58
590d58
* Thu Nov 22 2012 Miloslav Trmač <mitr@redhat.com> - 0.3.9-2
590d58
- Fix a crash when trying to use passphrase encryption in FIPS mode
590d58
590d58
* Sat Sep 22 2012 Miloslav Trmač <mitr@redhat.com> - 0.3.9-1
590d58
- Update to volume_key-0.3.9
590d58
590d58
* Mon Aug  6 2012 Miloslav Trmač <mitr@redhat.com> - 0.3.8-4
590d58
- Use BuildRequires: /usr/bin/gpg instead of gnupg, for compatibility with RHEL
590d58
590d58
* Mon Jul 23 2012 Miloslav Trmač <mitr@redhat.com> - 0.3.8-3
590d58
- Add Requires: /usr/bin/gpg
590d58
  Resolves: #842074
590d58
590d58
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-2
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
590d58
590d58
* Sat Mar  3 2012 Miloslav Trmač <mitr@redhat.com> - 0.3.8-1
590d58
- Update to volume_key-0.3.8
590d58
590d58
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-3
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
590d58
590d58
* Fri Oct 14 2011 Miloslav Trmač <mitr@redhat.com> - 0.3.7-2
590d58
- Rebuild with newer libcryptsetup
590d58
590d58
* Wed Aug 24 2011 Miloslav Trmač <mitr@redhat.com> - 0.3.7-1
590d58
- Update to volume_key-0.3.7
590d58
590d58
* Fri Jun 10 2011 Miloslav Trmač <mitr@redhat.com> - 0.3.6-2
590d58
- Fix a typo
590d58
  Resolves: #712256
590d58
590d58
* Thu Mar 31 2011 Miloslav Trmač <mitr@redhat.com> - 0.3.6-1
590d58
- Update to volume_key-0.3.6
590d58
590d58
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-3
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
590d58
590d58
* Fri Feb  4 2011 Miloslav Trmač <mitr@redhat.com> - 0.3.5-2
590d58
- Use %%{?_isa} in Requires:
590d58
590d58
* Wed Nov 24 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.5-1
590d58
- Update to volume_key-0.3.5
590d58
590d58
* Mon Oct 18 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.4-4
590d58
- Tell the user if asking for the same passphrase again
590d58
  Resolves: #641111
590d58
- Check certificate file before interacting with the user
590d58
  Resolves: #643897
590d58
590d58
* Fri Oct  8 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.4-3
590d58
- Make it possible to interrupt password prompts
590d58
  Resolves: #641111
590d58
590d58
* Wed Sep 29 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.4-2
590d58
- Clarify which block device should be passed as an argument
590d58
  Resolves: #636541
590d58
- Recognize SSL error messages from NSS as well
590d58
  Resolves: #638732
590d58
590d58
* Fri Aug 27 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.4-1
590d58
- Update to volume_key-0.3.4
590d58
590d58
* Mon Jul 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.3-4
590d58
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
590d58
590d58
* Thu Jul 22 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.3-3
590d58
- Fix build with new gpgme
590d58
590d58
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.3-2
590d58
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
590d58
590d58
* Fri Mar 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.3-1
590d58
- Update to volume_key-0.3.3
590d58
590d58
* Thu Mar  4 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.2-1
590d58
- Update to volume_key-0.3.2
590d58
- Drop no longer necessary references to BuildRoot:
590d58
590d58
* Fri Feb  5 2010 Miloslav Trmač <mitr@redhat.com> - 0.3.1-2
590d58
- Fix a crash when an empty passphrase is provided
590d58
  Resolves: #558410
590d58
590d58
* Fri Dec 11 2009 Miloslav Trmač <mitr@redhat.com> - 0.3.1-1
590d58
- Update to volume_key-0.3.1.
590d58
590d58
* Wed Sep 30 2009 Miloslav Trmač <mitr@redhat.com> - 0.3-1
590d58
- Update to volume_key-0.3.
590d58
- Drop bundled libcryptsetup.
590d58
590d58
* Sat Aug  8 2009 Miloslav Trmač <mitr@redhat.com> - 0.2-3
590d58
- Handle changed "TYPE=crypto_LUKS" from libblkid
590d58
- Preserve file timestamps during installation
590d58
590d58
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2
590d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
590d58
590d58
* Tue Jun 30 2009 Miloslav Trmač <mitr@redhat.com> - 0.2-1
590d58
- Initial build.