Blame SPECS/clevis-pin-tpm2.spec

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