diff --git a/.gitignore b/.gitignore index c5871a8..6710b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /zstd-0.8.0+zstd.1.4.9.crate /zstd-0.9.0+zstd.1.5.0.crate /zstd-0.9.2+zstd.1.5.1.crate +/zstd-0.10.0+zstd.1.5.2.crate diff --git a/rust-zstd.spec b/rust-zstd.spec index 35ee455..f83c9e6 100644 --- a/rust-zstd.spec +++ b/rust-zstd.spec @@ -1,13 +1,13 @@ -# Generated by rust2rpm 20 -# Tests require files not included in crate +# Generated by rust2rpm 21 +# * tests require files that are not included in published crates %bcond_with check %global debug_package %{nil} %global crate zstd -%global upstream_version 0.9.2+zstd.1.5.1 +%global upstream_version 0.10.0+zstd.1.5.2 Name: rust-%{crate} -Version: 0.9.2 +Version: 0.10.0 Release: %autorelease Summary: Binding for the zstd compression library @@ -23,7 +23,7 @@ Patch0: zstd-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Binding for the zstd compression library.} @@ -40,9 +40,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc Readme.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/Readme.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -54,7 +54,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} @@ -66,7 +66,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} @@ -78,7 +78,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} @@ -90,7 +90,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} @@ -102,7 +114,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} @@ -114,7 +126,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} @@ -126,7 +138,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} @@ -138,7 +150,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}+thin-devel Summary: %{summary} @@ -150,7 +162,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}+wasm-devel Summary: %{summary} @@ -162,7 +174,7 @@ This package contains library source intended for building other packages which use the "wasm" feature of the "%{crate}" crate. %files -n %{name}+wasm-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zstdmt-devel Summary: %{summary} @@ -174,7 +186,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 7e9f2b4..b194127 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstd-0.9.2+zstd.1.5.1.crate) = 44bbcf78aa75ba77c797bcff5fe738c97ab444fbecceaf302a2f40ca74761bfa13d2a74bbeffa0d8822688eeabdbfb77cbf835a7b4854aef3b5aedc7f4cea571 +SHA512 (zstd-0.10.0+zstd.1.5.2.crate) = b6559710b10da68fd0cb242029145c2176d9bcbf5aa04c0d035341a27a6cc10038c0872d0df3a8fb94f0be573dfec65015032f583a93408da20377cef037746c diff --git a/zstd-fix-metadata.diff b/zstd-fix-metadata.diff index cd47e36..3e40040 100644 --- a/zstd-fix-metadata.diff +++ b/zstd-fix-metadata.diff @@ -1,11 +1,11 @@ ---- zstd-0.9.2+zstd.1.5.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ zstd-0.9.2+zstd.1.5.1/Cargo.toml 2022-01-07T19:00:51.739051+00:00 +--- zstd-0.10.0+zstd.1.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zstd-0.10.0+zstd.1.5.2/Cargo.toml 2022-04-12T10:15:44.434153+00:00 @@ -12,9 +12,9 @@ [package] edition = "2018" name = "zstd" --version = "0.9.2+zstd.1.5.1" -+version = "0.9.2" +-version = "0.10.0+zstd.1.5.2" ++version = "0.10.0" authors = ["Alexandre Bury "] -exclude = ["assets/*.zst"] +exclude = ["/assets/", "/appveyor.yml", "/rustfmt.toml"] @@ -18,6 +18,6 @@ debug = ["zstd-safe/debug"] -default = ["legacy", "arrays"] +default = ["legacy", "arrays", "bindgen", "pkg-config"] + doc-cfg = [] experimental = ["zstd-safe/experimental"] legacy = ["zstd-safe/legacy"] - no_asm = ["zstd-safe/no_asm"]