From 05c07a48a9c7e592430d7c37cb681b55606b30dd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 2 Sep 2022 14:49:16 +0200 Subject: [PATCH] Update to version 0.10.2; Fixes RHBZ#2122725 --- .gitignore | 1 + rust-md-5.spec | 23 ++++++++++++----------- .rust2rpm.conf => rust2rpm.conf | 0 sources | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) rename .rust2rpm.conf => rust2rpm.conf (100%) diff --git a/.gitignore b/.gitignore index 8b60c10..867256e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /md-5-0.9.1.crate /md-5-0.10.0.crate /md-5-0.10.1.crate +/md-5-0.10.2.crate diff --git a/rust-md-5.spec b/rust-md-5.spec index f0fe9a6..78cf009 100644 --- a/rust-md-5.spec +++ b/rust-md-5.spec @@ -1,22 +1,21 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate md-5 -Name: rust-%{crate} -Version: 0.10.1 +Name: rust-md-5 +Version: 0.10.2 Release: %autorelease Summary: MD5 hash 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/md-5 Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: MD5 hash function.} @@ -33,9 +32,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 +48,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}+std-devel Summary: %{summary} @@ -59,7 +60,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/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index 67cd632..af7accb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (md-5-0.10.1.crate) = 51e75f65363b3a7f4f12c7d8b563bd17cb717cdfec11fbc9dd267dc97bc933fb197c26c6e823dbe4f5e2af6261ec1b9cc003182b027be4c0ceef2d6e07bcb9df +SHA512 (md-5-0.10.2.crate) = bed7592f9e486c2068073bf655d67a2c39b315b15ab7e058d1d903af9ebf27615048700019c5d6590b8e9665f69b6f76bb74962915657404f127e48b40e75196