From 4a3026d67b0f6dbae497ba3be83a6188db3de04e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 11 Jan 2022 13:17:32 -0500 Subject: [PATCH] import clevis-pin-tpm2-0.5.1-2.el9 --- .clevis-pin-tpm2.metadata | 2 + .gitignore | 2 + SPECS/clevis-pin-tpm2.spec | 89 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 .clevis-pin-tpm2.metadata create mode 100644 .gitignore create mode 100644 SPECS/clevis-pin-tpm2.spec diff --git a/.clevis-pin-tpm2.metadata b/.clevis-pin-tpm2.metadata new file mode 100644 index 0000000..966a0ab --- /dev/null +++ b/.clevis-pin-tpm2.metadata @@ -0,0 +1,2 @@ +3cca4797cb447ec9414f5481c44291539d610de1 SOURCES/clevis-pin-tpm2-0.5.1.tar.gz +59bdc74ad0d54c73a1c3b2509361e52106f775c4 SOURCES/clevis-pin-tpm2-v0.5.1-vendor.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..680d27f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/clevis-pin-tpm2-0.5.1.tar.gz +SOURCES/clevis-pin-tpm2-v0.5.1-vendor.tar.gz diff --git a/SPECS/clevis-pin-tpm2.spec b/SPECS/clevis-pin-tpm2.spec new file mode 100644 index 0000000..7d15856 --- /dev/null +++ b/SPECS/clevis-pin-tpm2.spec @@ -0,0 +1,89 @@ +%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