diff --git a/.gitignore b/.gitignore index 997f49a..0f5a96f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /thread-id-3.2.0.crate /thread-id-3.3.0.crate /thread-id-4.0.0.crate +/thread-id-4.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index a891d0a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-thread-id - -The rust-thread-id package \ No newline at end of file diff --git a/rust-thread-id.spec b/rust-thread-id.spec index 84bac12..66ce753 100644 --- a/rust-thread-id.spec +++ b/rust-thread-id.spec @@ -1,29 +1,22 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate thread-id -Name: rust-%{crate} -Version: 4.0.0 +Name: rust-thread-id +Version: 4.1.0 Release: %autorelease Summary: Get a unique thread ID # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/thread-id Source: %{crates_source} -# Initial patched metadata -# * No windows -# * No redox -Patch0: thread-id-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: thread-id-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Get a unique thread ID.} @@ -37,12 +30,14 @@ 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 -%doc changelog.md readme.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/license-apache +%license %{crate_instdir}/license-mit +%doc %{crate_instdir}/changelog.md +%doc %{crate_instdir}/readme.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,10 +46,10 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 25c924b..94ce24f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (thread-id-4.0.0.crate) = 8d5d4e4ce19ce2f2edc25a1e5bc39b85f1352591dbc2be94d83e8175661e6e22ebb8b6ae9cb4efd92c45a1b8f625c4cf210b78bec6926ec4f5a004004c5ffe50 +SHA512 (thread-id-4.1.0.crate) = d74f808c4053a02f1b8347584ba584062c3d6f2e053460c7f7702516bdb3d885fe1a7c5d373fac55590499ea5464d2e491d710a793b71c1c3e933d4377d06273 diff --git a/thread-id-fix-metadata.diff b/thread-id-fix-metadata-auto.diff similarity index 76% rename from thread-id-fix-metadata.diff rename to thread-id-fix-metadata-auto.diff index f23b71c..aa2e5ed 100644 --- a/thread-id-fix-metadata.diff +++ b/thread-id-fix-metadata-auto.diff @@ -1,5 +1,5 @@ ---- thread-id-4.0.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ thread-id-4.0.0/Cargo.toml 2021-11-28T07:59:18.591617+00:00 +--- thread-id-4.1.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ thread-id-4.1.0/Cargo.toml 2023-05-17T12:59:34.279151+00:00 @@ -20,13 +20,8 @@ keywords = ["thread", "pthread", "getcurrentthreadid"] license = "MIT/Apache-2.0" @@ -12,5 +12,5 @@ -version = "0.3" -features = ["processthreadsapi"] [badges.appveyor] - branch = "v4.0.0" + branch = "v4.1.0" repository = "ruuda/thread-id-y5v5o"