diff --git a/rust-unicode-width.spec b/rust-unicode-width.spec index 192a610..0a45f5e 100644 --- a/rust-unicode-width.spec +++ b/rust-unicode-width.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.1.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Determine displayed width of `char` and `str` types # Upstream license specification: MIT/Apache-2.0 @@ -22,19 +22,49 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Determine displayed width of `char` and `str` types\ +according to Unicode Standard Annex #11 rules. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Determine displayed width of `char` and `str` types -according to Unicode Standard Annex #11 rules. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE COPYRIGHT +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+no_std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no_std-devel %{_description} + +This package contains library source intended for building other packages +which use "no_std" feature of "%{crate}" crate. + +%files -n %{name}+no_std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -51,12 +81,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE COPYRIGHT -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.1.5-4 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.1.5-3 - Run tests in infrastructure