diff --git a/README.md b/README.md deleted file mode 100644 index 4db0919..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rle-decode-fast - -The rust-rle-decode-fast package \ No newline at end of file diff --git a/rle-decode-fast-fix-metadata.diff b/rle-decode-fast-fix-metadata.diff index 39a2613..f9038fd 100644 --- a/rle-decode-fast-fix-metadata.diff +++ b/rle-decode-fast-fix-metadata.diff @@ -1,5 +1,5 @@ --- 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 ++++ rle-decode-fast-1.0.3/Cargo.toml 2023-08-05T22:05:22.977258+00:00 @@ -19,15 +19,5 @@ license = "MIT OR Apache-2.0" repository = "https://github.com/WanzenBug/rle-decode-helper" diff --git a/rust-rle-decode-fast.spec b/rust-rle-decode-fast.spec index 18a747e..142fd80 100644 --- a/rust-rle-decode-fast.spec +++ b/rust-rle-decode-fast.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rle-decode-fast -Name: rust-%{crate} +Name: rust-rle-decode-fast Version: 1.0.3 Release: %autorelease Summary: Fast decoder for Run-Length Encoded data in Rust -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-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 +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dependency to speed up builds +Patch: rle-decode-fast-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Fast decoder for Run-Length Encoded data in Rust} @@ -37,9 +34,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +49,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1