2022-08-25 19:13:33 +00:00
|
|
|
# Generated by rust2rpm 22
|
2021-04-05 14:57:13 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
2023-04-28 04:13:05 +00:00
|
|
|
# RHEL does not have packages for Rust dependencies
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%global bundled_rust_deps 1
|
|
|
|
%else
|
|
|
|
%global bundled_rust_deps 0
|
|
|
|
%endif
|
|
|
|
|
2021-04-05 14:57:13 +00:00
|
|
|
%global crate sevctl
|
|
|
|
|
2022-08-25 19:13:33 +00:00
|
|
|
Name: rust-sevctl
|
2023-08-08 01:40:21 +00:00
|
|
|
Version: 0.4.3
|
2023-07-20 03:50:22 +00:00
|
|
|
Release: 1%{?dist}
|
2021-04-05 14:57:13 +00:00
|
|
|
Summary: Administrative utility for AMD SEV
|
|
|
|
|
2022-08-25 19:13:33 +00:00
|
|
|
License: Apache-2.0
|
2021-04-05 14:57:13 +00:00
|
|
|
URL: https://crates.io/crates/sevctl
|
2022-08-25 19:13:33 +00:00
|
|
|
Source0: %{crates_source}
|
|
|
|
Source1: LICENSE.dependencies
|
2023-04-28 04:13:05 +00:00
|
|
|
# To create the vendor tarball:
|
|
|
|
# tar xf %%{crate}-%%{version}.crate ; pushd %%{crate}-%%{version} ; \
|
|
|
|
# cargo vendor && tar Jcvf ../%%{crate}-%%{version}-vendor.tar.xz vendor/ ; popd
|
|
|
|
Source2: %{crate}-%{version}-vendor.tar.xz
|
2021-04-05 14:57:13 +00:00
|
|
|
|
2022-01-05 10:25:16 +00:00
|
|
|
# SEV is an AMD x86_64 CPU feature so doesn't make sense to
|
|
|
|
# try to build on other arches
|
|
|
|
ExclusiveArch: x86_64
|
2021-04-05 14:57:13 +00:00
|
|
|
|
2023-04-28 04:13:05 +00:00
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
# vendored openssl-sys
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
%else
|
2022-08-25 19:13:33 +00:00
|
|
|
BuildRequires: rust-packaging >= 21
|
2023-04-28 04:13:05 +00:00
|
|
|
%endif
|
2021-04-05 14:57:13 +00:00
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
Administrative utility for AMD SEV.}
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
2022-08-25 19:13:33 +00:00
|
|
|
# Apache-2.0
|
|
|
|
# Apache-2.0 OR BSL-1.0
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
# MIT
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
# MIT OR Apache-2.0 OR Zlib
|
|
|
|
# Zlib OR Apache-2.0 OR MIT
|
|
|
|
License: Apache-2.0 AND MIT
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
2021-04-05 14:57:13 +00:00
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
2024-02-01 18:54:26 +00:00
|
|
|
%license LICENSE.dependencies
|
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
%license cargo-vendor.txt
|
|
|
|
%endif
|
2022-08-25 19:13:33 +00:00
|
|
|
%doc README.md
|
2021-04-05 14:57:13 +00:00
|
|
|
%{_bindir}/sevctl
|
|
|
|
|
|
|
|
%prep
|
2024-02-01 18:54:26 +00:00
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1 %{?bundled_rust_deps:-a2}
|
2022-08-25 19:13:33 +00:00
|
|
|
cp -pav %{SOURCE1} .
|
2023-04-28 04:13:05 +00:00
|
|
|
%if 0%{?bundled_rust_deps}
|
2024-02-01 18:54:26 +00:00
|
|
|
%cargo_prep -v vendor
|
2023-04-28 04:13:05 +00:00
|
|
|
%else
|
2021-04-05 14:57:13 +00:00
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
2023-04-28 04:13:05 +00:00
|
|
|
%endif
|
2021-04-05 14:57:13 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
2024-02-01 18:54:26 +00:00
|
|
|
%cargo_license_summary
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
%cargo_vendor_manifest
|
|
|
|
%endif
|
2021-04-05 14:57:13 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2023-08-08 01:40:21 +00:00
|
|
|
* Mon Aug 07 2023 Tyler Fanelli <tfanelli@redhat.com> - 0.4.3-1
|
|
|
|
- Update to 0.4.3
|
|
|
|
|
2023-07-20 03:50:22 +00:00
|
|
|
* Wed Jul 19 2023 Tyler Fanelli <tfanelli@redhat.com> - 0.4.1-1
|
|
|
|
- Update to 0.4.1
|
|
|
|
- Remove patch to update sev dependency.
|
|
|
|
|
2023-04-28 04:13:05 +00:00
|
|
|
* Mon May 15 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.3.2-5
|
|
|
|
- Use vendored dependencies for RHEL builds
|
|
|
|
|
2023-05-03 15:08:28 +00:00
|
|
|
* Wed May 03 2023 Fabio Valentini <decathorpe@gmail.com> - 0.3.2-4
|
|
|
|
- Rebuild for openssl crate >= v0.10.48 (RUSTSEC-2023-{0022,0023,0024})
|
|
|
|
|
2023-02-09 15:50:46 +00:00
|
|
|
* Thu Feb 09 2023 Sergio Lopez <slp@redhat.com> - 0.3.2-3
|
|
|
|
- Include a patch to update sev dependency
|
|
|
|
|
2023-01-21 01:22:20 +00:00
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-18 06:04:28 +00:00
|
|
|
* Fri Nov 18 2022 Tyler Fanelli <tfanelli@redhat.com> - 0.3.2-1
|
|
|
|
- Update to 0.3.2 (rhbz#2143857)
|
|
|
|
|
2022-08-25 19:13:33 +00:00
|
|
|
* Thu Aug 25 2022 Fabio Valentini <decathorpe@gmail.com> - 0.3.0-2
|
|
|
|
- Regenerate with rust2rpm v22 and specify License for binary package.
|
|
|
|
|
2022-08-25 18:08:16 +00:00
|
|
|
* Thu Aug 25 2022 Cole Robinson <crobinso@redhat.com> - 0.3.0-1
|
|
|
|
- Update to 0.3.0 (rhbz #2097875)
|
|
|
|
|
2022-07-23 06:34:40 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-02-15 15:31:46 +00:00
|
|
|
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-4
|
|
|
|
- Rebuild with package notes
|
|
|
|
|
2022-02-15 15:31:28 +00:00
|
|
|
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-3
|
|
|
|
- Rebuild with package notes
|
|
|
|
|
2022-01-21 23:08:09 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-04 16:55:36 +00:00
|
|
|
* Tue Jan 4 2022 Daniel P. Berrangé <berrange@redhat.com> - 0.2.0-1
|
|
|
|
- Update to 0.2.0 release (rhbz #2034304)
|
2022-01-05 10:25:16 +00:00
|
|
|
- Restrict build arch to x86_64 only
|
2022-01-04 16:55:36 +00:00
|
|
|
|
2021-09-14 17:14:32 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.1.0-3
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-07-23 15:57:22 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-05 14:57:13 +00:00
|
|
|
* Tue Mar 30 2021 Connor Kuehl <ckuehl@redhat.com> - 0.1.0-1
|
|
|
|
- Initial package
|