From 60e52af372b931c3a6a89f19e8ec1bf0414a721b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 25 May 2022 15:49:44 +0200 Subject: [PATCH] Update to version 1.0.7; Fixes RHBZ#2078257 --- .gitignore | 1 + rust-ref-cast-impl.spec | 24 +++++++++++------------- sources | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 7ba1093..0518f99 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /ref-cast-impl-1.0.3.crate /ref-cast-impl-1.0.5.crate /ref-cast-impl-1.0.6.crate +/ref-cast-impl-1.0.7.crate diff --git a/rust-ref-cast-impl.spec b/rust-ref-cast-impl.spec index 0ac4d06..b2019b4 100644 --- a/rust-ref-cast-impl.spec +++ b/rust-ref-cast-impl.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate ref-cast-impl Name: rust-%{crate} -Version: 1.0.6 +Version: 1.0.7 Release: %autorelease Summary: Derive implementation for ref_cast::RefCast @@ -15,11 +15,8 @@ URL: https://crates.io/crates/ref-cast-impl Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Derive implementation for ref_cast::RefCast.} @@ -32,12 +29,13 @@ 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 -%{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} @@ -45,11 +43,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 287fde4..4b9a517 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ref-cast-impl-1.0.6.crate) = cad08f316aae4bb826fadb33a663781265799292d1c8bcc1540d5d6aca0cf7ff8629127c3e48fc2e88b9181abe8a50263124857f9544e5a7a4613e3eafb745b2 +SHA512 (ref-cast-impl-1.0.7.crate) = 9152061cd4abca8503cfb101b39748b5930cfb02dbea167b5d4a224e62a6b853e88e0841fae9473ef0f69ac27bab215c4feb7281cd8470f3a5d2c507e10d03ce