From ab7f3d5f50244c19117b15daa7e59d7b79e55cf0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 3 Feb 2023 23:03:49 +0100 Subject: [PATCH] Update to version 0.1.15; Fixes RHBZ#2137490 --- .gitignore | 1 + rust-const-random-macro.spec | 27 +++++++++++---------------- sources | 2 +- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 7e365ac..f531580 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /const-random-macro-0.1.10.crate /const-random-macro-0.1.11.crate /const-random-macro-0.1.13.crate +/const-random-macro-0.1.15.crate diff --git a/rust-const-random-macro.spec b/rust-const-random-macro.spec index 6b4fd38..96469ae 100644 --- a/rust-const-random-macro.spec +++ b/rust-const-random-macro.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate const-random-macro -Name: rust-%{crate} -Version: 0.1.13 +Name: rust-const-random-macro +Version: 0.1.15 Release: %autorelease Summary: Provides the procedural macro used by const-random -# 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/const-random-macro Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Provides the procedural macro used by const-random.} @@ -33,11 +27,12 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,10 +41,10 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 0011280..236f260 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (const-random-macro-0.1.13.crate) = 9c89b9a6164b58ed83cd888ae996a769d1d705a966fa1551f5024924638b7ac193cc6192dda84a34eebd1a66a2e26af1085aeed2afcd0f167a910e868df868b1 +SHA512 (const-random-macro-0.1.15.crate) = 2dfc7248fab80463df8e848855dc91e82810cb302e047ac6a5c4afd6140784b86203f3a9f30559079d26b6f29fa3974b367ec4aa78b9d00f1d79339703163d9d