Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions base/comps/rust-cmov/rust-cmov.comp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[components.rust-cmov]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question(non-blocking): Did you go through the process to get this added to the koji allow-list? Holler offline if you need pointers on that process.

# 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" }
Comment thread
WithEnoughCoffee marked this conversation as resolved.

# %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"]
Comment thread
WithEnoughCoffee marked this conversation as resolved.
6 changes: 6 additions & 0 deletions locks/rust-cmov.lock
Original file line number Diff line number Diff line change
@@ -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'
3 changes: 3 additions & 0 deletions specs/r/rust-cmov/rust-cmov.azl.macros
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Macros file automatically generated by azldev.
# Do not edit manually; changes will be overwritten.
%_without_check 1
103 changes: 103 additions & 0 deletions specs/r/rust-cmov/rust-cmov.spec
Original file line number Diff line number Diff line change
@@ -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
Comment thread
WithEnoughCoffee marked this conversation as resolved.

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 <autumnnash@microsoft.com> - 0.5.4-2
- feat(rust-cmov): add rust-cmov component

* Fri May 29 2026 Fabio Valentini <decathorpe@gmail.com> - 0.5.4-1
- Update to version 0.5.4; Fixes RHBZ#2482851

* Sat Apr 18 2026 Fabio Valentini <decathorpe@gmail.com> - 0.5.3-1
- Update to version 0.5.3; Fixes RHBZ#2454478

* Sat Mar 28 2026 Fabio Valentini <decathorpe@gmail.com> - 0.5.2-1
- Initial import (#2445637)
## END: Generated by rpmautospec
1 change: 1 addition & 0 deletions specs/r/rust-cmov/sources
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SHA512 (cmov-0.5.4.crate) = 217a407bba36e130170b72454dac76eb708fc57b22b9655b9c3d133fe395ad9da3e337c67652519fe929ff612953ee727ad099ec45af02cf00d3aba94e377f78
Loading