diff --git a/.gitignore b/.gitignore index 2361d25..22bd19c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /miniz_oxide-0.3.7.crate /miniz_oxide-0.4.3.crate /miniz_oxide-0.4.4.crate +/miniz_oxide-0.5.3.crate diff --git a/rust-miniz_oxide.spec b/rust-miniz_oxide.spec index f6d5f88..e99008d 100644 --- a/rust-miniz_oxide.spec +++ b/rust-miniz_oxide.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate miniz_oxide -Name: rust-%{crate} -Version: 0.4.4 +Name: rust-miniz_oxide +Version: 0.5.3 Release: %autorelease Summary: DEFLATE compression and decompression library rewritten in Rust based on miniz -# Upstream license specification: MIT OR Zlib OR Apache-2.0 -License: MIT or zlib or ASL 2.0 +License: MIT OR Zlib OR Apache-2.0 URL: https://crates.io/crates/miniz_oxide Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: DEFLATE compression and decompression library rewritten in Rust based on miniz.} @@ -32,13 +28,16 @@ BuildArch: noarch %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 -%license LICENSE LICENSE-APACHE.md LICENSE-MIT.md LICENSE-ZLIB.md -%doc Readme.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%license %{crate_instdir}/LICENSE-APACHE.md +%license %{crate_instdir}/LICENSE-MIT.md +%license %{crate_instdir}/LICENSE-ZLIB.md +%doc %{crate_instdir}/Readme.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,28 +45,14 @@ 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 - -%package -n %{name}+no_extern_crate_alloc-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+no_extern_crate_alloc-devel %{_description} - -This package contains library source intended for building other packages -which use "no_extern_crate_alloc" feature of "%{crate}" crate. - -%files -n %{name}+no_extern_crate_alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 -# remove executable bit from build.rs, which breaks brp-mangle-shebangs -chmod -x build.rs %cargo_prep %generate_buildrequires diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 79% rename from .rust2rpm.conf rename to rust2rpm.conf index 86bc300..f49a81e 100644 --- a/.rust2rpm.conf +++ b/rust2rpm.conf @@ -3,4 +3,6 @@ unwanted-features = alloc compiler_builtins core + simd-adler32 rustc-dep-of-std + simd diff --git a/sources b/sources index 7488687..badca0e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (miniz_oxide-0.4.4.crate) = 2c6e484a8a53c6b1fb84e2bf9518919e6e5ba84e7716c0bb8e33b53dc0d3432c35f28f19c18368e27c94f6df66b7674f514ef889cf1b19f546bedfb6e6ebaf6f +SHA512 (miniz_oxide-0.5.3.crate) = cc2971ee2a2e891cdb05c1942f533b11a557199421910266ec2e4848a16dfe6882f1c08843035443935d695882720402356b4df4a50ed131a8f5fcc0591a72c5