|
|
|
@ -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 <ignatenkobrain@fedoraproject.org> - 0.11.0-2
|
|
|
|
|
- Regenerate
|
|
|
|
|
|
|
|
|
|
* Fri Apr 05 09:07:43 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-1
|
|
|
|
|
- Update to 0.11.0
|
|
|
|
|
|
|
|
|
|