From 003b3b7a0fe6b8d146a5c8abbbcd4ae7346eff12 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 29 Sep 2022 14:05:25 +0200 Subject: [PATCH] Bump cast from 0.2 to 0.3 --- criterion-plot-fix-metadata.diff | 11 ++++++++- rust-criterion-plot.spec | 41 ++++++++++++++++---------------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/criterion-plot-fix-metadata.diff b/criterion-plot-fix-metadata.diff index dfea5da..86479ef 100644 --- a/criterion-plot-fix-metadata.diff +++ b/criterion-plot-fix-metadata.diff @@ -1,5 +1,14 @@ --- criterion-plot-0.4.4/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ criterion-plot-0.4.4/Cargo.toml 2021-07-28T09:36:33.729487+00:00 ++++ criterion-plot-0.4.4/Cargo.toml 2022-09-29T11:20:20.059987+00:00 +@@ -22,7 +22,7 @@ + license = "MIT/Apache-2.0" + repository = "https://github.com/bheisler/criterion.rs" + [dependencies.cast] +-version = "0.2" ++version = "0.3" + + [dependencies.itertools] + version = "0.10" @@ -30,7 +30,7 @@ version = "0.1" diff --git a/rust-criterion-plot.spec b/rust-criterion-plot.spec index c34d3df..ac00e6c 100644 --- a/rust-criterion-plot.spec +++ b/rust-criterion-plot.spec @@ -1,28 +1,26 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate criterion-plot -Name: rust-%{crate} +Name: rust-criterion-plot Version: 0.4.4 Release: %autorelease Summary: Criterion's plotting library # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/criterion-plot Source: %{crates_source} -# Initial patched metadata -# * Update num-complex to 0.3 -Patch0: criterion-plot-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump cast from 0.2 to 0.3 +# * bump num-complex from 0.2 to 0.3 +Patch: criterion-plot-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Criterion's plotting library.} @@ -35,13 +33,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-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,19 +49,18 @@ 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 +# remove executable bit from all files ... +find . -type f -executable -exec chmod -x {} + %cargo_prep -# Remove extraneous executable bits -find . -type f -executable -exec chmod 0644 "{}" +; - %generate_buildrequires %cargo_generate_buildrequires