From 8280c82a5ca9ebcf131637aa42bb5858bbf4c95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Fri, 9 Nov 2018 22:53:10 +0100 Subject: [PATCH] Adapt to new packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- rust-num-complex.spec | 89 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 77 insertions(+), 12 deletions(-) diff --git a/rust-num-complex.spec b/rust-num-complex.spec index afa05b2..de2b65c 100644 --- a/rust-num-complex.spec +++ b/rust-num-complex.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Complex numbers implementation for Rust # Upstream license specification: MIT/Apache-2.0 @@ -17,23 +17,90 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] 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) BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0) BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) -%description -%{summary}. +%global _description \ +Complex numbers implementation for Rust + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Complex numbers implementation for Rust. +%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 RELEASES.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}+rand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand-devel %{_description} + +This package contains library source intended for building other packages +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}+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 @@ -50,12 +117,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}/ - %changelog +* Fri Nov 09 2018 Robert-André Mauchin - 0.2.1-2 +- Adapt to new packaging + * Tue Oct 09 2018 Josh Stone - 0.2.1-1 - Update to 0.2.1