diff --git a/.gitignore b/.gitignore index 75a94a5..c20b3d1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /miniz_oxide-0.3.5.crate /miniz_oxide-0.3.6.crate /miniz_oxide-0.3.7.crate +/miniz_oxide-0.4.3.crate diff --git a/miniz_oxide-fix-metadata.diff b/miniz_oxide-fix-metadata.diff new file mode 100644 index 0000000..b060170 --- /dev/null +++ b/miniz_oxide-fix-metadata.diff @@ -0,0 +1,25 @@ +--- miniz_oxide-0.4.3/Cargo.toml 2020-10-07T15:20:30+00:00 ++++ miniz_oxide-0.4.3/Cargo.toml 2020-10-26T19:10:01.960509+00:00 +@@ -32,22 +32,5 @@ + version = "0.2.3" + default-features = false + +-[dependencies.alloc] +-version = "1.0.0" +-optional = true +-package = "rustc-std-workspace-alloc" +- +-[dependencies.compiler_builtins] +-version = "0.1.2" +-optional = true +- +-[dependencies.core] +-version = "1.0.0" +-optional = true +-package = "rustc-std-workspace-core" + [build-dependencies.autocfg] + version = "1.0" +- +-[features] +-no_extern_crate_alloc = [] +-rustc-dep-of-std = ["core", "alloc", "compiler_builtins", "adler/rustc-dep-of-std"] diff --git a/rust-miniz_oxide.spec b/rust-miniz_oxide.spec index 252541e..7eb1fda 100644 --- a/rust-miniz_oxide.spec +++ b/rust-miniz_oxide.spec @@ -1,19 +1,21 @@ # Generated by rust2rpm 13 -# * miniz.c is not included in distribution -%bcond_with check +%bcond_without check %global debug_package %{nil} %global crate miniz_oxide Name: rust-%{crate} -Version: 0.3.7 -Release: 2%{?dist} +Version: 0.4.3 +Release: 1%{?dist} Summary: DEFLATE compression and decompression library rewritten in Rust based on miniz -# Upstream license specification: MIT -License: MIT +# Upstream license specification: MIT OR Zlib OR Apache-2.0 +License: MIT or zlib or ASL 2.0 URL: https://crates.io/crates/miniz_oxide Source: %{crates_source} +# Initial patched metadata +# * remove dependencies on compiler internals +Patch0: miniz_oxide-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -37,7 +39,7 @@ This package contains library source intended for building other packages which use "%{crate}" crate. %files devel -%license LICENSE +%license LICENSE LICENSE-APACHE.md LICENSE-MIT.md LICENSE-ZLIB.md %doc Readme.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ @@ -55,6 +57,8 @@ which use "default" feature of "%{crate}" crate. %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 @@ -72,6 +76,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Mon Oct 26 2020 Fabio Valentini - 0.4.3-1 +- Update to version 0.4.3. + * Wed Jul 29 2020 Fedora Release Engineering - 0.3.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index ee5b551..c1d9a1d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (miniz_oxide-0.3.7.crate) = d4eff239f8d6e947b94619e80fe03ed32aabd1a6393f63145d70ed7f08c51c45c7261d8157bf61c78d1637ea1f71ef15f9813ec733efd8afe6aa14810888718e +SHA512 (miniz_oxide-0.4.3.crate) = 8c0e2b3a585a0986a61977d4459adb1a7c396ab53f4f688dcbeb2a09c60878b0423f54fd1879c190f5c64690a2473ed2a07d4162a650f6c39f402f6b27e863b7