diff --git a/rust-serde-xml-rs.spec b/rust-serde-xml-rs.spec index 83071a8..23f68d8 100644 --- a/rust-serde-xml-rs.spec +++ b/rust-serde-xml-rs.spec @@ -1,5 +1,5 @@ -# Generated by rust2rpm -# https://github.com/RReverser/serde-xml-rs/issues/101 +# Generated by rust2rpm 10 +# * https://github.com/RReverser/serde-xml-rs/issues/101 %bcond_with check %global debug_package %{nil} @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 0.3.1 -Release: 1%{?dist} -Summary: xml-rs based deserializer for Serde (compatible with 0.9+) +Release: 2%{?dist} +Summary: Xml-rs based deserializer for Serde (compatible with 0.9+) +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/serde-xml-rs Source: %{crates_source} @@ -17,21 +18,14 @@ Source: %{crates_source} Patch0: serde-xml-rs-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif 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+). +%global _description %{expand: +Xml-rs based deserializer for Serde (compatible with 0.9+).} %description %{_description} @@ -89,6 +83,9 @@ which use "with-backtrace" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -101,5 +98,8 @@ which use "with-backtrace" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 21 19:46:06 CEST 2019 Igor Gnatenko - 0.3.1-2 +- Regenerate + * Sat Apr 27 09:30:29 CEST 2019 Igor Gnatenko - 0.3.1-1 - Initial package