From bbb911d4f52e02fcaf1e158272a0bf29d08ac9a5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 28 Feb 2023 15:32:30 +0100 Subject: [PATCH] Update to version 0.5.1; Fixes RHBZ#1943994 --- .gitignore | 1 + rust-wyz.spec | 80 +++++++++++++++++++++++++++++++++++---------------- sources | 2 +- 3 files changed, 57 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 8b7188f..e61b413 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /wyz-0.2.0.crate +/wyz-0.5.1.crate diff --git a/rust-wyz.spec b/rust-wyz.spec index 5b153a3..e6d8cad 100644 --- a/rust-wyz.spec +++ b/rust-wyz.spec @@ -1,26 +1,19 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate wyz -Name: rust-%{crate} -Version: 0.2.0 +Name: rust-wyz +Version: 0.5.1 Release: %autorelease Summary: Myrrlyn’s utility collection -# Upstream license specification: MIT -# https://github.com/myrrlyn/wyz/issues/2 License: MIT URL: https://crates.io/crates/wyz Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Myrrlyn’s utility collection.} @@ -33,11 +26,13 @@ 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 -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE.txt +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +40,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}+alloc-devel Summary: %{summary} @@ -57,11 +52,35 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "alloc" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+garbage-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+garbage-devel %{_description} + +This package contains library source intended for building other packages which +use the "garbage" feature of the "%{crate}" crate. + +%files -n %{name}+garbage-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+once_cell-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+once_cell-devel %{_description} + +This package contains library source intended for building other packages which +use the "once_cell" feature of the "%{crate}" crate. + +%files -n %{name}+once_cell-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -69,11 +88,23 @@ 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 + +%package -n %{name}+typemap-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+typemap-devel %{_description} + +This package contains library source intended for building other packages which +use the "typemap" feature of the "%{crate}" crate. + +%files -n %{name}+typemap-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -90,8 +121,7 @@ which use "std" feature of "%{crate}" crate. %if %{with check} %check -# * doctests seem to be broken with Rust 1.58+ for unknown reasons -%cargo_test -- --lib +%cargo_test %endif %changelog diff --git a/sources b/sources index 5ed0ff6..5a4ad87 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wyz-0.2.0.crate) = 3a16c3e81d3595ddf1e7816e698eb4d07c7455dec579fd5e97b5d8b77e626cda52f3cdaee71e234e5e500a7ac58b9d1d5f12b17264686f3f225d5e5b0d315de7 +SHA512 (wyz-0.5.1.crate) = 15d86c167145c90e3fbabcefd11754fb1cb835896e32d1bb7f4b027e5b2092f5fdbdca4062c129bc38e655cb87c6a3f4e181747ee25d89db5e01fb1fcac18fe9