diff --git a/rust-url.spec b/rust-url.spec index 29a435b..5d8a6a0 100644 --- a/rust-url.spec +++ b/rust-url.spec @@ -1,13 +1,12 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate url Name: rust-%{crate} Version: 1.7.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: URL library for Rust, based on the WHATWG URL Standard # Upstream license specification: MIT/Apache-2.0 @@ -19,20 +18,14 @@ Source: %{crates_source} Patch0: url-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(idna/default) >= 0.1.0 with crate(idna/default) < 0.2.0) -BuildRequires: (crate(matches/default) >= 0.1.0 with crate(matches/default) < 0.2.0) -BuildRequires: (crate(percent-encoding/default) >= 1.0.0 with crate(percent-encoding/default) < 2.0.0) -%if %{with check} -BuildRequires: (crate(bencher/default) >= 0.1.0 with crate(bencher/default) < 0.2.0) -BuildRequires: (crate(rustc-serialize/default) >= 0.3.0 with crate(rustc-serialize/default) < 0.4.0) -BuildRequires: (crate(rustc-test/default) >= 0.3.0 with crate(rustc-test/default) < 0.4.0) -BuildRequires: (crate(serde_json/default) >= 0.6.1 with crate(serde_json/default) < 0.9.0) -%endif -%global _description \ -URL library for Rust, based on the WHATWG URL Standard. +%global _description %{expand: +URL library for Rust, based on the WHATWG URL Standard.} %description %{_description} @@ -138,6 +131,9 @@ which use "serde" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -150,6 +146,9 @@ which use "serde" feature of "%{crate}" crate. %endif %changelog +* Thu Jun 20 00:12:03 CEST 2019 Igor Gnatenko - 1.7.2-4 +- Regenerate + * Sun Mar 10 2019 Igor Gnatenko - 1.7.2-3 - Do not pull optional dependencies