Skip to content
Merged
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
4 changes: 4 additions & 0 deletions base/comps/rust-cpubits/rust-cpubits.comp.toml
Original file line number Diff line number Diff line change
@@ -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" }
Comment thread
WithEnoughCoffee marked this conversation as resolved.
6 changes: 6 additions & 0 deletions locks/rust-cpubits.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 = '4e784900139bc3b9b30c59a0e892319834cca2bb'
upstream-commit = '4e784900139bc3b9b30c59a0e892319834cca2bb'
input-fingerprint = 'sha256:de40aa962f8f2b4b1b80ce4a12e3281fabd68c44952ba61b600163d3057d8352'
resolution-input-hash = 'sha256:7d16a8905c47943856d8d3ed6cb5931f046dac58ebd171517dee0886a31d6da5'
90 changes: 90 additions & 0 deletions specs/r/rust-cpubits/rust-cpubits.spec
Original file line number Diff line number Diff line change
@@ -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 <autumnnash@microsoft.com> - 0.1.1-2
- feat(rust-cpubits): add rust-cpubits component

* Mon Jun 22 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 0.1.1-1
- Initial package (close RHBZ#2491277)
## END: Generated by rpmautospec
1 change: 1 addition & 0 deletions specs/r/rust-cpubits/sources
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SHA512 (cpubits-0.1.1.crate) = f8d542023989a7b74267aaff01b9be96847edef9625ccf3d0e40dde881a790599eec2791fcb13f979b81ae2221129c1cf22b71ee8b4487c30dbe0bdbc26d62ec
Loading