diff --git a/.gitignore b/.gitignore index 022a5a1..235913c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /scoped-tls-0.1.1.crate /scoped-tls-0.1.2.crate /scoped-tls-1.0.0.crate +/scoped-tls-1.0.1.crate diff --git a/rust-scoped-tls.spec b/rust-scoped-tls.spec index 2dd4857..f1f7eb0 100644 --- a/rust-scoped-tls.spec +++ b/rust-scoped-tls.spec @@ -1,25 +1,20 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate scoped-tls -Name: rust-%{crate} -Version: 1.0.0 +Name: rust-scoped-tls +Version: 1.0.1 Release: %autorelease -Summary: Implementation of the standard library's old `scoped_thread_local!` macro +Summary: Provide scoped access to thread local storage (TLS) # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/scoped-tls Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Library implementation of the standard library's old `scoped_thread_local!` @@ -35,12 +30,13 @@ 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 README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,10 +45,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 b47b117..e82d8be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scoped-tls-1.0.0.crate) = f09dd404bb45349ef444e7274a2aabfeaeda7c3c9f964bf5c52c39984c137f63bdf9fb3e33df8e312e52872f7721de25951a7f3b8333a670626c51afd36d314c +SHA512 (scoped-tls-1.0.1.crate) = 342f43d53edd33ea3e2197faf5dce37bfbeb0b20b6f0febad4dc6244c3185df127b2c10488e95561260a0ef968f32707460f2d0d23667cebece19b167c0a0c25