2f3dc7e
# Generated by rust2rpm 17
2f3dc7e
%bcond_without check
2f3dc7e
%global debug_package %{nil}
2f3dc7e
2f3dc7e
%global crate cfg-expr
2f3dc7e
2f3dc7e
Name:           rust-%{crate}
2f3dc7e
Version:        0.7.4
2f3dc7e
Release:        %autorelease
2f3dc7e
Summary:        Parser and evaluator for Rust `cfg()` expressions
2f3dc7e
2f3dc7e
# Upstream license specification: MIT OR Apache-2.0
2f3dc7e
License:        MIT or ASL 2.0
2f3dc7e
URL:            https://crates.io/crates/cfg-expr
2f3dc7e
Source:         %{crates_source}
2f3dc7e
2f3dc7e
ExclusiveArch:  %{rust_arches}
2f3dc7e
%if %{__cargo_skip_build}
2f3dc7e
BuildArch:      noarch
2f3dc7e
%endif
2f3dc7e
2f3dc7e
BuildRequires:  rust-packaging
2f3dc7e
2f3dc7e
%global _description %{expand:
2f3dc7e
Parser and evaluator for Rust `cfg()` expressions.}
2f3dc7e
2f3dc7e
%description %{_description}
2f3dc7e
2f3dc7e
%package        devel
2f3dc7e
Summary:        %{summary}
2f3dc7e
BuildArch:      noarch
2f3dc7e
2f3dc7e
%description    devel %{_description}
2f3dc7e
2f3dc7e
This package contains library source intended for building other packages
2f3dc7e
which use "%{crate}" crate.
2f3dc7e
2f3dc7e
%files          devel
2f3dc7e
%license LICENSE-APACHE LICENSE-MIT
2f3dc7e
%doc README.md CHANGELOG.md
2f3dc7e
%{cargo_registry}/%{crate}-%{version_no_tilde}/
2f3dc7e
2f3dc7e
%package     -n %{name}+default-devel
2f3dc7e
Summary:        %{summary}
2f3dc7e
BuildArch:      noarch
2f3dc7e
2f3dc7e
%description -n %{name}+default-devel %{_description}
2f3dc7e
2f3dc7e
This package contains library source intended for building other packages
2f3dc7e
which use "default" feature of "%{crate}" crate.
2f3dc7e
2f3dc7e
%files       -n %{name}+default-devel
2f3dc7e
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
2f3dc7e
2f3dc7e
%package     -n %{name}+target-lexicon-devel
2f3dc7e
Summary:        %{summary}
2f3dc7e
BuildArch:      noarch
2f3dc7e
2f3dc7e
%description -n %{name}+target-lexicon-devel %{_description}
2f3dc7e
2f3dc7e
This package contains library source intended for building other packages
2f3dc7e
which use "target-lexicon" feature of "%{crate}" crate.
2f3dc7e
2f3dc7e
%files       -n %{name}+target-lexicon-devel
2f3dc7e
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
2f3dc7e
2f3dc7e
%package     -n %{name}+targets-devel
2f3dc7e
Summary:        %{summary}
2f3dc7e
BuildArch:      noarch
2f3dc7e
2f3dc7e
%description -n %{name}+targets-devel %{_description}
2f3dc7e
2f3dc7e
This package contains library source intended for building other packages
2f3dc7e
which use "targets" feature of "%{crate}" crate.
2f3dc7e
2f3dc7e
%files       -n %{name}+targets-devel
2f3dc7e
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
2f3dc7e
2f3dc7e
%prep
2f3dc7e
%autosetup -n %{crate}-%{version_no_tilde} -p1
2f3dc7e
%cargo_prep
2f3dc7e
2f3dc7e
%generate_buildrequires
2f3dc7e
%cargo_generate_buildrequires
2f3dc7e
2f3dc7e
%build
2f3dc7e
%cargo_build
2f3dc7e
2f3dc7e
%install
2f3dc7e
%cargo_install
2f3dc7e
2f3dc7e
%if %{with check}
2f3dc7e
%check
2f3dc7e
%cargo_test
2f3dc7e
%endif
2f3dc7e
2f3dc7e
%changelog
2f3dc7e
%autochangelog