diff --git a/base/comps/rust-ctutils/rust-ctutils.comp.toml b/base/comps/rust-ctutils/rust-ctutils.comp.toml new file mode 100644 index 00000000000..e17a7635887 --- /dev/null +++ b/base/comps/rust-ctutils/rust-ctutils.comp.toml @@ -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"] diff --git a/locks/rust-ctutils.lock b/locks/rust-ctutils.lock new file mode 100644 index 00000000000..f8914e02ecb --- /dev/null +++ b/locks/rust-ctutils.lock @@ -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' diff --git a/specs/r/rust-ctutils/rust-ctutils.azl.macros b/specs/r/rust-ctutils/rust-ctutils.azl.macros new file mode 100644 index 00000000000..77b36141752 --- /dev/null +++ b/specs/r/rust-ctutils/rust-ctutils.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-ctutils/rust-ctutils.spec b/specs/r/rust-ctutils/rust-ctutils.spec new file mode 100644 index 00000000000..e0ab9b3bf0a --- /dev/null +++ b/specs/r/rust-ctutils/rust-ctutils.spec @@ -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 - 0.4.2-2 +- feat(rust-ctutils): add rust-ctutils component + +* Wed Apr 29 2026 Fabio Valentini - 0.4.2-1 +- Initial import (#2445639) +## END: Generated by rpmautospec diff --git a/specs/r/rust-ctutils/sources b/specs/r/rust-ctutils/sources new file mode 100644 index 00000000000..59c38623c0e --- /dev/null +++ b/specs/r/rust-ctutils/sources @@ -0,0 +1 @@ +SHA512 (ctutils-0.4.2.crate) = e2798505bd16199ee42c49e1c8d6373ebad66ba51c28b7e3146a6adf2f796ea31b248e3fbf0bd132175770f3018b8e33702f0b3a73e70eb424f398b889a8f366