diff --git a/.gitignore b/.gitignore index 40736b4..a881a00 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /num_cpus-1.11.1.crate /num_cpus-1.12.0.crate /num_cpus-1.13.0.crate +/num_cpus-1.13.1.crate diff --git a/num_cpus-fix-metadata.diff b/num_cpus-fix-metadata.diff index 8a1779d..507b3ea 100644 --- a/num_cpus-fix-metadata.diff +++ b/num_cpus-fix-metadata.diff @@ -1,8 +1,10 @@ ---- num_cpus-1.13.0/Cargo.toml 2020-04-15T16:15:26+00:00 -+++ num_cpus-1.13.0/Cargo.toml 2020-04-17T22:49:22.517521+00:00 -@@ -23,5 +23,3 @@ +--- num_cpus-1.13.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ num_cpus-1.13.1/Cargo.toml 2021-12-20T20:31:04.071929+00:00 +@@ -20,7 +20,5 @@ + categories = ["hardware-support"] + license = "MIT OR Apache-2.0" repository = "https://github.com/seanmonstar/num_cpus" - [dependencies.libc] - version = "0.2.26" -[target."cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))".dependencies.hermit-abi] -version = "0.1.3" + [target."cfg(not(windows))".dependencies.libc] + version = "0.2.26" diff --git a/rust-num_cpus.spec b/rust-num_cpus.spec index a481a8e..9bc4a09 100644 --- a/rust-num_cpus.spec +++ b/rust-num_cpus.spec @@ -1,26 +1,23 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate num_cpus Name: rust-%{crate} -Version: 1.13.0 +Version: 1.13.1 Release: %autorelease Summary: Get the number of CPUs on a machine -# Upstream license specification: MIT/Apache-2.0 +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/num_cpus Source: %{crates_source} # Initial patched metadata -# * No non-fedora deps +# * drop non-linux-specific dependencies Patch0: num_cpus-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -36,7 +33,7 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT @@ -50,7 +47,7 @@ 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. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index 99ed499..716da77 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (num_cpus-1.13.0.crate) = e75ec298fa682be84bf4efb6cf40126da9233ef25f07e887c2fa7421ee78790204564e6406c8219466651f47421e27f69eca690bb9cdfc982b644d78cc10de3f +SHA512 (num_cpus-1.13.1.crate) = 91ffe0ec792228621d6c2d5cc544ef4744203d19fc9c86e0aad2610038c43aca0448b6c27d82979417a0f6c939ea73523303a44c28df0d1c1b8d09814d5306d9