Blame SPECS/clevis.spec

896464
%global _hardened_build 1
896464
896464
Name:           clevis
896464
Version:        7
896464
Release:        8%{?dist}
896464
Summary:        Automated decryption framework
896464
896464
License:        GPLv3+
896464
URL:            https://github.com/latchset/%{name}
896464
Source0:        https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
896464
Patch0:         clevis-7-dracut.patch
896464
Patch1:         clevis-7-retry.patch
896464
Patch2:         clevis-7-nospam.patch
896464
Patch3:         clevis-7-tpm2.patch
896464
Patch4:         clevis-7-subshell.patch
896464
896464
BuildRequires:  libjose-devel >= 8
896464
BuildRequires:  libluksmeta-devel >= 8
896464
BuildRequires:  audit-libs-devel >= 2.8.1
896464
BuildRequires:  libudisks2-devel
896464
BuildRequires:  openssl-devel
896464
896464
%ifarch i686 x86_64
896464
BuildRequires:  tpm2-tools >= 3.0.0
896464
%endif
896464
BuildRequires:  desktop-file-utils
896464
BuildRequires:  pkgconfig
896464
BuildRequires:  autoconf
896464
BuildRequires:  automake
896464
BuildRequires:  systemd
896464
BuildRequires:  dracut
896464
BuildRequires:  tang >= 6
896464
BuildRequires:  curl
896464
896464
%ifarch i686 x86_64
896464
Requires:       tpm2-tools >= 3.0.0
896464
%endif
896464
Requires:       coreutils
896464
Requires:       jose >= 8
896464
Requires:       curl
896464
Requires(pre):  shadow-utils
896464
896464
%description
896464
Clevis is a framework for automated decryption. It allows you to encrypt
896464
data using sophisticated unlocking policies which enable decryption to
896464
occur automatically.
896464
896464
The clevis package provides basic encryption/decryption policy support.
896464
Users can use this directly; but most commonly, it will be used as a
896464
building block for other packages. For example, see the clevis-luks
896464
and clevis-dracut packages for automatic root volume unlocking of LUKSv1
896464
volumes during early boot.
896464
896464
%package luks
896464
Summary:        LUKSv1 integration for clevis
896464
Requires:       %{name}%{?_isa} = %{version}-%{release}
896464
Requires:       cryptsetup
896464
Requires:       luksmeta >= 8
896464
896464
%description luks
896464
LUKSv1 integration for clevis. This package allows you to bind a LUKSv1
896464
volume to a clevis unlocking policy. For automated unlocking, an unlocker
896464
will also be required. See, for example, clevis-dracut and clevis-udisks2.
896464
896464
%package systemd
896464
Summary:        systemd integration for clevis
896464
Requires:       %{name}-luks%{?_isa} = %{version}-%{release}
896464
Requires:       systemd%{?_isa} >=  219-45.20171030
896464
Requires:       nc
896464
896464
%description systemd
896464
Automatically unlocks LUKSv1 _netdev block devices from /etc/crypttab.
896464
896464
%package dracut
896464
Summary:        Dracut integration for clevis
896464
Requires:       %{name}-systemd%{?_isa} = %{version}-%{release}
896464
Requires:       dracut-network
896464
896464
%description dracut
896464
Automatically unlocks LUKSv1 block devices in early boot.
896464
896464
%package udisks2
896464
Summary:        UDisks2/Storaged integration for clevis
896464
Requires:       %{name}-luks%{?_isa} = %{version}-%{release}
896464
896464
%description udisks2
896464
Automatically unlocks LUKSv1 block devices in desktop environments that
896464
use UDisks2 or storaged (like GNOME).
896464
896464
%prep
896464
%autosetup -p1
896464
896464
%build
896464
autoreconf -if
896464
%configure --enable-user=clevis --enable-group=clevis
896464
%make_build V=1
896464
896464
%install
896464
%make_install
896464
ln -sf %{name}-luks-bind.1.gz %{buildroot}/%{_mandir}/man1/%{name}-bind-luks.1.gz
896464
896464
%check
896464
desktop-file-validate \
896464
  %{buildroot}/%{_sysconfdir}/xdg/autostart/%{name}-luks-udisks2.desktop
896464
%make_build check
896464
896464
%pre
896464
getent group %{name} >/dev/null || groupadd -r %{name}
896464
getent passwd %{name} >/dev/null || \
896464
    useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin \
896464
    -c "Clevis Decryption Framework unprivileged user" %{name}
