# Generated by rust2rpm %bcond_without check %global crate xhtml_minimizer Name: rust-%{crate} Version: 0.1.3 Release: 1%{?dist} Summary: Minimize XHTML files. License: GPLv3+ URL: https://crates.io/crates/xhtml_minimizer Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(xml_tokens) >= 0.1.4 with crate(xml_tokens) < 0.2.0) %description %{summary}. %package -n %{crate} Summary: %{summary} %description -n %{crate} %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Minimize XHTML files. 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 -n %{crate} %{_bindir}/xhtml-minimizer %files devel %{cargo_registry}/%{crate}-%{version}/ %changelog * Tue May 07 2019 Daniel J. R. May - 0.1.3-1 - Initial package