diff --git a/lab-fix-metadata.diff b/lab-fix-metadata.diff index f1811c4..9d72624 100644 --- a/lab-fix-metadata.diff +++ b/lab-fix-metadata.diff @@ -1,6 +1,6 @@ --- lab-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ lab-0.11.0/Cargo.toml 2023-03-12T21:25:13.736516+00:00 -@@ -27,19 +27,8 @@ ++++ lab-0.11.0/Cargo.toml 2024-10-02T16:17:10.254675+00:00 +@@ -27,25 +27,14 @@ [lib] bench = false @@ -20,3 +20,10 @@ [dev-dependencies.lazy_static] version = "1.3.0" + + [dev-dependencies.pretty_assertions] +-version = "0.7" ++version = "1" + + [dev-dependencies.rand] + version = "0.8" diff --git a/rust-lab.spec b/rust-lab.spec index 9c63902..e7eb685 100644 --- a/rust-lab.spec +++ b/rust-lab.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -13,10 +13,11 @@ 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 +# * bump pretty_assertions dev-dependecy from ^0.7 to ^1 +# * drop unused, benchmark-only criterion dev-dependency Patch: lab-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Tools for converting RGB colors to the CIE-L*a*b* color space, and @@ -51,7 +52,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..30add21 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "Tools for converting RGB colors to the CIE-L*a*b* color space" +cargo-toml-patch-comments = [ + "bump pretty_assertions dev-dependecy from ^0.7 to ^1", + "drop unused, benchmark-only criterion dev-dependency", +] +