commit 1cb84ba49fae428436cab42857dbfd43342a88b3 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:50:26 2024 +0300 import rust-half-2.4.1-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ac40bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/half-2.4.1.crate diff --git a/.rust-half.metadata b/.rust-half.metadata new file mode 100644 index 0000000..297306a --- /dev/null +++ b/.rust-half.metadata @@ -0,0 +1 @@ +f716e82b42119113e1f60e7fc81b554146eb407b SOURCES/half-2.4.1.crate diff --git a/SOURCES/half-fix-metadata-auto.diff b/SOURCES/half-fix-metadata-auto.diff new file mode 100644 index 0000000..54a64eb --- /dev/null +++ b/SOURCES/half-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- half-2.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ half-2.4.1/Cargo.toml 2024-09-15T05:57:07.275924+00:00 +@@ -111,5 +111,3 @@ + std = ["alloc"] + use-intrinsics = [] + +-[target."cfg(target_arch = \"spirv\")".dependencies.crunchy] +-version = "0.2.2" diff --git a/SOURCES/half-fix-metadata.diff b/SOURCES/half-fix-metadata.diff new file mode 100644 index 0000000..85198a4 --- /dev/null +++ b/SOURCES/half-fix-metadata.diff @@ -0,0 +1,16 @@ +--- half-2.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ half-2.4.1/Cargo.toml 2024-09-15T05:57:16.266047+00:00 +@@ -82,12 +82,9 @@ + default-features = false + + [dependencies.zerocopy] +-version = "0.6.0" ++version = "0.7.0" + optional = true + default-features = false +- +-[dev-dependencies.criterion] +-version = "0.4.0" + + [dev-dependencies.crunchy] + version = "0.2.2" diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..46d1af0 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "Half-precision floating point f16 and bf16 types for Rust" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", + "allow current releases of zerocopy (0.7.x): https://github.com/starkat99/half-rs/pull/114", +] + diff --git a/SPECS/rust-half.spec b/SPECS/rust-half.spec new file mode 100644 index 0000000..a9a3c70 --- /dev/null +++ b/SPECS/rust-half.spec @@ -0,0 +1,280 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate half + +Name: rust-half +Version: 2.4.1 +Release: %autorelease +Summary: Half-precision floating point f16 and bf16 types for Rust + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/half +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: half-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +# * allow current releases of zerocopy (0.7.x): +# https://github.com/starkat99/half-rs/pull/114 +Patch: half-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Half-precision floating point f16 and bf16 types for Rust implementing +the IEEE 754-2008 standard binary16 and bfloat16 types.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +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 %{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}+num-traits-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+num-traits-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+rand_distr-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand_distr-devel %{_description} + +This package contains library source intended for building other packages which +use the "rand_distr" feature of the "%{crate}" crate. + +%files -n %{name}+rand_distr-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rkyv-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +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. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+use-intrinsics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use-intrinsics-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+zerocopy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zerocopy-devel %{_description} + +This package contains library source intended for building other packages which +use the "zerocopy" feature of the "%{crate}" crate. + +%files -n %{name}+zerocopy-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 2.4.1-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sun Sep 15 2024 Benjamin A. Beasley - 2.4.1-3 +- Allow current releases of zerocopy (0.7.x) + +* Fri Jul 19 2024 Fedora Release Engineering - 2.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Apr 16 2024 Fabio Valentini - 2.4.1-1 +- Update to version 2.4.1; Fixes RHBZ#2273804 + +* Fri Mar 08 2024 Fabio Valentini - 2.4.0-1 +- Update to version 2.4.0; Fixes RHBZ#2265959 + +* Tue Jan 23 2024 Fabio Valentini - 2.3.1-2 +- Skip tests that fail with Rust 1.75+ when built in release mode + +* Sat Oct 14 2023 Fabio Valentini - 2.3.1-1 +- Update to version 2.3.1; Fixes RHBZ#2099493 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.8.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 07 2023 Fabio Valentini - 1.8.2-5 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Nov 06 2021 Fabio Valentini - 1.8.2-1 +- Update to version 1.8.2; Fixes RHBZ#2013879 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 17 09:38:37 CET 2021 Igor Raits - 1.7.1-1 +- Update to 1.7.1 (Fixes: RHBZ#1917105) + +* Wed Jul 29 2020 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 10 14:26:13 CEST 2020 Igor Raits - 1.6.0-1 +- Update to 1.6.0 + +* Wed Mar 04 2020 Josh Stone - 1.5.0-1 +- Update to 1.5.0 + +* Mon Feb 10 2020 Josh Stone - 1.4.1-1 +- Update to 1.4.1 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Oct 13 11:15:06 CEST 2019 Igor Gnatenko - 1.4.0-1 +- Update to 1.4.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Jun 19 23:55:52 CEST 2019 Igor Gnatenko - 1.3.0-4 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Nov 10 2018 Igor Gnatenko - 1.3.0-2 +- Adapt to new packaging + +* Wed Oct 03 2018 Josh Stone - 1.3.0-1 +- Update to 1.3.0 + +* Sat Sep 08 2018 Igor Gnatenko - 1.2.0-1 +- Initial package + +## END: Generated by rpmautospec