From 29c6adbcb7c67423a92105d7b6512a2aa7605320 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 9 Nov 2021 21:17:29 +0100 Subject: [PATCH] Update to version 0.5.6; Fixes RHBZ#2021323 --- .gitignore | 1 + escargot-fix-metadata.diff | 10 ++++++++++ rust-escargot.spec | 13 +++++++------ sources | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 escargot-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 79cea9c..621be87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /escargot-0.5.0.crate /escargot-0.5.1.crate /escargot-0.5.2.crate +/escargot-0.5.6.crate diff --git a/escargot-fix-metadata.diff b/escargot-fix-metadata.diff new file mode 100644 index 0000000..3676952 --- /dev/null +++ b/escargot-fix-metadata.diff @@ -0,0 +1,10 @@ +--- escargot-0.5.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ escargot-0.5.6/Cargo.toml 2021-11-09T20:13:14.193478+00:00 +@@ -23,6 +23,7 @@ + categories = ["development-tools::build-utils"] + license = "MIT OR Apache-2.0" + repository = "https://github.com/crate-ci/escargot.git" ++autobins = false + [package.metadata.docs.rs] + features = ["cargo_unstable", "test_unstable"] + [[package.metadata.release.pre-release-replacements]] diff --git a/rust-escargot.spec b/rust-escargot.spec index f16c700..509f518 100644 --- a/rust-escargot.spec +++ b/rust-escargot.spec @@ -1,14 +1,12 @@ -# Generated by rust2rpm 16 -# * Test files are not distributed on crates.io +# Generated by rust2rpm 18 +# * files required by tests are not included in published crates %bcond_with check %global debug_package %{nil} -%global __cargo_is_bin() false - %global crate escargot Name: rust-%{crate} -Version: 0.5.2 +Version: 0.5.6 Release: %autorelease Summary: Cargo API written in Paris @@ -16,6 +14,9 @@ Summary: Cargo API written in Paris License: MIT or ASL 2.0 URL: https://crates.io/crates/escargot Source: %{crates_source} +# Initial patched metadata +# * drop unwanted executables +Patch0: escargot-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -40,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT -%doc README.md CHANGELOG.md CONTRIBUTING.md +%doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel diff --git a/sources b/sources index b42cef1..f80ffbb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (escargot-0.5.2.crate) = dc2f95a68a2ba29883ace34eaef0c15b9e6cade6c75da9dda40bd0d21c3d15562d119dd5f59d81373205588de9337905b7e7d9f42c11d8493f85befcdf798edd +SHA512 (escargot-0.5.6.crate) = 5b0ede71bf8332ff5d604e656bf5c062e0693952f754e0bd6522db49897dfc240164b4ea18b9c5ed3feced1509dd6a98753fcc0887f8548aefe26be04c626d1a