From af9503eab0cf3a59f95c0436b26db538283c8648 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 25 Sep 2024 19:33:41 -0600 Subject: [PATCH] Update to 2.5.0 --- .gitignore | 1 + .rust2rpm.conf | 3 --- rust-crc-any.spec | 30 ++++++++++++++++++++---------- sources | 2 +- 4 files changed, 22 insertions(+), 14 deletions(-) delete mode 100644 .rust2rpm.conf diff --git a/.gitignore b/.gitignore index 803cd40..e92f138 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /crc-any-2.4.0.crate /crc-any-2.4.1.crate /crc-any-2.4.2.crate +/crc-any-2.5.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf deleted file mode 100644 index bb9bde1..0000000 --- a/.rust2rpm.conf +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] -unwanted-features = - heapless diff --git a/rust-crc-any.spec b/rust-crc-any.spec index 9fd3aa0..5a4d15b 100644 --- a/rust-crc-any.spec +++ b/rust-crc-any.spec @@ -1,26 +1,24 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate crc-any -Name: rust-%{crate} -Version: 2.4.2 +Name: rust-crc-any +Version: 2.5.0 Release: %autorelease Summary: Compute CRC values -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/crc-any Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -To compute CRC values by providing the length of bits, expression, reflection, -an initial value and a final xor value. It has many built-in CRC functions.} +To compute CRC values by providing the length of bits, expression, +reflection, an initial value and a final xor value. It has many built-in +CRC functions.} %description %{_description} @@ -86,6 +84,18 @@ use the "development" feature of the "%{crate}" crate. %files -n %{name}+development-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+heapless-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+heapless-devel %{_description} + +This package contains library source intended for building other packages which +use the "heapless" feature of the "%{crate}" crate. + +%files -n %{name}+heapless-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -99,7 +109,7 @@ use the "std" 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 8c44375..4b622a5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (crc-any-2.4.2.crate) = bf4f073c9c707be644ab045c654b0052da53c3c4e768be6ae468cd35beaeb7c55b276dfb061f2548403609b83bbacd478ac185ba84922ab0bb854164deaaafcb +SHA512 (crc-any-2.5.0.crate) = 5e43c3a6d50c94b1ee624b6c6366196704b40c35a0950fc54a97c5d16fbd74a895245bd042fc3b86db6fddf804effc5c3628847e0a54b0e2b53f3259fa1ec75d