# Generated by rust2rpm # * maud is nightly %bcond_with check %global debug_package %{nil} %global crate horrorshow Name: rust-%{crate} Version: 0.6.2 Release: 1%{?dist} Summary: Templating library written in rust macros License: MIT or ASL 2.0 URL: https://crates.io/crates/horrorshow Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} # [dev-dependencies] BuildRequires: (crate(maud) >= 0.16.0 with crate(maud) < 0.17.0) BuildRequires: (crate(maud_macros) >= 0.16.0 with crate(maud_macros) < 0.17.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel A templating library written in rust macros. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE-MIT LICENSE-APACHE %doc AUTHORS README.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Sat Jan 20 2018 Igor Gnatenko - 0.6.2-1 - Initial package