diff --git a/base/comps/rust-cpubits/rust-cpubits.comp.toml b/base/comps/rust-cpubits/rust-cpubits.comp.toml new file mode 100644 index 00000000000..d3934e2a04f --- /dev/null +++ b/base/comps/rust-cpubits/rust-cpubits.comp.toml @@ -0,0 +1,4 @@ +[components.rust-cpubits] +# Pin to Fedora f43 HEAD (cpubits 0.1.1); not yet packaged at the distro-default +# snapshot date. +spec = { type = "upstream", upstream-distro = { name = "fedora", version = "43" }, upstream-commit = "4e784900139bc3b9b30c59a0e892319834cca2bb" } diff --git a/locks/rust-cpubits.lock b/locks/rust-cpubits.lock new file mode 100644 index 00000000000..5a24df50840 --- /dev/null +++ b/locks/rust-cpubits.lock @@ -0,0 +1,6 @@ +# Managed by azldev component update. Do not edit manually. +version = 1 +import-commit = '4e784900139bc3b9b30c59a0e892319834cca2bb' +upstream-commit = '4e784900139bc3b9b30c59a0e892319834cca2bb' +input-fingerprint = 'sha256:de40aa962f8f2b4b1b80ce4a12e3281fabd68c44952ba61b600163d3057d8352' +resolution-input-hash = 'sha256:7d16a8905c47943856d8d3ed6cb5931f046dac58ebd171517dee0886a31d6da5' diff --git a/specs/r/rust-cpubits/rust-cpubits.spec b/specs/r/rust-cpubits/rust-cpubits.spec new file mode 100644 index 00000000000..32fce08faa5 --- /dev/null +++ b/specs/r/rust-cpubits/rust-cpubits.spec @@ -0,0 +1,90 @@ +## 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. + +# Generated by rust2rpm 28 +%bcond check 1 +%global debug_package %{nil} + +%global crate cpubits + +Name: rust-cpubits +Version: 0.1.1 +Release: %autorelease +Summary: Compile-time detection heuristics for optimal target CPU word size + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/cpubits +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Compile-time detection heuristics for the optimal word size to use for +the target CPU, which in some cases may differ from its address size +a.k.a. `target_pointer_width`. Implemented as `macro_rules!`.} + +%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 +%{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 +* Mon Aug 17 2026 Autumn Nash - 0.1.1-2 +- feat(rust-cpubits): add rust-cpubits component + +* Mon Jun 22 2026 Benjamin A. Beasley - 0.1.1-1 +- Initial package (close RHBZ#2491277) +## END: Generated by rpmautospec diff --git a/specs/r/rust-cpubits/sources b/specs/r/rust-cpubits/sources new file mode 100644 index 00000000000..0337f9a7d74 --- /dev/null +++ b/specs/r/rust-cpubits/sources @@ -0,0 +1 @@ +SHA512 (cpubits-0.1.1.crate) = f8d542023989a7b74267aaff01b9be96847edef9625ccf3d0e40dde881a790599eec2791fcb13f979b81ae2221129c1cf22b71ee8b4487c30dbe0bdbc26d62ec