diff --git a/.gitignore b/.gitignore index efab352..9d70366 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /parking-2.0.0.crate +/parking-2.1.0.crate diff --git a/parking-fix-metadata-auto.diff b/parking-fix-metadata-auto.diff new file mode 100644 index 0000000..75d1ae0 --- /dev/null +++ b/parking-fix-metadata-auto.diff @@ -0,0 +1,9 @@ +--- parking-2.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ parking-2.1.0/Cargo.toml 2023-04-15T17:50:02.567163+00:00 +@@ -37,6 +37,3 @@ + [dev-dependencies.easy-parallel] + version = "3.0.0" + +-[target."cfg(loom)".dependencies.loom] +-version = "0.5" +-optional = true diff --git a/rust-parking.spec b/rust-parking.spec index f2221be..e2b553e 100644 --- a/rust-parking.spec +++ b/rust-parking.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate parking -Name: rust-%{crate} -Version: 2.0.0 +Name: rust-parking +Version: 2.1.0 Release: %autorelease Summary: Thread parking and unparking -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/parking Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: parking-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Thread parking and unparking.} @@ -32,13 +28,16 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/LICENSE-THIRD-PARTY +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +45,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +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 a724fea..e43d82d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (parking-2.0.0.crate) = 21c5723dc0281ade1c2cd6a1c2215ba70eb47a721a4a594ef1e54061bc79579ffe9c31f06e534fd847f936ed265cd65a59dfa9e38880f8bd42c6e8ac70a13f93 +SHA512 (parking-2.1.0.crate) = 2cf5741c137df3c7bcbc20208ccd9d1aa580ae25917766db1725a13b692ae7c6fcd212bd572cd7c00b7ed09f3f88ee303e8ecedf84b393c22b02239c3571baa4