From 9803079bb9758f20cc54aa3f8a64903c5d0a1522 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 28 Feb 2023 11:37:12 +0100 Subject: [PATCH] Update to version 2.5.0; Fixes RHBZ#2173818 --- .gitignore | 1 + README.md | 3 -- rust-subtle.spec | 79 ++++++++++++++++++++++++++++++------------------ sources | 2 +- 4 files changed, 52 insertions(+), 33 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index b844b85..ccd2b6b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /subtle-2.3.0.crate /subtle-2.4.0.crate /subtle-2.4.1.crate +/subtle-2.5.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index ea3dd4c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-subtle - -The rust-subtle package \ No newline at end of file diff --git a/rust-subtle.spec b/rust-subtle.spec index 7d574b3..1a1cca2 100644 --- a/rust-subtle.spec +++ b/rust-subtle.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate subtle -Name: rust-%{crate} -Version: 2.4.1 +Name: rust-subtle +Version: 2.5.0 Release: %autorelease Summary: Pure-Rust traits and utilities for constant-time cryptographic implementations -# Upstream license specification: BSD-3-Clause -License: BSD +License: BSD-3-Clause URL: https://crates.io/crates/subtle Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Pure-Rust traits and utilities for constant-time cryptographic implementations.} +Pure-Rust traits and utilities for constant-time cryptographic +implementations.} %description %{_description} @@ -32,13 +27,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md CONTRIBUTING.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +43,35 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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}+const-generics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const-generics-devel %{_description} + +This package contains library source intended for building other packages which +use the "const-generics" feature of the "%{crate}" crate. + +%files -n %{name}+const-generics-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+core_hint_black_box-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+core_hint_black_box-devel %{_description} + +This package contains library source intended for building other packages which +use the "core_hint_black_box" feature of the "%{crate}" crate. + +%files -n %{name}+core_hint_black_box-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+i128-devel Summary: %{summary} @@ -58,11 +79,11 @@ BuildArch: noarch %description -n %{name}+i128-devel %{_description} -This package contains library source intended for building other packages -which use "i128" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "i128" feature of the "%{crate}" crate. %files -n %{name}+i128-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nightly-devel Summary: %{summary} @@ -70,11 +91,11 @@ BuildArch: noarch %description -n %{name}+nightly-devel %{_description} -This package contains library source intended for building other packages -which use "nightly" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. %files -n %{name}+nightly-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -82,11 +103,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 diff --git a/sources b/sources index 1db0e20..5b68369 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (subtle-2.4.1.crate) = 7fd8234b7ffa3ca7e473539cad958df0842186e1dd735905e0d4977564f40a5f2e18b58180fcbe52614a00964dc150bd9f6964500847ea658f22bffe030f5c6a +SHA512 (subtle-2.5.0.crate) = f150b1e2037554f8cd3213a54ddbc258f8f670cc4f39e7084cdea4b47538dbc58b834bc93b443d58a4b9087224efc003234042aaf366687dbd32b1e7174082a0