From fb4df29e9c2bdeb4a0e8e0af9a36af96c80650b1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 3 Jun 2023 22:01:01 +0200 Subject: [PATCH] Update to version 0.11.0; Fixes RHBZ#2055918 --- .gitignore | 1 + rust-scrypt.spec | 29 ++++++++++++++--------------- sources | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 8158d6b..1f5058b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /scrypt-0.8.0.crate +/scrypt-0.11.0.crate diff --git a/rust-scrypt.spec b/rust-scrypt.spec index d3a1961..af79b07 100644 --- a/rust-scrypt.spec +++ b/rust-scrypt.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate scrypt -Name: rust-%{crate} -Version: 0.8.0 +Name: rust-scrypt +Version: 0.11.0 Release: %autorelease Summary: Scrypt password-based key derivation function -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/scrypt Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Scrypt password-based key derivation function.} @@ -33,9 +30,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +46,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}+password-hash-devel Summary: %{summary} @@ -59,7 +58,7 @@ This package contains library source intended for building other packages which use the "password-hash" feature of the "%{crate}" crate. %files -n %{name}+password-hash-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+simple-devel Summary: %{summary} @@ -71,7 +70,7 @@ This package contains library source intended for building other packages which use the "simple" feature of the "%{crate}" crate. %files -n %{name}+simple-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -83,7 +82,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 diff --git a/sources b/sources index 66c8277..c21aca9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scrypt-0.8.0.crate) = facdb697057adde9015cf65fd5d293129a3f140b3491c6a000b4eb102b26fce2a5f6136c3d9a0246a13b17c0909f156207c5f1469e5d1140d113d575b71d962d +SHA512 (scrypt-0.11.0.crate) = d7910b277ef814a470361c12a7f2c90ef5b1df56cba9b62662f52a36f076872cf21d18f6c81d33d5a7e94184625753e8a6224d6559ab3cf82ae1a0b7f704e544