From a0fc8bfca1545de987fa0b739d1b46606788e916 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Feb 18 2024 15:40:45 +0000 Subject: Update to version 0.1.7; Fixes RHBZ#2264333 --- diff --git a/.gitignore b/.gitignore index cd0c2e4..6e3fff4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /num_threads-0.1.6.crate +/num_threads-0.1.7.crate diff --git a/num_threads-fix-metadata-auto.diff b/num_threads-fix-metadata-auto.diff index 314e023..75890a4 100644 --- a/num_threads-fix-metadata-auto.diff +++ b/num_threads-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- num_threads-0.1.6/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ num_threads-0.1.6/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -32,5 +32,3 @@ +--- num_threads-0.1.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ num_threads-0.1.7/Cargo.toml 2024-02-18T15:38:45.889737+00:00 +@@ -37,5 +37,3 @@ [dependencies] diff --git a/rust-num_threads.spec b/rust-num_threads.spec index 8c56b27..5bb5fb9 100644 --- a/rust-num_threads.spec +++ b/rust-num_threads.spec @@ -1,27 +1,26 @@ -# Generated by rust2rpm 23 -# * tests are broken due to test runner changes in Rust 1.67+: -# https://github.com/jhpratt/num_threads/issues/13 +# Generated by rust2rpm 25 +# * test sources are not included in published crates %bcond_with check %global debug_package %{nil} %global crate num_threads Name: rust-num_threads -Version: 0.1.6 +Version: 0.1.7 Release: %autorelease Summary: Determine the number of running threads for the current process License: MIT OR Apache-2.0 URL: https://crates.io/crates/num_threads 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 -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Minimal library that determines the number of running threads for the current -process.} +A minimal library that determines the number of running threads for the +current process.} %description %{_description} @@ -52,7 +51,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..2453f37 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "Determine the number of running threads for the current process" + +[tests] +run = ["none"] +comments = ["test sources are not included in published crates"] + diff --git a/sources b/sources index d2ab838..0240d08 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (num_threads-0.1.6.crate) = b2d9897e29e59353379b6372a629fc7f9afc89f777b4410eaeac7b4729527948a8dbecb175f056899f9076693ef855cc0d40e725cc54f28af588fbac5f7ce3b6 +SHA512 (num_threads-0.1.7.crate) = 60eecfe49c1afca8efa320c5f4d0cd794f6adf8924193682c903307f484ca0a1ddb56102a772232aca040f29651bbe26ddc1c4939e1f030e229d179837e06bda