You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.5 KiB
88 lines
2.5 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate textwrap
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.9.0
|
|
Release: 4%{?dist}
|
|
Summary: Small library for word wrapping, indenting, and dedenting strings
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/textwrap
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
# Initial patched metadata
|
|
# * XXX: hyphenation is optional and brings a lot of legacy
|
|
# * Bump lipsum to 0.4, https://github.com/mgeisler/textwrap/commit/5c20fdef54644e1050ddc4f8a98e0bccc48513b5
|
|
# * Bump version-sync to 0.5, https://github.com/mgeisler/textwrap/commit/7160be3cb39c8503a433f6703efbdf66ece108e3
|
|
# * Bump rand to 0.4, https://github.com/mgeisler/textwrap/pull/120
|
|
Patch0: textwrap-0.9.0-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
# [dependencies]
|
|
BuildRequires: (crate(term_size) >= 0.3.0 with crate(term_size) < 0.4.0)
|
|
BuildRequires: (crate(unicode-width) >= 0.1.3 with crate(unicode-width) < 0.2.0)
|
|
%if %{with check}
|
|
# [dev-dependencies]
|
|
BuildRequires: (crate(lipsum) >= 0.4.0 with crate(lipsum) < 0.5.0)
|
|
BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0)
|
|
BuildRequires: (crate(version-sync) >= 0.5.0 with crate(version-sync) < 0.6.0)
|
|
%endif
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description devel
|
|
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.
|
|
|
|
This package contains library source intended for building other packages
|
|
which use %{crate} from crates.io.
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
%cargo_prep
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%changelog
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-4
|
|
- Rebuild for rust-packaging v5
|
|
|
|
* Mon Jan 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-3
|
|
- Bump rand to 0.4
|
|
|
|
* Mon Nov 20 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-2
|
|
- Bump version-sync to 0.5
|
|
|
|
* Thu Nov 09 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-1
|
|
- Update to 0.9.0
|
|
|
|
* Wed Jul 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-1
|
|
- Initial package
|