From 33e94d0552c2c7468af8a94e04b3b1418e67f8f1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 25 Aug 2022 21:13:33 +0200 Subject: [PATCH] regenerate with rust2rpm v22 and specify License for binary package --- LICENSE.dependencies | 47 ++++++++++++++++++++++++++++++++++++++++++++ rust-sevctl.spec | 30 +++++++++++++++++++--------- 2 files changed, 68 insertions(+), 9 deletions(-) create mode 100644 LICENSE.dependencies diff --git a/LICENSE.dependencies b/LICENSE.dependencies new file mode 100644 index 0000000..8f16b12 --- /dev/null +++ b/LICENSE.dependencies @@ -0,0 +1,47 @@ +Apache-2.0 OR BSL-1.0: ryu v1.0.11 +Apache-2.0 OR MIT: structopt v0.3.26 +Apache-2.0 OR MIT: uuid v1.1.2 +Apache-2.0: codicon v3.0.0 +Apache-2.0: iocuddle v0.1.1 +Apache-2.0: openssl v0.10.41 +Apache-2.0: sev v0.3.0 +Apache-2.0: sevctl v0.3.0 +MIT OR Apache-2.0 OR Zlib: tinyvec_macros v0.1.0 +MIT OR Apache-2.0: base64 v0.13.0 +MIT OR Apache-2.0: bitfield v0.13.2 +MIT OR Apache-2.0: bitflags v1.3.2 +MIT OR Apache-2.0: cfg-if v1.0.0 +MIT OR Apache-2.0: dirs v4.0.0 +MIT OR Apache-2.0: dirs-sys v0.3.7 +MIT OR Apache-2.0: foreign-types v0.3.2 +MIT OR Apache-2.0: foreign-types-shared v0.1.1 +MIT OR Apache-2.0: form_urlencoded v1.0.1 +MIT OR Apache-2.0: httparse v1.7.1 +MIT OR Apache-2.0: idna v0.2.3 +MIT OR Apache-2.0: itoa v1.0.3 +MIT OR Apache-2.0: lazy_static v1.4.0 +MIT OR Apache-2.0: libc v0.2.131 +MIT OR Apache-2.0: log v0.4.17 +MIT OR Apache-2.0: native-tls v0.2.10 +MIT OR Apache-2.0: once_cell v1.13.1 +MIT OR Apache-2.0: openssl-probe v0.1.5 +MIT OR Apache-2.0: percent-encoding v2.1.0 +MIT OR Apache-2.0: serde v1.0.144 +MIT OR Apache-2.0: serde-big-array v0.4.1 +MIT OR Apache-2.0: serde_bytes v0.11.7 +MIT OR Apache-2.0: serde_json v1.0.85 +MIT OR Apache-2.0: unicode-bidi v0.3.8 +MIT OR Apache-2.0: unicode-normalization v0.1.21 +MIT OR Apache-2.0: unicode-width v0.1.9 +MIT OR Apache-2.0: url v2.2.2 +MIT OR Apache-2.0: vec_map v0.8.2 +MIT: ansi_term v0.12.1 +MIT: atty v0.2.14 +MIT: bincode v1.3.3 +MIT: clap v2.34.0 +MIT: colorful v0.2.1 +MIT: matches v0.1.9 +MIT: openssl-sys v0.9.75 +MIT: strsim v0.10.0 +MIT: textwrap v0.11.0 +Zlib OR Apache-2.0 OR MIT: tinyvec v1.6.0 diff --git a/rust-sevctl.spec b/rust-sevctl.spec index 75e742e..d785016 100644 --- a/rust-sevctl.spec +++ b/rust-sevctl.spec @@ -1,24 +1,23 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 22 %bcond_without check -%global __cargo_skip_build 0 %global crate sevctl -Name: rust-%{crate} +Name: rust-sevctl Version: 0.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Administrative utility for AMD SEV -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/sevctl -Source: %{crates_source} +Source0: %{crates_source} +Source1: LICENSE.dependencies # SEV is an AMD x86_64 CPU feature so doesn't make sense to # try to build on other arches ExclusiveArch: x86_64 -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Administrative utility for AMD SEV.} @@ -27,16 +26,26 @@ Administrative utility for AMD SEV.} %package -n %{crate} Summary: %{summary} +# 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 %description -n %{crate} %{_description} %files -n %{crate} -%doc README.md %license LICENSE +%doc README.md %{_bindir}/sevctl %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +cp -pav %{SOURCE1} . %cargo_prep %generate_buildrequires @@ -54,6 +63,9 @@ Summary: %{summary} %endif %changelog +* Thu Aug 25 2022 Fabio Valentini - 0.3.0-2 +- Regenerate with rust2rpm v22 and specify License for binary package. + * Thu Aug 25 2022 Cole Robinson - 0.3.0-1 - Update to 0.3.0 (rhbz #2097875)