From 97c4d14dd762391807aab346aa88d60ec7bc60ea Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 9 Feb 2022 23:31:33 +0100 Subject: [PATCH] Update to version 1.0.3; Fixes RHBZ#2048317 --- .gitignore | 1 + rle-decode-fast-fix-metadata.diff | 18 ++++++++++++++++++ rust-rle-decode-fast.spec | 27 ++++++++++++--------------- sources | 2 +- 4 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 rle-decode-fast-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 08a29ba..17e7197 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rle-decode-fast-1.0.1.crate +/rle-decode-fast-1.0.3.crate diff --git a/rle-decode-fast-fix-metadata.diff b/rle-decode-fast-fix-metadata.diff new file mode 100644 index 0000000..39a2613 --- /dev/null +++ b/rle-decode-fast-fix-metadata.diff @@ -0,0 +1,18 @@ +--- rle-decode-fast-1.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rle-decode-fast-1.0.3/Cargo.toml 2022-02-09T22:27:33.229164+00:00 +@@ -19,15 +19,5 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/WanzenBug/rle-decode-helper" + +-[[bench]] +-name = "bench" +-harness = false +-required-features = ["bench"] +-[dependencies.criterion] +-version = "0.2" +-optional = true +- +-[features] +-bench = ["criterion"] + [badges.maintenance] + status = "deprecated" diff --git a/rust-rle-decode-fast.spec b/rust-rle-decode-fast.spec index f5da04e..18a747e 100644 --- a/rust-rle-decode-fast.spec +++ b/rust-rle-decode-fast.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate rle-decode-fast Name: rust-%{crate} -Version: 1.0.1 +Version: 1.0.3 Release: %autorelease Summary: Fast decoder for Run-Length Encoded data in Rust @@ -13,35 +13,32 @@ Summary: Fast decoder for Run-Length Encoded data in Rust License: MIT or ASL 2.0 URL: https://crates.io/crates/rle-decode-fast Source: %{crates_source} +# Initial patched metadata +# * remove unused benchmark feature and criterion dependency +Patch0: rle-decode-fast-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging %global _description %{expand: -Fastest way to implement any kind of decoding for Run Length Encoded data in -Rust. -Writing a fast decoder that is also safe can be quite challenging, so -this crate is here to save you the hassle of maintaining and testing your own -implementation.} +Fast decoder for Run-Length Encoded data in Rust} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch +Provides: deprecated() %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%doc README.md %license LICENSE-APACHE LICENSE-MIT +%doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -50,8 +47,8 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index 9eae937..0b87c84 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rle-decode-fast-1.0.1.crate) = 38b3565279b134dcb3bcba001b081ada73f36e4107bdee935036631b740b6e1d1f767e3965ad414e38c8606abc1733f898062bce01b8c19234f204adcbe05a4a +SHA512 (rle-decode-fast-1.0.3.crate) = f647cfd9ae0bbaca4a189cd1f8d1f8531f6dc0ffa1fd296c75cfe405fc9060e25be74581558a9195364ea90e32c7ccd60e066d21704cae836d41606b5799301a