From 0d9da18259c998c2d53e153aea065f28e8b809c4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 12 Apr 2022 12:49:19 +0200 Subject: [PATCH] Update to version 4.1.4+zstd.1.5.2 --- .gitignore | 1 + rust-zstd-safe.spec | 50 ++++++++++++++++++++++++------------- sources | 2 +- zstd-safe-fix-metadata.diff | 12 ++++----- 4 files changed, 40 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index e9c1bc7..62f7a99 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /zstd-safe-4.0.0+zstd.1.4.9.crate /zstd-safe-4.1.1+zstd.1.5.0.crate /zstd-safe-4.1.3+zstd.1.5.1.crate +/zstd-safe-4.1.4+zstd.1.5.2.crate diff --git a/rust-zstd-safe.spec b/rust-zstd-safe.spec index c1da5ab..0cbd725 100644 --- a/rust-zstd-safe.spec +++ b/rust-zstd-safe.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate zstd-safe -%global upstream_version 4.1.3+zstd.1.5.1 +%global upstream_version 4.1.4+zstd.1.5.2 Name: rust-%{crate} -Version: 4.1.3 +Version: 4.1.4 Release: %autorelease Summary: Safe low-level bindings for the zstd compression library @@ -22,7 +22,7 @@ Patch0: zstd-safe-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Safe low-level bindings for the zstd compression library.} @@ -39,9 +39,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE.Apache-2.0 LICENSE.Mit -%doc Readme.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%license %{crate_instdir}/LICENSE.Apache-2.0 +%license %{crate_instdir}/LICENSE.Mit +%doc %{crate_instdir}/Readme.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -53,7 +55,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 %package -n %{name}+arrays-devel Summary: %{summary} @@ -65,7 +67,7 @@ This package contains library source intended for building other packages which use the "arrays" feature of the "%{crate}" crate. %files -n %{name}+arrays-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bindgen-devel Summary: %{summary} @@ -77,7 +79,7 @@ This package contains library source intended for building other packages which use the "bindgen" feature of the "%{crate}" crate. %files -n %{name}+bindgen-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} @@ -89,7 +91,19 @@ This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+doc-cfg-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+doc-cfg-devel %{_description} + +This package contains library source intended for building other packages which +use the "doc-cfg" feature of the "%{crate}" crate. + +%files -n %{name}+doc-cfg-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+experimental-devel Summary: %{summary} @@ -101,7 +115,7 @@ This package contains library source intended for building other packages which use the "experimental" feature of the "%{crate}" crate. %files -n %{name}+experimental-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+legacy-devel Summary: %{summary} @@ -113,7 +127,7 @@ This package contains library source intended for building other packages which use the "legacy" feature of the "%{crate}" crate. %files -n %{name}+legacy-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+no_asm-devel Summary: %{summary} @@ -125,7 +139,7 @@ This package contains library source intended for building other packages which use the "no_asm" feature of the "%{crate}" crate. %files -n %{name}+no_asm-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pkg-config-devel Summary: %{summary} @@ -137,7 +151,7 @@ This package contains library source intended for building other packages which use the "pkg-config" feature of the "%{crate}" crate. %files -n %{name}+pkg-config-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -149,7 +163,7 @@ This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+thin-devel Summary: %{summary} @@ -161,7 +175,7 @@ This package contains library source intended for building other packages which use the "thin" feature of the "%{crate}" crate. %files -n %{name}+thin-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zstdmt-devel Summary: %{summary} @@ -173,7 +187,7 @@ This package contains library source intended for building other packages which use the "zstdmt" feature of the "%{crate}" crate. %files -n %{name}+zstdmt-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{upstream_version} -p1 diff --git a/sources b/sources index 78914b7..0ece751 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstd-safe-4.1.3+zstd.1.5.1.crate) = e8387d866bd9cd2a4063780b36ec8b45a2c47a2103a1107ae045b17302dcd507d6740fb3681c0fdc786918fbae33b5b68e639308505de31b04b25ac43ba3b594 +SHA512 (zstd-safe-4.1.4+zstd.1.5.2.crate) = 0b9ad154307954b977a990273b11dba3349fffa1a2b3cb89dc233cc20deb6dc0a10bd97d06c3fc5304124320ee8ff607b6d8859ebdaa562365d4baf490fdbcd8 diff --git a/zstd-safe-fix-metadata.diff b/zstd-safe-fix-metadata.diff index bf22cae..6166b30 100644 --- a/zstd-safe-fix-metadata.diff +++ b/zstd-safe-fix-metadata.diff @@ -1,11 +1,11 @@ ---- zstd-safe-4.1.3+zstd.1.5.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ zstd-safe-4.1.3+zstd.1.5.1/Cargo.toml 2022-01-07T18:57:05.074668+00:00 +--- zstd-safe-4.1.4+zstd.1.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zstd-safe-4.1.4+zstd.1.5.2/Cargo.toml 2022-04-12T10:19:58.834888+00:00 @@ -12,7 +12,7 @@ [package] edition = "2018" name = "zstd-safe" --version = "4.1.3+zstd.1.5.1" -+version = "4.1.3" +-version = "4.1.4+zstd.1.5.2" ++version = "4.1.4" authors = ["Alexandre Bury "] build = "build.rs" description = "Safe low-level bindings for the zstd compression library." @@ -15,11 +15,11 @@ repository = "https://github.com/gyscos/zstd-rs" +exclude = ["/update_consts.sh"] [package.metadata.docs.rs] - features = ["experimental", "arrays", "std"] + features = ["experimental", "arrays", "std", "doc-cfg"] [dependencies.libc] @@ -29,6 +30,7 @@ [dependencies.zstd-sys] - version = "=1.6.2" + version = "=1.6.3" default-features = false +features = ["pkg-config", "bindgen"]