diff --git a/base/comps/rust-cmov/rust-cmov.comp.toml b/base/comps/rust-cmov/rust-cmov.comp.toml new file mode 100644 index 00000000000..b49387184b0 --- /dev/null +++ b/base/comps/rust-cmov/rust-cmov.comp.toml @@ -0,0 +1,9 @@ +[components.rust-cmov] +# Pin to Fedora f43 HEAD (cmov 0.5.4); not yet packaged at the distro-default +# snapshot date. +spec = { type = "upstream", upstream-distro = { name = "fedora", version = "43" }, upstream-commit = "bc3168902de75d99f5e549f37012cffc50fb7711" } + +# %check-only dep on proptest >= 1.11.0, unavailable in azl4-build today; the +# library itself does not need proptest to build. +[components.rust-cmov.build] +without = ["check"] diff --git a/locks/rust-cmov.lock b/locks/rust-cmov.lock new file mode 100644 index 00000000000..76495ddbdfa --- /dev/null +++ b/locks/rust-cmov.lock @@ -0,0 +1,6 @@ +# Managed by azldev component update. Do not edit manually. +version = 1 +import-commit = 'bc3168902de75d99f5e549f37012cffc50fb7711' +upstream-commit = 'bc3168902de75d99f5e549f37012cffc50fb7711' +input-fingerprint = 'sha256:41346c174fc1f6eba9d49237e733274fb4965f5875c5633fe261bf2abcb53db2' +resolution-input-hash = 'sha256:6d08a467fd9708f95b8ef0ffcc98a5ea1be39e9517a908782806f2807ca12120' diff --git a/specs/r/rust-cmov/rust-cmov.azl.macros b/specs/r/rust-cmov/rust-cmov.azl.macros new file mode 100644 index 00000000000..77b36141752 --- /dev/null +++ b/specs/r/rust-cmov/rust-cmov.azl.macros @@ -0,0 +1,3 @@ +# Macros file automatically generated by azldev. +# Do not edit manually; changes will be overwritten. +%_without_check 1 diff --git a/specs/r/rust-cmov/rust-cmov.spec b/specs/r/rust-cmov/rust-cmov.spec new file mode 100644 index 00000000000..f63d2db8e78 --- /dev/null +++ b/specs/r/rust-cmov/rust-cmov.spec @@ -0,0 +1,103 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.8.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 + +# This spec file has been modified by azldev to include build configuration overlays. +# Do not edit manually; changes may be overwritten. + +# All Azure Linux specs with overlays include this macro file, irrespective of whether new macros have been added. +%{load:%{_sourcedir}/rust-cmov.azl.macros} + +# Generated by rust2rpm 28 +%bcond check 1 +%global debug_package %{nil} + +%global crate cmov + +Name: rust-cmov +Version: 0.5.4 +Release: %autorelease +Summary: Conditional move CPU intrinsics with pure Rust fallback implemenation + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/cmov +Source: %{crates_source} +Source9999: rust-cmov.azl.macros + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Conditional move CPU intrinsics which are guaranteed on major platforms +(ARM32/ARM64, x86/x86_64, RISC-V) to execute in constant-time and not be +rewritten as branches by the compiler. Provides wrappers for the CMOV +family of instructions on x86/x86_64 and CSEL on AArch64, along with a +portable "best-effort" pure Rust fallback implementation.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%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 +## START: Generated by rpmautospec +* Fri Aug 14 2026 Autumn Nash - 0.5.4-2 +- feat(rust-cmov): add rust-cmov component + +* Fri May 29 2026 Fabio Valentini - 0.5.4-1 +- Update to version 0.5.4; Fixes RHBZ#2482851 + +* Sat Apr 18 2026 Fabio Valentini - 0.5.3-1 +- Update to version 0.5.3; Fixes RHBZ#2454478 + +* Sat Mar 28 2026 Fabio Valentini - 0.5.2-1 +- Initial import (#2445637) +## END: Generated by rpmautospec diff --git a/specs/r/rust-cmov/sources b/specs/r/rust-cmov/sources new file mode 100644 index 00000000000..e2c4e9d4ead --- /dev/null +++ b/specs/r/rust-cmov/sources @@ -0,0 +1 @@ +SHA512 (cmov-0.5.4.crate) = 217a407bba36e130170b72454dac76eb708fc57b22b9655b9c3d133fe395ad9da3e337c67652519fe929ff612953ee727ad099ec45af02cf00d3aba94e377f78