From 3df329bef44069404497de9b24e8ea1bb1bd5b3b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 6 Mar 2022 18:05:25 +0100 Subject: [PATCH] Update to version 0.10.3; Fixes RHBZ#2055262 --- .gitignore | 1 + askama_escape-fix-metadata.diff | 10 ++++++---- rust-askama_escape.spec | 27 ++++++++++++++++++++------- sources | 2 +- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 66317cb..bc296ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /askama_escape-0.10.1.crate /askama_escape-0.10.2.crate +/askama_escape-0.10.3.crate diff --git a/askama_escape-fix-metadata.diff b/askama_escape-fix-metadata.diff index 1ce889e..c92fd16 100644 --- a/askama_escape-fix-metadata.diff +++ b/askama_escape-fix-metadata.diff @@ -1,6 +1,6 @@ ---- askama_escape-0.10.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ askama_escape-0.10.2/Cargo.toml 2022-01-29T19:28:03.718366+00:00 -@@ -21,10 +21,5 @@ +--- askama_escape-0.10.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ askama_escape-0.10.3/Cargo.toml 2022-03-06T14:29:47.668209+00:00 +@@ -21,12 +21,6 @@ license = "MIT OR Apache-2.0" repository = "https://github.com/djc/askama" @@ -9,5 +9,7 @@ -harness = false -[dev-dependencies.criterion] -version = "0.3" +- + [features] + json = [] [badges.maintenance] - status = "actively-developed" diff --git a/rust-askama_escape.spec b/rust-askama_escape.spec index 9b5b894..f7c1423 100644 --- a/rust-askama_escape.spec +++ b/rust-askama_escape.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate askama_escape Name: rust-%{crate} -Version: 0.10.2 +Version: 0.10.3 Release: %autorelease Summary: Optimized HTML escaping code, extracted from Askama @@ -19,7 +19,7 @@ Patch0: askama_escape-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Optimized HTML escaping code, extracted from Askama.} @@ -36,9 +36,10 @@ 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 -%{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} @@ -50,7 +51,19 @@ 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 + +%package -n %{name}+json-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+json-devel %{_description} + +This package contains library source intended for building other packages which +use the "json" feature of the "%{crate}" crate. + +%files -n %{name}+json-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 7b88028..f356497 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (askama_escape-0.10.2.crate) = 59c7f19210966461550ab6ca43e6f45d0724d89cd8a007bf81da3f83798642ed89107a7565b8bb85a09fae08dbc40c10dbb0ad5a433d7807af4ed5a2bc2022ff +SHA512 (askama_escape-0.10.3.crate) = 1978add567021fac7f086b6091c97de81919877726455828164642c55607d5b5f6f01c0187f8a8a3371c9b3a1ef41f4c3c9e14d9068826c38ee8a6efe2eeb5a2