diff --git a/rust-term.spec b/rust-term.spec index da10736..81c730b 100644 --- a/rust-term.spec +++ b/rust-term.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate term Name: rust-%{crate} Version: 0.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Terminal formatting library # Upstream license specification: MIT/Apache-2.0 @@ -15,16 +15,18 @@ URL: https://crates.io/crates/term Source: %{crates_source} # Initial patched metadata # * No windows +# * Update dirs to 2.0.1, https://github.com/Stebalien/term/commit/a27c5079cd17104db148ddb836f1eb769a076c2a Patch0: term-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(byteorder/default) >= 1.2.1 with crate(byteorder/default) < 2.0.0) -BuildRequires: (crate(dirs/default) >= 1.0.2 with crate(dirs/default) < 2.0.0) -%global _description \ -A terminal formatting library. +%global _description %{expand: +Terminal formatting library.} %description %{_description} @@ -58,6 +60,9 @@ which use "default" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -70,6 +75,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Wed Jun 19 12:55:07 CEST 2019 Igor Gnatenko - 0.5.2-2 +- Update dirs to 2.0.1 + * Thu Mar 28 23:33:27 CET 2019 Igor Gnatenko - 0.5.2-1 - Update to 0.5.2 diff --git a/term-fix-metadata.diff b/term-fix-metadata.diff index 70b5c6c..107b108 100644 --- a/term-fix-metadata.diff +++ b/term-fix-metadata.diff @@ -1,6 +1,11 @@ --- term-0.5.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ term-0.5.2/Cargo.toml 2019-03-28T22:33:27.623495+00:00 -@@ -30,9 +30,6 @@ ++++ term-0.5.2/Cargo.toml 2019-06-19T10:55:07.342553+00:00 +@@ -26,13 +26,10 @@ + version = "1.2.1" + + [dependencies.dirs] +-version = "1.0.2" ++version = "2.0.1" [features] default = []