# Generated by rust2rpm 9
%bcond_with check
%global debug_package %{nil}
%global crate tera
Name: rust-%{crate}
Version: 1.0.0~beta.7
Release: 1%{?dist}
Summary: Template engine based on Jinja2/Django templates
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/tera
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(chrono/default) >= 0.4.0 with crate(chrono/default) < 0.5.0)
BuildRequires: (crate(globwalk/default) >= 0.7.0 with crate(globwalk/default) < 0.8.0)
BuildRequires: (crate(humansize/default) >= 1.0.0 with crate(humansize/default) < 2.0.0)
BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0)
BuildRequires: (crate(pest/default) >= 2.0.0 with crate(pest/default) < 3.0.0)
BuildRequires: (crate(pest_derive/default) >= 2.0.0 with crate(pest_derive/default) < 3.0.0)
BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0)
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
BuildRequires: (crate(slug/default) >= 0.1.0 with crate(slug/default) < 0.2.0)
BuildRequires: (crate(unic-segment/default) >= 0.9.0 with crate(unic-segment/default) < 0.10.0)
BuildRequires: (crate(url/default) >= 1.0.0 with crate(url/default) < 2.0.0)
BuildRequires: (crate(v_htmlescape/default) >= 0.4.0 with crate(v_htmlescape/default) < 0.5.0)
%if %{with check}
BuildRequires: (crate(pretty_assertions/default) >= 0.6.0 with crate(pretty_assertions/default) < 0.7.0)
BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0)
BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0)
%endif
%global _description %{expand:
Template engine based on Jinja2/Django templates.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+preserve_order-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+preserve_order-devel %{_description}
This package contains library source intended for building other packages
which use "preserve_order" feature of "%{crate}" crate.
%files -n %{name}+preserve_order-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Fri May 31 11:23:23 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0~beta.7-1
- Initial package