diff --git a/rust-ryu.spec b/rust-ryu.spec index 3ba4779..4c461bb 100644 --- a/rust-ryu.spec +++ b/rust-ryu.spec @@ -7,38 +7,77 @@ Name: rust-%{crate} Version: 0.2.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fast floating point to string conversion # Upstream license specification: Apache-2.0 OR BSL-1.0 License: ASL 2.0 or Boost URL: https://crates.io/crates/ryu Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate -# Initial patched metadata -# * no-panic is nightly -Patch0: ryu-0.2.3-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging +BuildRequires: (crate(no-panic/default) >= 0.1.0 with crate(no-panic/default) < 0.2.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(num_cpus) >= 1.8.0 with crate(num_cpus) < 2.0.0) -BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0) +BuildRequires: (crate(num_cpus/default) >= 1.8.0 with crate(num_cpus/default) < 2.0.0) +BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) %endif -%description -%{summary}. +%global _description \ +Fast floating point to string conversion. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Fast floating point to string conversion. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-BOOST +%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}+no-panic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no-panic-devel %{_description} + +This package contains library source intended for building other packages +which use "no-panic" feature of "%{crate}" crate. + +%files -n %{name}+no-panic-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+small-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+small-devel %{_description} + +This package contains library source intended for building other packages +which use "small" feature of "%{crate}" crate. + +%files -n %{name}+small-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -55,12 +94,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-APACHE LICENSE-BOOST -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.2.6-3 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.2.6-2 - Run tests in infrastructure diff --git a/ryu-0.2.3-fix-metadata.diff b/ryu-0.2.3-fix-metadata.diff deleted file mode 100644 index 2875c7c..0000000 --- a/ryu-0.2.3-fix-metadata.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- ryu-0.2.3/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ ryu-0.2.3/Cargo.toml 2018-08-18T10:28:43.004059+02:00 -@@ -24,9 +24,6 @@ - [[example]] - name = "benchmark" - path = "benchmark/benchmark.rs" --[dependencies.no-panic] --version = "0.1" --optional = true - [dev-dependencies.num_cpus] - version = "1.8" -