From 7cc54271a0e6976ecb93ae1da7d78d256306cb13 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 21 Aug 2022 15:07:20 +0200 Subject: [PATCH] Update to version 2.3.0; Fixes RHBZ#2112463 --- .gitignore | 1 + rust-pest.spec | 84 +++++++++++++++++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 61 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 6644949..6d25c3c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /pest-2.1.1.crate /pest-2.1.2.crate /pest-2.1.3.crate +/pest-2.3.0.crate diff --git a/rust-pest.spec b/rust-pest.spec index 259b816..8fd1593 100644 --- a/rust-pest.spec +++ b/rust-pest.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate pest -Name: rust-%{crate} -Version: 2.1.3 +Name: rust-pest +Version: 2.3.0 Release: %autorelease Summary: Elegant Parser # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/pest Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Elegant Parser.} @@ -32,13 +29,14 @@ 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-MIT LICENSE-APACHE -%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} @@ -46,11 +44,23 @@ 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 + +%package -n %{name}+const_prec_climber-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const_prec_climber-devel %{_description} + +This package contains library source intended for building other packages which +use the "const_prec_climber" feature of the "%{crate}" crate. + +%files -n %{name}+const_prec_climber-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pretty-print-devel Summary: %{summary} @@ -58,11 +68,11 @@ BuildArch: noarch %description -n %{name}+pretty-print-devel %{_description} -This package contains library source intended for building other packages -which use "pretty-print" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "pretty-print" feature of the "%{crate}" crate. %files -n %{name}+pretty-print-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -70,11 +80,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} @@ -82,11 +92,35 @@ BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} -This package contains library source intended for building other packages -which use "serde_json" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+thiserror-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+thiserror-devel %{_description} + +This package contains library source intended for building other packages which +use the "thiserror" feature of the "%{crate}" crate. + +%files -n %{name}+thiserror-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 0e81d54..99f4727 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pest-2.1.3.crate) = 08a36d4571cc0e912ae87e1f2116424b3d4139b653dd9a446fec8ff39cd9a691e8305c86cf75d227b5349197ada4ce79912ac25f0726b98a0642981ac4673c83 +SHA512 (pest-2.3.0.crate) = a38432aac48bbcf541e4b7e9b678e4087bbd56a1acf759ac49601e2dd997bd5ab0663b245ca9e017a7c02030b61b8ed1ab9c469049833d18db6c5ea8d8cb814f