|
|
@ -1,27 +1,26 @@
|
|
|
|
# Generated by rust2rpm 23
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
# * tests are broken due to test runner changes in Rust 1.67+:
|
|
|
|
# * test sources are not included in published crates
|
|
|
|
# https://github.com/jhpratt/num_threads/issues/13
|
|
|
|
|
|
|
|
%bcond_with check
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate num_threads
|
|
|
|
%global crate num_threads
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-num_threads
|
|
|
|
Name: rust-num_threads
|
|
|
|
Version: 0.1.6
|
|
|
|
Version: 0.1.7
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Determine the number of running threads for the current process
|
|
|
|
Summary: Determine the number of running threads for the current process
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/num_threads
|
|
|
|
URL: https://crates.io/crates/num_threads
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
Patch: num_threads-fix-metadata-auto.diff
|
|
|
|
Patch: num_threads-fix-metadata-auto.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Minimal library that determines the number of running threads for the current
|
|
|
|
A minimal library that determines the number of running threads for the
|
|
|
|
process.}
|
|
|
|
current process.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +51,7 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|