diff --git a/rust-extprim.spec b/rust-extprim.spec index bc8a324..c6a0031 100644 --- a/rust-extprim.spec +++ b/rust-extprim.spec @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 1.6.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Extra primitive types (u128, i128) +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/extprim Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -17,30 +18,82 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0) -BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) -BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive)) -# [build-dependencies] -BuildRequires: (crate(rustc_version) >= 0.2.0 with crate(rustc_version) < 0.3.0) -BuildRequires: (crate(semver) >= 0.9.0 with crate(semver) < 0.10.0) +BuildRequires: (crate(num-traits/default) >= 0.2.0 with crate(num-traits/default) < 0.3.0) +BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) +BuildRequires: (crate(rustc_version/default) >= 0.2.0 with crate(rustc_version/default) < 0.3.0) +BuildRequires: (crate(semver/default) >= 0.9.0 with crate(semver/default) < 0.10.0) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(extprim_literals) >= 2.0.0 with crate(extprim_literals) < 3.0.0) +BuildRequires: (crate(extprim_literals/default) >= 2.0.0 with crate(extprim_literals/default) < 3.0.0) %endif -%description -%{summary}. +%global _description \ +Extra primitive types (u128, i128). + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Extra primitive types (u128, i128). +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT.txt LICENSE-APACHE.txt +%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 + +%package -n %{name}+rand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "rand" feature of "%{crate}" crate. + +%files -n %{name}+rand-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+use-std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use-std-devel %{_description} + +This package contains library source intended for building other packages +which use "use-std" feature of "%{crate}" crate. + +%files -n %{name}+use-std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -57,12 +110,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT.txt LICENSE-APACHE.txt -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Tue Nov 13 2018 Josh Stone - 1.6.0-3 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 1.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild