From 4ad4de234367c3645fbfc1b15ad12f16c659226c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 25 May 2022 15:51:06 +0200 Subject: [PATCH] Update to version 1.0.7; Fixes RHBZ#2078256 --- .gitignore | 1 + rust-ref-cast.spec | 26 ++++++++++++-------------- sources | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 1be42de..dd2fa8f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /ref-cast-1.0.3.crate /ref-cast-1.0.5.crate /ref-cast-1.0.6.crate +/ref-cast-1.0.7.crate diff --git a/rust-ref-cast.spec b/rust-ref-cast.spec index 569c956..9b13b5d 100644 --- a/rust-ref-cast.spec +++ b/rust-ref-cast.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate ref-cast Name: rust-%{crate} -Version: 1.0.6 +Version: 1.0.7 Release: %autorelease Summary: Safely cast &T to &U where the struct U contains a single field of type T @@ -15,11 +15,8 @@ URL: https://crates.io/crates/ref-cast Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Safely cast &T to &U where the struct U contains a single field of type T.} @@ -32,13 +29,14 @@ 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-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +44,11 @@ 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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 6d1069b..3e8a6da 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ref-cast-1.0.6.crate) = d3d06c4ea78a0f043f88c10c953160725bbe55d64505528d8127a73ed090d04ced19a9935cb78e1fa6ea562f706fdd5679b070be0a344106ee09f303cad0f43f +SHA512 (ref-cast-1.0.7.crate) = 4b07a2adf9738b680bd30e1a6cf98cbd3b90bea58a00c2418307dc2fb696348bc726e83e707c2207f452108f93459631157a212137d99cedbc43658318fd9ef2