From c9e9f9fa1292d4c09b03e1f9128a8ecd40d87492 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 25 May 2023 13:09:29 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- rust-num.spec | 72 ++++++++++++++++++++++++--------------------------- rust2rpm.conf | 2 ++ 3 files changed, 36 insertions(+), 41 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.conf diff --git a/README.md b/README.md deleted file mode 100644 index b62c36d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-num - -The rust-num package \ No newline at end of file diff --git a/rust-num.spec b/rust-num.spec index 802f60c..dca79db 100644 --- a/rust-num.spec +++ b/rust-num.spec @@ -1,29 +1,23 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate num -Name: rust-%{crate} +Name: rust-num Version: 0.4.0 Release: %autorelease Summary: Collection of numeric types and traits for Rust -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/num Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Collection of numeric types and traits for Rust, including bigint, complex, -rational, range iterators, generic integers, and more!.} +A collection of numeric types and traits for Rust, including bigint, +complex, rational, range iterators, generic integers, and more!.} %description %{_description} @@ -33,13 +27,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} @@ -47,11 +43,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} @@ -59,11 +55,11 @@ 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}+libm-devel Summary: %{summary} @@ -71,11 +67,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}+num-bigint-devel Summary: %{summary} @@ -83,11 +79,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}+rand-devel Summary: %{summary} @@ -95,11 +91,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} @@ -107,11 +103,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} @@ -119,11 +115,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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..8d3a2d0 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Collection of numeric types and traits for Rust