diff --git a/rust-ucd-trie.spec b/rust-ucd-trie.spec index 570a109..a93d713 100644 --- a/rust-ucd-trie.spec +++ b/rust-ucd-trie.spec @@ -6,37 +6,66 @@ Name: rust-%{crate} Version: 0.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Trie for storing Unicode codepoint sets and maps # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/ucd-trie -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) +BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0) %endif -%description -%{summary}. +%global _description \ +A trie for storing Unicode codepoint sets and maps. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A trie for storing Unicode codepoint sets and maps. +%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}+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 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -50,12 +79,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 +* Sun Feb 10 2019 Igor Gnatenko - 0.1.1-4 +- Adapt to new packaging + * Sat Feb 09 2019 Igor Gnatenko - 0.1.1-3 - Run tests in infrastructure