896464
exit 0
896464
896464
%files
896464
%license COPYING
896464
%{_bindir}/%{name}-decrypt-http
896464
%{_bindir}/%{name}-decrypt-tang
896464
%{_bindir}/%{name}-decrypt-sss
896464
%{_bindir}/%{name}-decrypt
896464
%{_bindir}/%{name}-encrypt-http
896464
%{_bindir}/%{name}-encrypt-tang
896464
%{_bindir}/%{name}-encrypt-sss
896464
%{_bindir}/%{name}
896464
%{_mandir}/man1/%{name}-encrypt-http.1*
896464
%{_mandir}/man1/%{name}-encrypt-tang.1*
896464
%{_mandir}/man1/%{name}-encrypt-sss.1*
896464
%{_mandir}/man1/%{name}-decrypt.1*
896464
%{_mandir}/man1/%{name}.1*
896464
896464
%ifarch i686 x86_64
896464
%{_bindir}/%{name}-decrypt-tpm2
896464
%{_bindir}/%{name}-encrypt-tpm2
896464
%{_mandir}/man1/%{name}-encrypt-tpm2.1*
896464
%endif
896464
896464
%files luks
896464
%{_mandir}/man1/%{name}-luks-unlockers.1*
896464
%{_mandir}/man1/%{name}-luks-unlock.1*
896464
%{_mandir}/man1/%{name}-luks-bind.1*
896464
%{_mandir}/man1/%{name}-bind-luks.1*
896464
%{_bindir}/%{name}-luks-unlock
896464
%{_bindir}/%{name}-luks-bind
896464
%{_bindir}/%{name}-bind-luks
896464
896464
%files systemd
896464
%{_libexecdir}/%{name}-luks-askpass
896464
%{_unitdir}/%{name}-luks-askpass.path
896464
%{_unitdir}/%{name}-luks-askpass.service
896464
896464
%files dracut
896464
%{_prefix}/lib/dracut/modules.d/60%{name}
896464
896464
%files udisks2
896464
%{_sysconfdir}/xdg/autostart/%{name}-luks-udisks2.desktop
896464
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
896464
896464
%changelog
896464
* Mon Jul 30 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-8
896464
- Fix quoting on older bash shells (from previous patch)
896464
- Resolves: rhbz#1599728
896464
896464
* Tue Jul 24 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-7
896464
- Backport subshell fix for clevis-luks-unlock
896464
- Resolves: rhbz#1599728
896464
896464
* Mon Jul 09 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-6
896464
- Backport TPM 2.0 support
896464
- Resolves: rhbz#1472435
896464
896464
* Mon Jul 09 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-5
896464
- Don't spam the log for uninitialized devices.
896464
- Resolves: rhbz#1538759
896464
896464
* Mon Nov 13 2017 Nathaniel McCallum <npmccallum@redhat.com> - 7-4
896464
- Retry unlocking under systemd. This prevents a race condition.
896464
- Resolves: rhbz#1475406
896464
896464
* Mon Nov 13 2017 Nathaniel McCallum <npmccallum@redhat.com> - 7-3
896464
- Add patch to fix path generation issues with dracut
896464
- Resolves: rhbz#1512638
896464
896464
* Fri Nov 03 2017 Nathaniel McCallum <npmccallum@redhat.com> - 7-2
896464
- Add man page symlink for the clevis-bind-luks => clevis-luks-bind
896464
- Related: rhbz#1475406
896464
896464
* Fri Oct 27 2017 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
896464
- Update to v7
896464
- Resolves: rhbz#1467907
896464
- Resolves: rhbz#1467908
896464
- Resolves: rhbz#1475406
896464
- Resolves: rhbz#1500975
896464
- Resolves: rhbz#1478888
896464
896464
* Tue Jun 27 2017 Nathaniel McCallum <npmccallum@redhat.com> - 6-1
896464
- New upstream release
896464
- Specify unprivileged user/group during configuration
896464
- Move clevis user/group creation to base clevis package
896464
896464
* Mon Jun 26 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-1
896464
- New upstream release
896464
- Run clevis decryption from udisks2 under an unprivileged user
896464
- Reenable udisks2 subpackage
896464
896464
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 4-1
896464
- New upstream release
896464
- Disable udisks2 subpackage
896464
896464
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 3-1
896464
- New upstream release
896464
896464
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-2
896464
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
896464
896464
* Fri Nov 18 2016 Nathaniel McCallum <npmccallum@redhat.com> - 2-1
896464
- New upstream release
896464
896464
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1-1
896464
- First release