From 449a89855b5d044f54e05d5091bf1baecfc46081 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 6 Nov 2023 16:19:06 +0100 Subject: [PATCH] Initial import (#2247854) --- .gitignore | 1 + README.md | 3 -- rust-rstest_reuse.spec | 73 ++++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 5 +++ sources | 1 + 5 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-rstest_reuse.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7124616 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rstest_reuse-0.6.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 2e86f21..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rstest_reuse - -The rust-rstest_reuse package diff --git a/rust-rstest_reuse.spec b/rust-rstest_reuse.spec new file mode 100644 index 0000000..e89f3b2 --- /dev/null +++ b/rust-rstest_reuse.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 25 +# * missing dev-dependency: rstest_test ^0.11 +%bcond_with check +%global debug_package %{nil} + +%global crate rstest_reuse + +Name: rust-rstest_reuse +Version: 0.6.0 +Release: %autorelease +Summary: Reusable test attributes for rstest + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/rstest_reuse +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Reuse rstest attributes: create a set of tests and apply it to every +scenario you want to test.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENCE-MIT +%license %{crate_instdir}/LICENSE-APACHE +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/checkoutlist.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..f26c631 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +summary = "Reusable test attributes for rstest" +description = """\ +Reuse rstest attributes: create a set of tests and apply it to every +scenario you want to test.""" diff --git a/sources b/sources new file mode 100644 index 0000000..36312b6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rstest_reuse-0.6.0.crate) = b8a4c6c0484587e7f88153a2cf20e8c3ca9c48a46cb93a686a40be642743d2952158232c36a5078abd81722ea8fba2981ffe31585052771bec7cf29976417705