From 74daf3fbac00d6259c2eb65455f4c517b9e27db8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 12 Sep 2023 11:16:11 +0200 Subject: [PATCH] Initial import (peg 0.6 compat package) --- .gitignore | 1 + README.md | 3 -- rust-peg0.6.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-peg0.6.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaa4d17 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/peg-0.6.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8a96948..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-peg0.6 - -The rust-peg0.6 package diff --git a/rust-peg0.6.spec b/rust-peg0.6.spec new file mode 100644 index 0000000..aec3fed --- /dev/null +++ b/rust-peg0.6.spec @@ -0,0 +1,82 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate peg + +Name: rust-peg0.6 +Version: 0.6.3 +Release: %autorelease +Summary: Simple Parsing Expression Grammar (PEG) parser generator + +License: MIT +URL: https://crates.io/crates/peg +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A simple Parsing Expression Grammar (PEG) parser generator.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+trace-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+trace-devel %{_description} + +This package contains library source intended for building other packages which +use the "trace" feature of the "%{crate}" crate. + +%files -n %{name}+trace-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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 + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..60dde7b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (peg-0.6.3.crate) = edbaccc2ed87728fc1bbe373b71167fadca95aa07a9d9850d0cac46342ab366163aee3ec65ee9304dbe997924f1de3a3d6b19e47034aec3bddfbd2847060b276