From 789fe84c682670eb7f23d8237eebad9224cf0ef5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 10 Sep 2018 19:36:22 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-approx.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 rust-approx.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6cc24eb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/approx-0.3.0.crate diff --git a/rust-approx.spec b/rust-approx.spec new file mode 100644 index 0000000..7150d4d --- /dev/null +++ b/rust-approx.spec @@ -0,0 +1,59 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate approx + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Approximate floating point equality comparisons and assertions + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/approx +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(num-complex) >= 0.2.0 with crate(num-complex) < 0.3.0) +BuildRequires: (crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Approximate floating point equality comparisons and assertions. + +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 +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Sep 10 2018 Igor Gnatenko - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..317e70b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (approx-0.3.0.crate) = c9ddc84dc349d299bdd57532d2bc42294dbec40460b72b5b5c0d27926f8ffe030fd3bd54d78dd470742c65400e7e9dd48275de222b00e372067360cfa10d18b5