From a0f1d56132686a33489af0934a2f1a0781955217 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 7 Nov 2017 17:05:41 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-num-complex.spec | 67 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 rust-num-complex.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72db6d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/num-complex-0.1.40.crate diff --git a/rust-num-complex.spec b/rust-num-complex.spec new file mode 100644 index 0000000..ba860a5 --- /dev/null +++ b/rust-num-complex.spec @@ -0,0 +1,67 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate num-complex + +Name: rust-%{crate} +Version: 0.1.40 +Release: 1%{?dist} +Summary: Complex numbers implementation for Rust + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/num-complex +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(num-traits) >= 0.1.39 with crate(num-traits) < 0.2.0) +BuildRequires: (crate(rustc-serialize) >= 0.3.19 with crate(rustc-serialize) < 0.4.0) +BuildRequires: (crate(serde) >= 0.7.0 with crate(serde) < 0.9.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Complex numbers implementation for Rust. + +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-MIT LICENSE-APACHE +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Tue Nov 07 2017 Igor Gnatenko - 0.1.40-1 +- Update to 0.1.40 + +* Thu Jun 15 2017 Igor Gnatenko - 0.1.38-1 +- Update to 0.1.38 + +* Wed Jun 14 2017 Igor Gnatenko - 0.1.36-2 +- Port to use rust-packaging + +* Thu Mar 02 2017 Igor Gnatenko - 0.1.36-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6fa37f2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (num-complex-0.1.40.crate) = 8620fea55aef267e19e3dd9e1801d91b265f5c4fbd542ca20ee01c84761f3aad2d595ae2c599d46062a1f459c502f1b23baea855270583b78668c8b57717c623