From c19056e6be149d1482d347cf7d0fb00363ebd8b6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 15 Jul 2022 11:02:08 +0200 Subject: [PATCH] Update to version 0.3.0; Fixes RHBZ#2031421 --- .gitignore | 1 + rust-mockall_double.spec | 31 +++++++++++++------------------ sources | 4 +--- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index fe7011d..6dbd0ad 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /mockall_double-0.2.0.crate /LICENSE-APACHE /LICENSE-MIT +/mockall_double-0.3.0.crate diff --git a/rust-mockall_double.spec b/rust-mockall_double.spec index edd6884..67e6adb 100644 --- a/rust-mockall_double.spec +++ b/rust-mockall_double.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate mockall_double Name: rust-%{crate} -Version: 0.2.0 +Version: 0.3.0 Release: %autorelease Summary: Test double adapter for Mockall @@ -13,16 +13,10 @@ Summary: Test double adapter for Mockall License: MIT or ASL 2.0 URL: https://crates.io/crates/mockall_double Source: %{crates_source} -# https://github.com/asomers/mockall/issues/328 -Source1: https://github.com/asomers/mockall/raw/mockall_double-v0.2.0/LICENSE-APACHE -Source2: https://github.com/asomers/mockall/raw/mockall_double-v0.2.0/LICENSE-MIT ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Test double adapter for Mockall.} @@ -35,13 +29,15 @@ 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}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,16 +45,15 @@ 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 %cargo_prep -cp %{SOURCE1} %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index 811ea1d..7c812a5 100644 --- a/sources +++ b/sources @@ -1,3 +1 @@ -SHA512 (mockall_double-0.2.0.crate) = ecc21b427393f7165031247613479fc993afd2ce5784ec627b50c3664cea0cd2899c19d1de4591a62efb1f7f308e9fe6e365ae03d7009f5fcd891b5c3badee74 -SHA512 (LICENSE-APACHE) = 175a88be0fdec82e81809921d4e03113c369534f7c1de0594438af5b0c596f26cb713ae0de52de682dbbf725a88340d051631577e10b0092c17b9b04465de3c8 -SHA512 (LICENSE-MIT) = e70db24309be386c1782fc311fbfcbc00555418fcfbae26ef5aab7292f0a4a506952f4146f738337b51af766add80930e396102d071051a072b55ad093e9bd91 +SHA512 (mockall_double-0.3.0.crate) = b49fd1c23200ebe426b386cf38a4f45cfc78a0893dd1c4a17a3d04158773538ea351b8974292933404913f61ad96f30c049c09b5762f0ade84628d03f4e42ba4