diff --git a/lab-fix-metadata.diff b/lab-fix-metadata.diff index 3f50c25..4cc60c7 100644 --- a/lab-fix-metadata.diff +++ b/lab-fix-metadata.diff @@ -1,11 +1,13 @@ ---- lab-0.8.1/Cargo.toml 2020-08-14T06:54:54+00:00 -+++ lab-0.8.1/Cargo.toml 2021-06-28T13:40:03.499389+00:00 -@@ -35,7 +35,7 @@ - name = "lab_to_rgb" - harness = false +--- lab-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ lab-0.11.0/Cargo.toml 2022-11-04T18:04:33.427714+00:00 +@@ -37,10 +37,6 @@ [dev-dependencies.approx] + version = "0.5" + +-[dev-dependencies.criterion] -version = "0.3" -+version = "0.5" +-default-features = false +- + [dev-dependencies.lazy_static] + version = "1.3.0" - [dev-dependencies.criterion] - version = "0.3" diff --git a/rust-lab.spec b/rust-lab.spec index e924e75..a800aef 100644 --- a/rust-lab.spec +++ b/rust-lab.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate lab -Name: rust-%{crate} +Name: rust-lab Version: 0.11.0 Release: %autorelease Summary: Tools for converting RGB colors to the CIE-L*a*b* color space -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/lab Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: lab-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Tools for converting RGB colors to the CIE-L*a*b* color space, and comparing @@ -33,13 +30,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,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