This is required for building the vendored dependencies on Fedora. This in-turn is required for an OpenSSL build that does not include .dll and Windows binary files. Resolves: RHEL-68133 Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
81 lines
2.1 KiB
RPMSpec
81 lines
2.1 KiB
RPMSpec
# Generated by rust2rpm 27
|
|
%bcond check 1
|
|
|
|
%global version 0.5.0
|
|
%global crate snphost
|
|
|
|
Name: snphost
|
|
Version: %{version}
|
|
Release: 2%{?dist}
|
|
Summary: Administrative utility for AMD SEV-SNP
|
|
|
|
URL: https://github.com/virtee/%{crate}
|
|
Source: https://github.com/virtee/%{crate}/archive/refs/tags/snphost-%{version}.tar.gz
|
|
|
|
# Creating vendor tar (on latest Fedora under a snphost dir):
|
|
# dnf install <all dependencies>
|
|
# Edit create_vendor_source.sh to reflect proper version number being updated.
|
|
# bash create_vendor_source.sh
|
|
# mv snphost-{VERSION}-vendor.tar.xz ../vendor/
|
|
Source1: vendor/snphost-%{version}-vendor-FEDORA.tar.gz
|
|
|
|
# To build vendored dependencies on Fedora, update the env_logger dependency to match Fedora's present version.
|
|
Patch: update-envlogger-dependency.diff
|
|
|
|
# snphost is a tool using features specific to AMD EPYC processors (x86_64).
|
|
ExclusiveArch: x86_64
|
|
|
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
# Apache-2.0
|
|
# Apache-2.0 OR MIT
|
|
# BSD-3-Clause
|
|
# MIT
|
|
# MIT OR Apache-2.0
|
|
# MPL-2.0
|
|
# Unlicense OR MIT
|
|
License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Unlicense OR MIT)
|
|
|
|
BuildRequires: rust-toolset
|
|
BuildRequires: /usr/bin/pkg-config
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: libcurl-devel
|
|
|
|
%global _description %{expand:
|
|
Administrative utility for AMD SEV-SNP.}
|
|
|
|
%description %{_description}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%license LICENSE.dependencies
|
|
%doc README.md
|
|
%{_bindir}/snphost
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version} -p1 -a1
|
|
rm -f Cargo.lock
|
|
%cargo_prep -v vendor
|
|
|
|
%build
|
|
%cargo_build
|
|
%{cargo_license_summary}
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
* Wed Feb 19 2025 Tyler Fanelli <tfanelli@redhat.com> - 0.5.0-2
|
|
- Update env_logger dependency to build vendored dependencies on Fedora
|
|
- Use cargo vendor-filterer to create vendor Source1
|
|
- Resolves: RHEL-68133
|
|
|
|
* Tue Feb 11 2025 Tyler Fanelli <tfanelli@redhat.com> - 0.5.0-1
|
|
- Initial commit on c9s
|
|
Resolves: RHELPLAN-171499
|