diff --git a/rust-itoa.spec b/rust-itoa.spec index 28cef35..3a35a22 100644 --- a/rust-itoa.spec +++ b/rust-itoa.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.4.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fast functions for printing integer primitives to an io::Write # Upstream license specification: MIT/Apache-2.0 @@ -19,18 +19,60 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Fast functions for printing integer primitives to an io::Write. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Fast functions for printing integer primitives to an io::Write. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%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}+i128-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+i128-devel %{_description} + +This package contains library source intended for building other packages +which use "i128" feature of "%{crate}" crate. + +%files -n %{name}+i128-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -47,12 +89,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Fri Oct 26 2018 Igor Gnatenko - 0.4.3-3 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.4.3-2 - Run tests in infrastructure