From bc63737d2632765a9ce2193f42179f777f403e21 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 10 Nov 2018 13:05:21 +0100 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-half.spec | 92 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 77 insertions(+), 15 deletions(-) diff --git a/rust-half.spec b/rust-half.spec index 2a544ba..87a4419 100644 --- a/rust-half.spec +++ b/rust-half.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Half-precision floating point f16 type for Rust # Upstream license specification: MIT/Apache-2.0 @@ -17,22 +17,87 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive)) +BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0) -%description -%{summary}. +%global _description \ +Half-precision floating point f16 type for Rust implementing the IEEE 754-2008\ +binary16 type. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Half-precision floating point f16 type for Rust implementing the IEEE 754-2008 -binary16 type. +%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 CHANGELOG.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}+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}+serialize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serialize-devel %{_description} + +This package contains library source intended for building other packages +which use "serialize" feature of "%{crate}" crate. + +%files -n %{name}+serialize-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 + +%package -n %{name}+use-intrinsics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use-intrinsics-devel %{_description} + +This package contains library source intended for building other packages +which use "use-intrinsics" feature of "%{crate}" crate. + +%files -n %{name}+use-intrinsics-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -49,13 +114,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml - %changelog +* Sat Nov 10 2018 Igor Gnatenko - 1.3.0-2 +- Adapt to new packaging + * Wed Oct 03 2018 Josh Stone - 1.3.0-1 - Update to 1.3.0