From 9c5bd73fe848e62d5ba6e6cf6b7a7c4ea6805208 Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Tue, 2 May 2023 06:57:34 -0700 Subject: [PATCH] Update to 1.0.6 --- .gitignore | 1 + rust-slotmap.spec | 59 ++++++++++++++++++++++++++--------------------- rust2rpm.conf | 2 ++ sources | 2 +- 4 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 rust2rpm.conf diff --git a/.gitignore b/.gitignore index 0d4c14e..1a7115e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /slotmap-0.3.0.crate /slotmap-0.4.0.crate +/slotmap-1.0.6.crate diff --git a/rust-slotmap.spec b/rust-slotmap.spec index 80f555f..c24c06e 100644 --- a/rust-slotmap.spec +++ b/rust-slotmap.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 10 -%bcond_with check +# Generated by rust2rpm 24 +%bcond_without check %global debug_package %{nil} %global crate slotmap -Name: rust-%{crate} -Version: 0.4.0 +Name: rust-slotmap +Version: 1.0.6 Release: %autorelease Summary: Slotmap data structure -# Upstream license specification: Zlib -License: zlib +License: Zlib URL: https://crates.io/crates/slotmap Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Slotmap data structure.} @@ -32,13 +26,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 RELEASES.md -%{cargo_registry}/%{crate}-%{version}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASES.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +41,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}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -58,11 +53,23 @@ 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}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} @@ -70,11 +77,11 @@ BuildArch: noarch %description -n %{name}+unstable-devel %{_description} -This package contains library source intended for building other packages -which use "unstable" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..c4507d8 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Slotmap data structure diff --git a/sources b/sources index 9a4ef4c..4080100 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (slotmap-0.4.0.crate) = 039fa1edff498b8db274febbeae23e7f1f7d83794572b8009f3da494cbafbff1716deee4fcc7be71d59bc6d94e70ab9aabe262bcd1fb278773012bb1a087cca1 +SHA512 (slotmap-1.0.6.crate) = 1e0fad77d39cf937fbbf32913595e836b9d8067a81e8ad9a6653cdea023f2c8ce511c0216a1222c056e57419cdfd56977af7a6e83a9cc8b5708310a17353b145