From 3879c2e62c10cc761405f23ac13b34496f9abbd3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 15 Jul 2022 13:37:00 +0200 Subject: [PATCH] Update to version 0.4.1; Fixes RHBZ#2100673 --- .gitignore | 1 + rust-num-rational.spec | 51 +++++++++++++++++++++--------------------- sources | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 9f6d676..b4bf0a6 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /num-rational-0.3.1.crate /num-rational-0.3.2.crate /num-rational-0.4.0.crate +/num-rational-0.4.1.crate diff --git a/rust-num-rational.spec b/rust-num-rational.spec index a0dbb70..95de2fb 100644 --- a/rust-num-rational.spec +++ b/rust-num-rational.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate num-rational Name: rust-%{crate} -Version: 0.4.0 +Version: 0.4.1 Release: %autorelease Summary: Rational numbers implementation for Rust @@ -15,11 +15,8 @@ URL: https://crates.io/crates/num-rational Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Rational numbers implementation for Rust.} @@ -32,13 +29,15 @@ 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-MIT LICENSE-APACHE -%doc README.md RELEASES.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASES.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +45,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}+num-bigint-devel Summary: %{summary} @@ -58,11 +57,11 @@ BuildArch: noarch %description -n %{name}+num-bigint-devel %{_description} -This package contains library source intended for building other packages -which use "num-bigint" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "num-bigint" feature of the "%{crate}" crate. %files -n %{name}+num-bigint-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-bigint-std-devel Summary: %{summary} @@ -70,11 +69,11 @@ BuildArch: noarch %description -n %{name}+num-bigint-std-devel %{_description} -This package contains library source intended for building other packages -which use "num-bigint-std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "num-bigint-std" feature of the "%{crate}" crate. %files -n %{name}+num-bigint-std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -82,11 +81,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} @@ -94,11 +93,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 ad82866..e20b0ce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (num-rational-0.4.0.crate) = 96b5fd3d407210e6e81aac72b542be5c5acf0f1132097e4b82a65042fb2bd98591e12e5153b96b38c71f69e613e295542d23dc73a98b08ffd49d9ef2a062eded +SHA512 (num-rational-0.4.1.crate) = a7547ca663543e9da9e18dd079762cde371b85d55874a54d6b343ba775a9373392c85cebad511c53b5af5db298bd5d57ccef6161c1c28587a6c9fa2c5962a0bd