From f8765d3745feeee0f210ad63709da75ac00cc8fd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 13 Jul 2022 15:32:12 +0200 Subject: [PATCH] Update to version 1.7.0; Fixes RHBZ#2102427 --- .gitignore | 1 + rust-either.spec | 33 ++++++++++++++++----------------- sources | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 505fc36..2d55825 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /either-1.5.3.crate /either-1.6.0.crate /either-1.6.1.crate +/either-1.7.0.crate diff --git a/rust-either.spec b/rust-either.spec index f4be5a8..6b0da46 100644 --- a/rust-either.spec +++ b/rust-either.spec @@ -1,13 +1,13 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate either Name: rust-%{crate} -Version: 1.6.1 +Version: 1.7.0 Release: %autorelease -Summary: Enum `Either` is a general purpose sum type with two cases +Summary: General purpose sum type with two cases # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 @@ -15,11 +15,8 @@ URL: https://crates.io/crates/either Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Enum `Either` with variants `Left` and `Right` is a general purpose sum type @@ -34,12 +31,14 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README-crates.io.md README.rst -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README-crates.io.md +%doc %{crate_instdir}/README.rst +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,10 +47,10 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +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} @@ -60,10 +59,10 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which -use "the serde" feature of the "%{crate}" crate. +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}+use_std-devel Summary: %{summary} @@ -72,10 +71,10 @@ BuildArch: noarch %description -n %{name}+use_std-devel %{_description} This package contains library source intended for building other packages which -use "the use_std" feature of the "%{crate}" crate. +use the "use_std" feature of the "%{crate}" crate. %files -n %{name}+use_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 1529d0f..310c797 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (either-1.6.1.crate) = 4bfe56920e30cbc8eb4f90162db618f7dca653b42db35ab6a7045d3fd9a24ceb1778b1f79613850bdb1a87ad3794fa0d73015e46c48d513f368d8c3776fc9ddf +SHA512 (either-1.7.0.crate) = 894bf3980def07848a2911734c02eb0c5c5d2ff3ab7656413d2acfd164d120a7c075e0a5f3fb95243b8bda0257a5f457117d5c6eafc146f3f6aaf6c6fbc4cf33