diff --git a/rust-textwrap.spec b/rust-textwrap.spec index a3d0eec..aab0826 100644 --- a/rust-textwrap.spec +++ b/rust-textwrap.spec @@ -1,37 +1,44 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 9 +%bcond_without check %global debug_package %{nil} %global crate textwrap Name: rust-%{crate} Version: 0.11.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Small library for word wrapping, indenting, and dedenting strings +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/textwrap Source: %{crates_source} +# Initial patched metadata +# * Update version-sync to 0.8, https://github.com/mgeisler/textwrap/pull/159 +Patch0: textwrap-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging +%if ! %{__cargo_skip_build} BuildRequires: (crate(unicode-width/default) >= 0.1.3 with crate(unicode-width/default) < 0.2.0) %if %{with check} BuildRequires: (crate(lipsum/default) >= 0.6.0 with crate(lipsum/default) < 0.7.0) BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0) BuildRequires: (crate(rand_xorshift/default) >= 0.1.0 with crate(rand_xorshift/default) < 0.2.0) -BuildRequires: (crate(version-sync/default) >= 0.6.0 with crate(version-sync/default) < 0.7.0) +BuildRequires: (crate(version-sync/default) >= 0.8.0 with crate(version-sync/default) < 0.9.0) +%endif %endif -%global _description \ -Textwrap is a small library for word wrapping, indenting, and\ -dedenting strings.\ -\ -You can use it to format strings (such as help and error messages)\ -for display in commandline applications. It is designed to be efficient\ -and handle Unicode characters correctly. +%global _description %{expand: +Small library for word wrapping, indenting, and dedenting strings. + +You can use it to format strings (such as help and error messages) for display +in commandline applications. It is designed to be efficient and handle Unicode +characters correctly.} %description %{_description} @@ -101,6 +108,9 @@ which use "term_size" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 09 11:29:10 CEST 2019 Igor Gnatenko - 0.11.0-2 +- Regenerate + * Fri Apr 05 09:07:43 CEST 2019 Igor Gnatenko - 0.11.0-1 - Update to 0.11.0 diff --git a/textwrap-fix-metadata.diff b/textwrap-fix-metadata.diff new file mode 100644 index 0000000..6b091e5 --- /dev/null +++ b/textwrap-fix-metadata.diff @@ -0,0 +1,11 @@ +--- textwrap-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ textwrap-0.11.0/Cargo.toml 2019-06-09T09:31:20.567731+00:00 +@@ -45,7 +45,7 @@ + version = "0.1" + + [dev-dependencies.version-sync] +-version = "0.6" ++version = "0.8" + [badges.appveyor] + repository = "mgeisler/textwrap" +