# Generated by rust2rpm
%bcond_without check
%global crate xml_tokens
Name: rust-%{crate}
Version: 0.1.5
Release: 1%{?dist}
Summary: Parse XML to tokens. Serialize tokens to XML.
License: GPLv3+
URL: https://crates.io/crates/xml_tokens
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%description
%{summary}.
%package -n %{crate}
Summary: %{summary}
%description -n %{crate}
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Parse XML to tokens. Serialize tokens to XML.
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}/xml-to-tokens-to-xml-repl
%{_bindir}/xml-to-tokens-repl
%{_bindir}/xml-minimizer
%files devel
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Wed Aug 21 2019 Daniel J. R. May <daniel.may@danieljrmay.com> - 0.1.5-1
- Fix deprecated range syntax.
* Tue May 07 2019 Daniel J. R. May <daniel.may@danieljrmay.com> - 0.1.4-1
- Initial package