-
Notifications
You must be signed in to change notification settings - Fork 693
feat(rust-cpubits): add rust-cpubits component #18446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+101
−0
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| SHA512 (cpubits-0.1.1.crate) = f8d542023989a7b74267aaff01b9be96847edef9625ccf3d0e40dde881a790599eec2791fcb13f979b81ae2221129c1cf22b71ee8b4487c30dbe0bdbc26d62ec |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.