Initial import (peg 0.6 compat package)

epel9 imports/e9/rust-peg0.6-0.6.3-1.el9
Fabio Valentini 1 year ago
parent 70483d21b8
commit 74daf3fbac
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/peg-0.6.3.crate

@ -1,3 +0,0 @@
# rust-peg0.6
The rust-peg0.6 package

@ -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

@ -0,0 +1 @@
SHA512 (peg-0.6.3.crate) = edbaccc2ed87728fc1bbe373b71167fadca95aa07a9d9850d0cac46342ab366163aee3ec65ee9304dbe997924f1de3a3d6b19e47034aec3bddfbd2847060b276
Loading…
Cancel
Save