|
|
|
@ -1,15 +1,14 @@
|
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate unicode-width
|
|
|
|
|
|
|
|
|
|
Name: rust-unicode-width
|
|
|
|
|
Version: 0.1.11
|
|
|
|
|
Version: 0.2.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Determine displayed width of `char` and `str` types
|
|
|
|
|
Summary: Determine displayed width of 'char' and 'str' types
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/unicode-width
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
@ -17,7 +16,7 @@ Source: %{crates_source}
|
|
|
|
|
# * exclude scripts that are only useful for upstream development
|
|
|
|
|
Patch: unicode-width-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Determine displayed width of `char` and `str` types according to Unicode
|
|
|
|
@ -53,16 +52,16 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+bench-devel
|
|
|
|
|
%package -n %{name}+cjk-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+bench-devel %{_description}
|
|
|
|
|
%description -n %{name}+cjk-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "bench" feature of the "%{crate}" crate.
|
|
|
|
|
use the "cjk" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+bench-devel
|
|
|
|
|
%files -n %{name}+cjk-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+no_std-devel
|
|
|
|
@ -78,7 +77,7 @@ use the "no_std" feature of the "%{crate}" crate.
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|