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
17 changes: 17 additions & 0 deletions base/comps/rust-ctutils/rust-ctutils.comp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[components.rust-ctutils]
# New component: rust-ctutils does not exist in AZL. It was first packaged in
# Fedora after AZL's distro-default snapshot date (2026-02-24), so no commit
# exists at that snapshot and an explicit upstream-commit pin (Fedora f43
# HEAD, version 0.4.2) is required. Needed transitively by rust-digest's
# "mac" feature subpackage (crate(ctutils/default) >= 0.4.0, < 0.5.0), which
# is required by rust-hmac 0.13.0 as part of the uv crate-alignment cascade.
spec = { type = "upstream", upstream-distro = { name = "fedora", version = "43" }, upstream-commit = "da9d15459406cc056c9457bafa1779d8a8adaa6e" }

# proptest is a %check-only (dev-)dependency (crate(proptest/default) >=
# 1.11.0, < 2.0.0). The bump to 1.11.0 lands separately in #18405, which is
# not yet tagged/published in koji. Koji's scratch-build gate can never
# resolve a same-PR interdependent new-package BuildRequires, so disable
# %check to drop the dependency entirely; the library itself does not need
# proptest to build.
[components.rust-ctutils.build]
without = ["check"]
Comment thread
WithEnoughCoffee marked this conversation as resolved.
6 changes: 6 additions & 0 deletions locks/rust-ctutils.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 = 'da9d15459406cc056c9457bafa1779d8a8adaa6e'
upstream-commit = 'da9d15459406cc056c9457bafa1779d8a8adaa6e'
input-fingerprint = 'sha256:513a4a7408ab53ce3e83dd5628ccab004db5b1d9d7d8b04a666014cf27fad7d2'
resolution-input-hash = 'sha256:8e7fd0e08340a0d08aadd80d546b601c72692790a4788891f1a979eb30429f12'
3 changes: 3 additions & 0 deletions specs/r/rust-ctutils/rust-ctutils.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
120 changes: 120 additions & 0 deletions specs/r/rust-ctutils/rust-ctutils.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
## 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-ctutils.azl.macros}

# Generated by rust2rpm 28
%bcond check 1
%global debug_package %{nil}

%global crate ctutils

Name: rust-ctutils
Version: 0.4.2
Release: %autorelease
Summary: Constant-time utility library with selection and equality testing support

License: Apache-2.0 OR MIT
URL: https://crates.io/crates/ctutils
Source: %{crates_source}
Source9999: rust-ctutils.azl.macros

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Constant-time utility library with selection and equality testing
support targeting cryptographic applications. Supports `const fn` where
appropriate. Built on the `cmov` crate which provides architecture-
specific predication intrinsics. Heavily inspired by the `subtle` crate.}

%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

%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}+subtle-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+subtle-devel %{_description}

This package contains library source intended for building other packages which
use the "subtle" feature of the "%{crate}" crate.

%files -n %{name}+subtle-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
* Mon Aug 17 2026 Autumn Nash <autumnnash@microsoft.com> - 0.4.2-2
- feat(rust-ctutils): add rust-ctutils component

* Wed Apr 29 2026 Fabio Valentini <decathorpe@gmail.com> - 0.4.2-1
- Initial import (#2445639)
## END: Generated by rpmautospec
1 change: 1 addition & 0 deletions specs/r/rust-ctutils/sources
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SHA512 (ctutils-0.4.2.crate) = e2798505bd16199ee42c49e1c8d6373ebad66ba51c28b7e3146a6adf2f796ea31b248e3fbf0bd132175770f3018b8e33702f0b3a73e70eb424f398b889a8f366
Loading