From f7c1ed4b0e5812c56c95b4e2366158b62b3795db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Mon, 16 Dec 2019 23:22:39 +0100 Subject: [PATCH] Initial import (#1783613) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- .gitignore | 1 + rust-tester.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 100 insertions(+) create mode 100644 .gitignore create mode 100644 rust-tester.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2e7d84 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tester-0.7.0.crate diff --git a/rust-tester.spec b/rust-tester.spec new file mode 100644 index 0000000..978ead9 --- /dev/null +++ b/rust-tester.spec @@ -0,0 +1,98 @@ +# Generated by rust2rpm 12 +%bcond_without check +%global debug_package %{nil} + +%global crate tester + +Name: rust-%{crate} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Fork of Rust's `test` crate that doesn't require unstable language features + +# Upstream license specification: MIT OR Apache-2.0 +# https://github.com/messense/rustc-test/issues/5 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/tester +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Fork of Rust's `test` crate that doesn't require unstable language features.} + +%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 +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%package -n %{name}+asm_black_box-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+asm_black_box-devel %{_description} + +This package contains library source intended for building other packages +which use "asm_black_box" feature of "%{crate}" crate. + +%files -n %{name}+asm_black_box-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+capture-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+capture-devel %{_description} + +This package contains library source intended for building other packages +which use "capture" feature of "%{crate}" crate. + +%files -n %{name}+capture-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Sat Dec 14 02:58:40 CET 2019 Robert-André Mauchin - 0.7.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f82fce4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tester-0.7.0.crate) = 2f49e35eb40519c1a89ef766270007429dec33f9f1bafa29b55c7ba20d69206bbe0a454ed971cb96ab4bcf191a8be79da6e01e5b2b346bbe2e805ae4b2f7e134