From 897d908ad9f25c5a48f4ff93582fc4f22f9e879c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 20 Dec 2022 21:48:38 +0100 Subject: [PATCH] Bump to proptest 1.0 and proptest-derive 0.3 --- bitmaps-fix-metadata.diff | 6 +++--- rust-bitmaps.spec | 44 +++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/bitmaps-fix-metadata.diff b/bitmaps-fix-metadata.diff index 7da3b10..13d0983 100644 --- a/bitmaps-fix-metadata.diff +++ b/bitmaps-fix-metadata.diff @@ -1,15 +1,15 @@ --- bitmaps-2.1.0/Cargo.toml 2020-03-26T13:33:13+00:00 -+++ bitmaps-2.1.0/Cargo.toml 2020-09-25T09:37:15.549142+00:00 ++++ bitmaps-2.1.0/Cargo.toml 2022-12-20T20:41:13.080777+00:00 @@ -25,10 +25,10 @@ [dependencies.typenum] version = "1.10.0" [dev-dependencies.proptest] -version = "0.9.1" -+version = "0.10" ++version = "1.0.0" [dev-dependencies.proptest-derive] -version = "0.1.0" -+version = "0.2" ++version = "0.3.0" [features] default = ["std"] diff --git a/rust-bitmaps.spec b/rust-bitmaps.spec index 43fa5d8..8a65497 100644 --- a/rust-bitmaps.spec +++ b/rust-bitmaps.spec @@ -1,27 +1,23 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate bitmaps -Name: rust-%{crate} +Name: rust-bitmaps Version: 2.1.0 Release: %autorelease Summary: Fixed size boolean arrays -# Upstream license specification: MPL-2.0+ -License: MPLv2.0 +License: MPL-2.0+ URL: https://crates.io/crates/bitmaps Source: %{crates_source} -# Initial patched metadata -Patch0: bitmaps-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump proptest dev-dependency from 0.9 to 1.0 +# * bump proptest-derive dev-dependency from 0.1 to 0.3 +Patch: bitmaps-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Fixed size boolean arrays.} @@ -34,13 +30,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 LICENCE.md -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENCE.md +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/CODE_OF_CONDUCT.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,11 +46,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 %package -n %{name}+std-devel Summary: %{summary} @@ -60,11 +58,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1