From a5cdd4d2758de3a38bf78d12f141b8b3faab8ffe Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 13 May 2022 14:26:27 +0200 Subject: [PATCH] Update to version 1.0.31; Fixes RHBZ#2080672 --- .gitignore | 1 + rust-thiserror.spec | 26 ++++++++++++-------------- sources | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 927a6ce..6b92928 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /thiserror-1.0.28.crate /thiserror-1.0.29.crate /thiserror-1.0.30.crate +/thiserror-1.0.31.crate diff --git a/rust-thiserror.spec b/rust-thiserror.spec index c1931ee..78929e9 100644 --- a/rust-thiserror.spec +++ b/rust-thiserror.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate thiserror Name: rust-%{crate} -Version: 1.0.30 +Version: 1.0.31 Release: %autorelease Summary: Derive(Error) @@ -15,11 +15,8 @@ URL: https://crates.io/crates/thiserror Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Derive(Error).} @@ -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 51aee72..7f12c18 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (thiserror-1.0.30.crate) = 0e6cbc160ee1b6236a9073dec225a4290e7a82632ee7cec00bf02797b04851adb2d3071fa268b54f7fa9fe22eeada55a83d44fbddf824520023608eda8ea2e99 +SHA512 (thiserror-1.0.31.crate) = 0e11aba54d38fc164c65b9357d1738ca96af2bc7bc2bcacfc4efc6f5c26a594effbb5e47aef46772ccafbe88871825a517920030572b79fae3d305550bfa6431