From 040dbf3b3219274b3c269fb0fa76737eb5fa197d Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 19 Oct 2023 18:48:32 +0200 Subject: [PATCH] Update to version 0.4.2 (rhbz#2244930) --- .gitignore | 1 + rust-str_indices.spec | 10 ++++++---- sources | 1 + str_indices-fix-metadata.diff | 6 +++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index b0759bc..f63d32e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /str_indices-0.4.1.crate +/str_indices-0.4.2.crate diff --git a/rust-str_indices.spec b/rust-str_indices.spec index b8559b2..fd4ab02 100644 --- a/rust-str_indices.spec +++ b/rust-str_indices.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate str_indices Name: rust-str_indices -Version: 0.4.1 +Version: 0.4.2 Release: %autorelease Summary: Count and convert between indexing schemes on string slices @@ -16,7 +16,7 @@ Source: %{crates_source} # * Drop benchmark dependency Patch: str_indices-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Count and convert between indexing schemes on string slices.} @@ -64,8 +64,10 @@ use the "simd" 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 +# See: https://github.com/cessen/str_indices/pull/22 +chmod -x benches/all.rs %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index bd7c86f..20d940d 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (str_indices-0.4.1.crate) = 3ef64bde04a57e5946854f7b2adc7fb8cd01d885046b0b31d02f2155e3c3b29d2004d55cf69d54c3bbba661487a9dfd351a41144603838cc15391e3dcacf69a0 +SHA512 (str_indices-0.4.2.crate) = 0ad9ef81d44b634e33210755a197b1740d87bba5b25f3c886b34c68a04682f8cf715e0cffc81984f698bd6df42c39be700bd5f08f406162d3373322208df4ffd diff --git a/str_indices-fix-metadata.diff b/str_indices-fix-metadata.diff index df5d312..98757cd 100644 --- a/str_indices-fix-metadata.diff +++ b/str_indices-fix-metadata.diff @@ -1,6 +1,6 @@ ---- str_indices-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ str_indices-0.4.1/Cargo.toml 2023-10-06T20:21:48.059823+00:00 -@@ -38,10 +38,6 @@ +--- str_indices-0.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ str_indices-0.4.2/Cargo.toml 2023-10-19T16:42:54.958020+00:00 +@@ -40,10 +40,6 @@ [dependencies]