diff --git a/.gitignore b/.gitignore index 44f4aaf..765850e 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /async-executor-1.8.0.crate /async-executor-1.9.1.crate /async-executor-1.11.0.crate +/async-executor-1.12.0.crate diff --git a/async-executor-fix-metadata-auto.diff b/async-executor-fix-metadata-auto.diff index 21ff4f1..06ff3d8 100644 --- a/async-executor-fix-metadata-auto.diff +++ b/async-executor-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- async-executor-1.11.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-executor-1.11.0/Cargo.toml 2024-04-15T17:08:42.428972+00:00 -@@ -81,7 +81,3 @@ - [dev-dependencies.once_cell] - version = "1.16.0" +--- async-executor-1.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-executor-1.12.0/Cargo.toml 2024-05-28T12:27:17.505382+00:00 +@@ -85,7 +85,3 @@ + [features] + static = [] -[target."cfg(target_family = \"wasm\")".dependencies.futures-lite] -version = "2.0.0" diff --git a/async-executor-fix-metadata.diff b/async-executor-fix-metadata.diff index ffd47ca..8c4b42d 100644 --- a/async-executor-fix-metadata.diff +++ b/async-executor-fix-metadata.diff @@ -1,17 +1,18 @@ ---- async-executor-1.11.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-executor-1.11.0/Cargo.toml 2024-04-15T17:08:57.518058+00:00 -@@ -35,10 +35,6 @@ +--- async-executor-1.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-executor-1.12.0/Cargo.toml 2024-05-28T12:27:27.422439+00:00 +@@ -35,11 +35,6 @@ license = "Apache-2.0 OR MIT" repository = "https://github.com/smol-rs/async-executor" -[[bench]] -name = "executor" -harness = false +-required-features = ["static"] - [dependencies.async-task] version = "4.4.0" -@@ -64,11 +60,6 @@ +@@ -65,11 +60,6 @@ [dev-dependencies.async-lock] version = "3.0.0" diff --git a/rust-async-executor.spec b/rust-async-executor.spec index f69bb5c..5b111dc 100644 --- a/rust-async-executor.spec +++ b/rust-async-executor.spec @@ -5,7 +5,7 @@ %global crate async-executor Name: rust-async-executor -Version: 1.11.0 +Version: 1.12.0 Release: %autorelease Summary: Async executor @@ -53,6 +53,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+static-devel %{_description} + +This package contains library source intended for building other packages which +use the "static" feature of the "%{crate}" crate. + +%files -n %{name}+static-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..2cd7101 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", +] + diff --git a/sources b/sources index eee7ddc..b55356d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-executor-1.11.0.crate) = a966e235a6f73c92ac8aded01315f2b309c8fd69fc3b92c189f33ad7b2e9790c09bd3ba6e4fd4f46017fe803299629ede6bb490341e6a7acaeae0d4fbab19dce +SHA512 (async-executor-1.12.0.crate) = 1d0c967f310e360ee156aad85af273cb8c89735e846f82ac56846063db23ca435cafa917a5b146c7bd26fc3111cfa320f2b43def3a00419b93c7d75dd230664c