From b1d688a6010621bea3765e77f31f1b6395cb5227 Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 14 Sep 2023 23:55:57 +0200 Subject: [PATCH] Initial package (rhbz#2239036) --- .gitignore | 1 + README.md | 3 -- rust-libtest-mimic.spec | 72 +++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 ++ sources | 1 + 5 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-libtest-mimic.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ebbb75e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libtest-mimic-0.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 9fac42b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-libtest-mimic - -The rust-libtest-mimic package diff --git a/rust-libtest-mimic.spec b/rust-libtest-mimic.spec new file mode 100644 index 0000000..e3b816b --- /dev/null +++ b/rust-libtest-mimic.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate libtest-mimic + +Name: rust-libtest-mimic +Version: 0.6.1 +Release: %autorelease +Summary: Test harness that looks and behaves like rustc's built-in test harness + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/libtest-mimic +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Write your own test harness that looks and behaves like the built-in +test harness used by `rustc --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}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.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_no_tilde} -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.conf b/rust2rpm.conf new file mode 100644 index 0000000..367d10d --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Test harness that looks and behaves like rustc's built-in test harness diff --git a/sources b/sources new file mode 100644 index 0000000..6ecc8cd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libtest-mimic-0.6.1.crate) = 16f22d0c1c54b66b8ea5ae5702f8fff3f40bb210cc92069e3ab4a25a4a665ae2020de5d6e82902e236fdb097b9477fbee6edd085f3d2e764c320eb3a3b7c9141