diff --git a/.gitignore b/.gitignore index 505fc36..5332861 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ /either-1.5.3.crate /either-1.6.0.crate /either-1.6.1.crate +/either-1.7.0.crate +/either-1.8.0.crate diff --git a/rust-either.spec b/rust-either.spec index f4be5a8..efff6c1 100644 --- a/rust-either.spec +++ b/rust-either.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate either -Name: rust-%{crate} -Version: 1.6.1 +Name: rust-either +Version: 1.8.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 +License: MIT OR Apache-2.0 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..307c47b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (either-1.6.1.crate) = 4bfe56920e30cbc8eb4f90162db618f7dca653b42db35ab6a7045d3fd9a24ceb1778b1f79613850bdb1a87ad3794fa0d73015e46c48d513f368d8c3776fc9ddf +SHA512 (either-1.8.0.crate) = 5089b218af067b51ee39c085568a1a6f542e8f68b362207bd7126cbcd2b76783cd21cc1517a1d088ce4dad1714be03a3660f50e9498a0bb43a8676cd7ec490d2