# Generated by rust2rpm %bcond_without check %global crate xml-rs Name: %{crate} Version: 0.4.1 Release: 1%{?dist} Summary: # FIXME License: MIT URL: https://crates.io/crates/xml-rs Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Patch0: update-versions.patch ExclusiveArch: %{rust_arches} BuildRequires: rust BuildRequires: cargo # [dependencies] BuildRequires: (crate(bitflags) >= 0.8.0 with crate(bitflags) < 0.9.0) %description %{summary}. %package -n rust-%{crate}-devel Summary: %{summary} BuildArch: noarch %description -n rust-%{crate}-devel %{summary}. 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 %{_bindir}/xml-analyze %files -n rust-%{crate}-devel %{cargo_registry}/%{crate}-%{version}/ %changelog