From dac519d5fdcd75481dec7d910280a10652e7a592 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 25 May 2022 16:56:48 +0200 Subject: [PATCH] Update to version 0.4.6; Fixes RHBZ#2071207 --- .gitignore | 1 + rust-slab.spec | 38 ++++++++++++++++++-------------------- sources | 2 +- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index de58b4b..18574b5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /slab-0.4.3.crate /slab-0.4.4.crate /slab-0.4.5.crate +/slab-0.4.6.crate diff --git a/rust-slab.spec b/rust-slab.spec index d61a43f..495c3ce 100644 --- a/rust-slab.spec +++ b/rust-slab.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate slab Name: rust-%{crate} -Version: 0.4.5 +Version: 0.4.6 Release: %autorelease Summary: Pre-allocated storage for a uniform data type @@ -15,11 +15,8 @@ URL: https://crates.io/crates/slab Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Pre-allocated storage for a uniform data type.} @@ -32,13 +29,14 @@ 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 -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +44,11 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -58,11 +56,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -70,11 +68,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index d67277c..8ca6e40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (slab-0.4.5.crate) = 9ab2db11b5da437148486a7da44f06eae2572a735764711145738f9da66b1ccbb8b974ebe3600d1ff7a6ddf07d1fa9dd04c9207c4ba54eaa8311c41d317182ca +SHA512 (slab-0.4.6.crate) = 788837db210be63579eccf12d96fcaa3280c7515bedebe3040a71ed27d013430815ebc74acc06280daf22c0b16871bad210981d32615c26cb1da344b4b0d9488