From e333fa3754c704261d94f8589ed1f46c3e39f1e5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 13 Jan 2024 23:01:45 +0100 Subject: [PATCH] Update to version 0.8.2; Fixes RHBZ#2243159 --- .gitignore | 1 + rust-peg.spec | 34 ++++++++++++++++++++++++++++------ sources | 2 +- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 88fe471..1889342 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /peg-0.5.7.crate /peg-0.6.3.crate /peg-0.8.1.crate +/peg-0.8.2.crate diff --git a/rust-peg.spec b/rust-peg.spec index c60e54f..38135b1 100644 --- a/rust-peg.spec +++ b/rust-peg.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate peg Name: rust-peg -Version: 0.8.1 +Version: 0.8.2 Release: %autorelease Summary: Simple Parsing Expression Grammar (PEG) parser generator @@ -13,7 +13,7 @@ License: MIT URL: https://crates.io/crates/peg Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A simple Parsing Expression Grammar (PEG) parser generator.} @@ -46,6 +46,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %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}+trace-devel Summary: %{summary} BuildArch: noarch @@ -58,11 +70,21 @@ use the "trace" feature of the "%{crate}" crate. %files -n %{name}+trace-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable" feature of the "%{crate}" crate. + +%files -n %{name}+unstable-devel +%ghost %{crate_instdir}/Cargo.toml + %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep -# drop test that fails harmlessly with Rust 1.69.0 and newer -rm tests/compile-fail/rust_action_type_error.{rs,stderr} %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index 26802fa..9f2edb5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (peg-0.8.1.crate) = e2b88ee2f55e1761b46191bd79a945261bbc7ce327a98cbd47394e5d60608a47cc845cdb0d834149e43d694ff542fb9eadbbc2b628facfe492f89a6bd1786d38 +SHA512 (peg-0.8.2.crate) = d47ae6d3b36c6b764cc3b898494bf24452f6d2e8c1fe531fa177742884d530bf1ae27632b8c345a7c034cbb0add1648a63721985792089b123d418f2cef8c4b2