From da0913ed7b40c686b634acee511469a7f59b8a18 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 12 May 2022 15:23:57 +0200 Subject: [PATCH] Update to version 0.4.1; Fixes RHBZ#2080527 --- .gitignore | 1 + rust-num-complex.spec | 63 +++++++++++++++++++++++++------------------ sources | 2 +- 3 files changed, 39 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 8f08da6..5b35619 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /num-complex-0.3.0.crate /num-complex-0.3.1.crate /num-complex-0.4.0.crate +/num-complex-0.4.1.crate diff --git a/rust-num-complex.spec b/rust-num-complex.spec index f2fc754..1e140e5 100644 --- a/rust-num-complex.spec +++ b/rust-num-complex.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate num-complex Name: rust-%{crate} -Version: 0.4.0 +Version: 0.4.1 Release: %autorelease Summary: Complex numbers implementation for Rust @@ -15,11 +15,8 @@ URL: https://crates.io/crates/num-complex Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Complex 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,23 @@ 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}+bytemuck-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytemuck-devel %{_description} + +This package contains library source intended for building other packages which +use the "bytemuck" feature of the "%{crate}" crate. + +%files -n %{name}+bytemuck-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libm-devel Summary: %{summary} @@ -58,11 +69,11 @@ BuildArch: noarch %description -n %{name}+libm-devel %{_description} -This package contains library source intended for building other packages -which use "libm" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "libm" feature of the "%{crate}" crate. %files -n %{name}+libm-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand-devel Summary: %{summary} @@ -70,11 +81,11 @@ BuildArch: noarch %description -n %{name}+rand-devel %{_description} -This package contains library source intended for building other packages -which use "rand" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rand" feature of the "%{crate}" crate. %files -n %{name}+rand-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -82,11 +93,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 +105,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 7785ba0..32a3b81 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (num-complex-0.4.0.crate) = ececfb4ecd82acdb038322ffcb431a09c271b33d3f028f90577f585289251c38ba425d67413815442cd5c2daba821ac9b3b45b09122b1ca2cb7d35f45dd9d2d8 +SHA512 (num-complex-0.4.1.crate) = 7d6a5b5d70c0558d7dc305b20dbdccb48351935c73832c8de96b48a7843e9cf55da1a036ddadafc072c43ddcd3f4dcfca38e1660c1e3178d9835310ab6e8d40f