diff --git a/rust-ucd-util.spec b/rust-ucd-util.spec index 8516796..1b0b3f4 100644 --- a/rust-ucd-util.spec +++ b/rust-ucd-util.spec @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 0.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Small utility library for working with the Unicode character database +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/ucd-util Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -18,18 +19,36 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +A small utility library for working with the Unicode character database. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A small utility library for working with the Unicode character database. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -46,12 +65,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.1.1-4 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.1.1-3 - Run tests in infrastructure