You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-ryu/rust-ryu.spec

71 lines
1.6 KiB

# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate ryu
Name: rust-%{crate}
6 years ago
Version: 0.2.6
Release: 1%{?dist}
Summary: Fast floating point to string conversion
6 years ago
# 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
%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)
%endif
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Fast floating point to string conversion.
This package contains library source intended for building other packages
which use %{crate} from crates.io.
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%files devel
6 years ago
%license LICENSE-APACHE LICENSE-BOOST
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
6 years ago
* Sat Sep 08 2018 Josh Stone <jistone@redhat.com> - 0.2.6-1
- Update to 0.2.6
* Sun Aug 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.4-1
- Update to 0.2.4
* Sat Aug 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-1
- Initial package