From 0c490951ec252edf25441ea80d595bfc626aa698 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 14 Jun 2023 16:18:42 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- rust-sha1_smol.spec | 23 ++++++++++------------- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 057fea1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sha1_smol - -The rust-sha1_smol package diff --git a/rust-sha1_smol.spec b/rust-sha1_smol.spec index 997ed8d..0cd85e1 100644 --- a/rust-sha1_smol.spec +++ b/rust-sha1_smol.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate sha1_smol -Name: rust-%{crate} +Name: rust-sha1_smol Version: 1.0.0 Release: %autorelease Summary: Minimal dependency free implementation of SHA1 for Rust -# Upstream license specification: BSD-3-Clause -License: BSD +License: BSD-3-Clause URL: https://crates.io/crates/sha1_smol Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Minimal dependency free implementation of SHA1 for Rust.} @@ -33,9 +30,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +44,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -59,7 +56,7 @@ This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -71,7 +68,7 @@ This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1