# Generated by rust2rpm # https://github.com/RReverser/serde-xml-rs/issues/101 %bcond_with check %global debug_package %{nil} %global crate serde-xml-rs Name: rust-%{crate} Version: 0.3.1 Release: 1%{?dist} Summary: xml-rs based deserializer for Serde (compatible with 0.9+) License: MIT URL: https://crates.io/crates/serde-xml-rs Source: %{crates_source} # Initial patched metadata Patch0: serde-xml-rs-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0) BuildRequires: (crate(error-chain/default) >= 0.12.0 with crate(error-chain/default) < 0.13.0) BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) BuildRequires: (crate(xml-rs/default) >= 0.8.0 with crate(xml-rs/default) < 0.9.0) %if %{with check} BuildRequires: (crate(docmatic/default) >= 0.1.2 with crate(docmatic/default) < 0.2.0) BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0) BuildRequires: (crate(simple_logger/default) >= 1.0.1 with crate(simple_logger/default) < 2.0.0) %endif %global _description \ xml-rs based deserializer for Serde (compatible with 0.9+). %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 %{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}+legacy-support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+legacy-support-devel %{_description} This package contains library source intended for building other packages which use "legacy-support" feature of "%{crate}" crate. %files -n %{name}+legacy-support-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+with-backtrace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-backtrace-devel %{_description} This package contains library source intended for building other packages which use "with-backtrace" feature of "%{crate}" crate. %files -n %{name}+with-backtrace-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 * Sat Apr 27 09:30:29 CEST 2019 Igor Gnatenko - 0.3.1-1 - Initial package