From a090a68a882fd922b75309e10100c1f246620a59 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 10 Nov 2023 00:48:19 +0100 Subject: [PATCH] Update to version 2.4.0; Fixes RHBZ#2247381 --- .gitignore | 1 + README.md | 3 --- rust-crc-catalog.spec | 17 +++++++++-------- rust2rpm.toml | 2 ++ sources | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index e875fd7..5c6581e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /crc-catalog-2.0.1.crate /crc-catalog-2.1.0.crate /crc-catalog-2.2.0.crate +/crc-catalog-2.4.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 3444472..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-crc-catalog - -The rust-crc-catalog package diff --git a/rust-crc-catalog.spec b/rust-crc-catalog.spec index 07f35f7..5735994 100644 --- a/rust-crc-catalog.spec +++ b/rust-crc-catalog.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate crc-catalog Name: rust-crc-catalog -Version: 2.2.0 +Version: 2.4.0 Release: %autorelease Summary: Catalog of CRC algorithms expressed as simple structs @@ -13,11 +13,12 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/crc-catalog Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Catalog of CRC algorithms (generated from http://reveng.sourceforge.net/crc- -catalogue) expressed as simple Rust structs.} +Catalog of CRC algorithms (generated from +http://reveng.sourceforge.net/crc-catalogue) expressed as simple Rust +structs.} %description %{_description} @@ -31,8 +32,8 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license %{crate_instdir}/LICENSE-APACHE -%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/LICENSES/Apache-2.0.txt +%license %{crate_instdir}/LICENSES/MIT.txt %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -49,7 +50,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..14e58f5 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Catalog of CRC algorithms expressed as simple structs" diff --git a/sources b/sources index 0b1f7e7..1190933 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (crc-catalog-2.2.0.crate) = 9fcd42c44c66798c97ed36b36a902dff6e83a96d86da0f146c0db287ed6a00c8827d6749bfcdd090083bb81103bb2397e388a0e2a21698d65550360a45453396 +SHA512 (crc-catalog-2.4.0.crate) = 25536456fe71c44fd8ec527299339c1d186f6e12f1f90142de60eabce337d836c2497ddd6307473b57a6cc720cfc8e29b059f378c70b8165bc171420ccb40a29