%bcond_without check %global __cargo_skip_build 0 %global __cargo_is_lib() false Name: clevis-pin-tpm2 Version: 0.5.1 Release: 2%{?dist} Summary: Clevis PIN for unlocking with TPM2 supporting Authorized Policies License: MIT URL: https://github.com/fedora-iot/clevis-pin-tpm2/ Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-v%{version}-vendor.tar.gz ExclusiveArch: %{rust_arches} # RHBZ 1869980 ExcludeArch: s390x i686 %{power64} BuildRequires: rust-toolset BuildRequires: tpm2-tss-devel Requires: clevis %description %{summary}. %prep %autosetup -p1 %cargo_prep -V 1 %build %cargo_build %install %cargo_install ln -s /usr/bin/clevis-pin-tpm2 %{buildroot}/usr/bin/clevis-encrypt-tpm2plus ln -s /usr/bin/clevis-pin-tpm2 %{buildroot}/usr/bin/clevis-decrypt-tpm2plus %if %{with check} %check %cargo_test -- -- --skip real_ --skip loop_ --skip travis_ %endif %files %license LICENSE %{_bindir}/clevis-pin-tpm2 %{_bindir}/clevis-*-tpm2plus %changelog * Fri Dec 10 2021 Antonio Murdaca - 0.5.1-2 - rebuilt to disable annocheck for Rust code * Thu Dec 09 2021 Antonio Murdaca - 0.5.1-1 - rebuilt to add gating and relicense to MIT * Thu Dec 09 2021 Antonio Murdaca - 0.5.0-1 - bump to 0.5.0 * Mon Oct 4 2021 Antonio Murdaca - 0.4.1-1 - import in c9s and rhel9 * Wed Jul 21 2021 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Apr 06 2021 Peter Robinson - 0.3.0-1 - Update to 0.3.0 * Tue Jan 26 2021 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Dec 3 2020 Peter Robinson - 0.2.0-1 - Update to 0.2.0 * Tue Nov 10 2020 Peter Robinson - 0.1.4-1 - Update to 0.1.4 * Sat Aug 29 2020 Peter Robinson - 0.1.3-1 - Update to 0.1.3 * Tue Aug 25 2020 Patrick Uiterwijk - 0.1.2-2 - Add symlink to clevis-{en,de}crypt-tpm2plus * Fri Aug 21 2020 Peter Robinson - 0.1.2-1 - Update to 0.1.2 * Thu Aug 13 2020 Peter Robinson - 0.1.1-1 - Update to 0.1.1 * Mon Aug 3 2020 Peter Robinson 0.0.1-1 - Initial release