Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent b68f14008d
commit 824f092151
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -7,38 +7,77 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.6 Version: 0.2.6
Release: 2%{?dist} Release: 3%{?dist}
Summary: Fast floating point to string conversion Summary: Fast floating point to string conversion
# Upstream license specification: Apache-2.0 OR BSL-1.0 # Upstream license specification: Apache-2.0 OR BSL-1.0
License: ASL 2.0 or Boost License: ASL 2.0 or Boost
URL: https://crates.io/crates/ryu URL: https://crates.io/crates/ryu
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate 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} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: (crate(no-panic/default) >= 0.1.0 with crate(no-panic/default) < 0.2.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(num_cpus/default) >= 1.8.0 with crate(num_cpus/default) < 2.0.0)
BuildRequires: (crate(num_cpus) >= 1.8.0 with crate(num_cpus) < 2.0.0) BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0)
BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0)
%endif %endif
%description %global _description \
%{summary}. Fast floating point to string conversion.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Fast floating point to string conversion.
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 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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -55,12 +94,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-APACHE LICENSE-BOOST
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sat Oct 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.6-3
- Adapt to new packaging
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.6-2 * Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.6-2
- Run tests in infrastructure - Run tests in infrastructure

@ -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"
Loading…
Cancel
Save