From 6a85b27a7aac51396bd2b8e83d937aa8d5e0875e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 7 Jun 2023 22:12:39 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- half-fix-metadata.diff | 2 +- rust-half.spec | 81 ++++++++++++++++++++---------------------- rust2rpm.conf | 2 ++ 4 files changed, 41 insertions(+), 47 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.conf diff --git a/README.md b/README.md deleted file mode 100644 index 885f4a9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-half - -The rust-half package \ No newline at end of file diff --git a/half-fix-metadata.diff b/half-fix-metadata.diff index e40fd61..5cca1a6 100644 --- a/half-fix-metadata.diff +++ b/half-fix-metadata.diff @@ -1,5 +1,5 @@ --- half-1.8.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ half-1.8.2/Cargo.toml 2021-11-06T13:30:08.723428+00:00 ++++ half-1.8.2/Cargo.toml 2023-06-07T20:10:17.220037+00:00 @@ -46,13 +46,6 @@ optional = true default-features = false diff --git a/rust-half.spec b/rust-half.spec index 3547e49..b2a0aa4 100644 --- a/rust-half.spec +++ b/rust-half.spec @@ -1,33 +1,27 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate half -Name: rust-%{crate} +Name: rust-half Version: 1.8.2 Release: %autorelease Summary: Half-precision floating point f16 and bf16 types 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/half Source: %{crates_source} -# Initial patched metadata +# Manually created patch for downstream crate metadata changes # * drop unused zerocopy feature (missing dependencies) # * drop unused benchmark-only criterion dependency to speed up builds -Patch0: half-fix-metadata.diff +Patch: half-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Half-precision floating point f16 and bf16 types for Rust implementing the IEEE -754-2008 standard binary16 and bfloat16 types.} +Half-precision floating point f16 and bf16 types for Rust implementing +the IEEE 754-2008 standard binary16 and bfloat16 types.} %description %{_description} @@ -37,13 +31,14 @@ 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 LICENSES/MIT.txt LICENSES/Apache-2.0.txt -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,11 +46,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} @@ -63,11 +58,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}+bytemuck-devel Summary: %{summary} @@ -75,11 +70,11 @@ BuildArch: noarch %description -n %{name}+bytemuck-devel %{_description} -This package contains library source intended for building other packages -which use "bytemuck" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-traits-devel Summary: %{summary} @@ -87,11 +82,11 @@ BuildArch: noarch %description -n %{name}+num-traits-devel %{_description} -This package contains library source intended for building other packages -which use "num-traits" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "num-traits" feature of the "%{crate}" crate. %files -n %{name}+num-traits-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -99,11 +94,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}+serialize-devel Summary: %{summary} @@ -111,11 +106,11 @@ BuildArch: noarch %description -n %{name}+serialize-devel %{_description} -This package contains library source intended for building other packages -which use "serialize" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serialize" feature of the "%{crate}" crate. %files -n %{name}+serialize-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -123,11 +118,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 %package -n %{name}+use-intrinsics-devel Summary: %{summary} @@ -135,11 +130,11 @@ BuildArch: noarch %description -n %{name}+use-intrinsics-devel %{_description} -This package contains library source intended for building other packages -which use "use-intrinsics" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "use-intrinsics" feature of the "%{crate}" crate. %files -n %{name}+use-intrinsics-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..54157da --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Half-precision floating point f16 and bf16 types for Rust