From 89ca103a5a35c0d0f8a8be1208c9127d764ae2ff Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Dec 06 2019 17:00:25 +0000 Subject: Initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0b3369 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rust_decimal-1.0.3.crate diff --git a/rust-rust_decimal.spec b/rust-rust_decimal.spec new file mode 100644 index 0000000..825201d --- /dev/null +++ b/rust-rust_decimal.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 11 +%bcond_without check +%global debug_package %{nil} + +%global crate rust_decimal + +Name: rust-%{crate} +Version: 1.0.3 +Release: 1%{?dist} +Summary: Decimal Implementation written in pure Rust suitable for financial calculations + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/rust_decimal +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Decimal Implementation written in pure Rust suitable for financial +calculations.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md VERSION.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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+postgres-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+postgres-devel %{_description} + +This package contains library source intended for building other packages +which use "postgres" feature of "%{crate}" crate. + +%files -n %{name}+postgres-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 06 17:34:29 CET 2019 Igor Gnatenko - 1.0.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..721eb6a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rust_decimal-1.0.3.crate) = 672582c58b2c87a186733e9f3f3056e1689bbd9637eb30f00afbd47189883af47ea65f05c346fa21a697d7ddfbcf426c61ca1141187616ce922efe1254a04614 diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..a232dd7 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-rust_decimal