You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-pest/rust-pest.spec

179 lines
4.6 KiB

# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate pest
Name: rust-pest
Version: 2.5.4
Release: %autorelease
Summary: Elegant Parser
# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/pest
6 years ago
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Elegant Parser.}
%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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}+bytecount-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bytecount-devel %{_description}
This package contains library source intended for building other packages which
use the "bytecount" feature of the "%{crate}" crate.
%files -n %{name}+bytecount-devel
%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}+fast-line-col-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+fast-line-col-devel %{_description}
This package contains library source intended for building other packages which
use the "fast-line-col" feature of the "%{crate}" crate.
%files -n %{name}+fast-line-col-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+memchr-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+memchr-devel %{_description}
This package contains library source intended for building other packages which
use the "memchr" feature of the "%{crate}" crate.
%files -n %{name}+memchr-devel
%ghost %{crate_instdir}/Cargo.toml
6 years ago
%package -n %{name}+pretty-print-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pretty-print-devel %{_description}
This package contains library source intended for building other packages which
use the "pretty-print" feature of the "%{crate}" crate.
6 years ago
%files -n %{name}+pretty-print-devel
%ghost %{crate_instdir}/Cargo.toml
6 years ago
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.
6 years ago
%files -n %{name}+serde-devel
%ghost %{crate_instdir}/Cargo.toml
6 years ago
%package -n %{name}+serde_json-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde_json-devel %{_description}
This package contains library source intended for building other packages which
use the "serde_json" feature of the "%{crate}" crate.
6 years ago
%files -n %{name}+serde_json-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}+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
6 years ago
%prep
6 years ago
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog