diff --git a/.gitignore b/.gitignore index 1ced20b..1ab50f1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /crc-1.9.0.crate /crc-2.1.0.crate /crc-3.0.1.crate +/crc-3.2.1.crate diff --git a/crc-fix-metadata.diff b/crc-fix-metadata.diff new file mode 100644 index 0000000..9e613d3 --- /dev/null +++ b/crc-fix-metadata.diff @@ -0,0 +1,15 @@ +--- crc-3.2.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crc-3.2.1/Cargo.toml 2024-04-16T10:58:50.798875+00:00 +@@ -35,12 +35,5 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/mrhooray/crc-rs.git" + +-[[bench]] +-name = "bench" +-harness = false +- + [dependencies.crc-catalog] + version = "2.4.0" +- +-[dev-dependencies.criterion] +-version = "0.4" diff --git a/rust-crc.spec b/rust-crc.spec index 1296434..a332522 100644 --- a/rust-crc.spec +++ b/rust-crc.spec @@ -1,19 +1,22 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate crc Name: rust-crc -Version: 3.0.1 +Version: 3.2.1 Release: %autorelease Summary: Rust implementation of CRC with support of various standards License: MIT OR Apache-2.0 URL: https://crates.io/crates/crc Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: crc-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust implementation of CRC with support of various standards.} @@ -48,7 +51,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/sources b/sources index 548bd43..792935c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (crc-3.0.1.crate) = aabe9d4058fb4710405146e978ec5881bce5ce8971618b69a7ff873b0fff15fc78e5c48ff0136ca6d37663a53905bc3c5daa0ed3a2ed4d8d721e90c3b0ec28a5 +SHA512 (crc-3.2.1.crate) = 64b7272d8cf55efe9768f9f3218f83302ccb59458a56fe3b7b2de1a53eb5a3b57fbf268647fdba5b230cccdd4058462ba583d76870ba12cb1057ac2787f181db