From 07508d84be29d8cceb41225d6e980ea140f9d385 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 10 Feb 2019 08:53:36 +0100 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-num-iter.spec | 74 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/rust-num-iter.spec b/rust-num-iter.spec index 566944f..15bde4d 100644 --- a/rust-num-iter.spec +++ b/rust-num-iter.spec @@ -6,35 +6,82 @@ Name: rust-%{crate} Version: 0.1.37 -Release: 4%{?dist} +Release: 5%{?dist} Summary: External iterators for generic mathematics +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/num-iter -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] BuildRequires: (crate(num-integer) >= 0.1.38 with crate(num-integer) < 0.2.0) +BuildRequires: (crate(num-integer/i128) >= 0.1.38 with crate(num-integer/i128) < 0.2.0) +BuildRequires: (crate(num-integer/std) >= 0.1.38 with crate(num-integer/std) < 0.2.0) BuildRequires: (crate(num-traits) >= 0.2.4 with crate(num-traits) < 0.3.0) +BuildRequires: (crate(num-traits/i128) >= 0.2.4 with crate(num-traits/i128) < 0.3.0) +BuildRequires: (crate(num-traits/std) >= 0.2.4 with crate(num-traits/std) < 0.3.0) -%description -%{summary}. +%global _description \ +External iterators for generic mathematics. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -External iterators for generic mathematics. +%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 RELEASES.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/{bors.toml,ci} + +%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}+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 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -48,13 +95,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md RELEASES.md -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/{bors.toml,ci} - %changelog +* Sun Feb 10 2019 Igor Gnatenko - 0.1.37-5 +- Adapt to new packaging + * Sat Feb 09 2019 Igor Gnatenko - 0.1.37-4 - Run tests in infrastructure