From 2ae0f9b84cd694c8ba8b40718b866132c8029ab2 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 15:43:07 +0300 Subject: [PATCH] import clevis-pin-tpm2-0.5.3-6.el10 --- .clevis-pin-tpm2.metadata | 2 + .gitignore | 2 + SPECS/clevis-pin-tpm2.spec | 152 +++++++++++++++++++++++++++++++++++++ 3 files changed, 156 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..254dca3 --- /dev/null +++ b/.clevis-pin-tpm2.metadata @@ -0,0 +1,2 @@ +e0bb392b776f97163a0e25216d937102e382341b SOURCES/clevis-pin-tpm2-0.5.3-vendor.tar.xz +4de356b1b7be7ec28f0782e44dcd2c58200ee307 SOURCES/clevis-pin-tpm2-0.5.3.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b1d0ab6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/clevis-pin-tpm2-0.5.3-vendor.tar.xz +SOURCES/clevis-pin-tpm2-0.5.3.tar.gz diff --git a/SPECS/clevis-pin-tpm2.spec b/SPECS/clevis-pin-tpm2.spec new file mode 100644 index 0000000..c135ee2 --- /dev/null +++ b/SPECS/clevis-pin-tpm2.spec @@ -0,0 +1,152 @@ +# Needs a TPMv2 +%bcond_with check +%global __cargo_skip_build 0 +%global __cargo_is_lib() false + +Name: clevis-pin-tpm2 +Version: 0.5.3 +Release: 6%{?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 +# To create the vendor tarball: +# tar xf %%{name}-%%{version}.crate ; pushd %%{name}-%%{version} ; \ +# cargo vendor && tar Jcvf ../%%{name}-%%{version}-vendor.tar.xz vendor/ ; popd +Source1: %{name}-%{version}-vendor.tar.xz + +ExclusiveArch: %{rust_arches} +%if 0%{?rhel} +BuildRequires: rust-toolset +%else +BuildRequires: rust-packaging +%endif +BuildRequires: clang-devel +BuildRequires: openssl-devel +BuildRequires: tpm2-tss-devel +Requires: clevis + +%description +%{summary}. + +%prep +%autosetup -p1 %{?rhel:-a1} +%if 0%{?rhel} +%cargo_prep -v vendor +%else +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +%endif + +%build +%cargo_build +%cargo_license_summary +%{cargo_license} > LICENSE.dependencies +%if 0%{?rhel} +%cargo_vendor_manifest +%endif + +%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 +%license LICENSE.dependencies +%if 0%{?rhel} +%license cargo-vendor.txt +%endif +%{_bindir}/clevis-pin-tpm2 +%{_bindir}/clevis-*-tpm2plus + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 0.5.3-6 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 0.5.3-6 +- Bump release for June 2024 mass rebuild + +* Fri Feb 02 2024 Yaakov Selkowitz - 0.5.3-5 +- Update Rust macro usage + +* Wed Jan 24 2024 Fedora Release Engineering - 0.5.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.5.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 01 2023 Fabio Valentini - 0.5.3-2 +- Rebuild for openssl crate >= v0.10.60 (RUSTSEC-2023-0044, RUSTSEC-2023-0072) + +* Fri Jul 28 2023 Peter Robinson - 0.5.3-1 +- Update to 0.5.3 + +* Wed Jul 19 2023 Yaakov Selkowitz - 0.5.2-7 +- Use vendored dependencies in RHEL builds + +* Wed Jul 19 2023 Fedora Release Engineering - 0.5.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 03 2023 Fabio Valentini - 0.5.2-5 +- Rebuild for openssl crate >= v0.10.48 (RUSTSEC-2023-{0022,0023,0024}) + +* Tue Feb 07 2023 Peter Robinson - 0.5.2-4 +- Rebuild for tss-esapi 7.2.0 + +* Thu Jan 19 2023 Fedora Release Engineering - 0.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Apr 22 2022 Peter Robinson - 0.5.2-1 +- Update to 0.5.2 +- License EUPL 1.2 -> MIT + +* Wed Jan 19 2022 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Dec 08 2021 Peter Robinson - 0.5.0-1 +- Update to 0.5.0 + +* Wed Nov 03 2021 Peter Robinson - 0.4.1-1 +- Update to 0.4.1 + +* 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