From bb60e8fe26f0f55495a3db0dd695abc3cb918b3e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 14 Apr 2022 19:18:00 +0200 Subject: [PATCH] Initial import (serial_test_derive 0.5 compat package) --- .gitignore | 1 + README.md | 3 -- rust-serial_test_derive0.5.spec | 71 +++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-serial_test_derive0.5.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e642a14 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serial_test_derive-0.5.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index bb35a5b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serial_test_derive0.5 - -The rust-serial_test_derive0.5 package diff --git a/rust-serial_test_derive0.5.spec b/rust-serial_test_derive0.5.spec new file mode 100644 index 0000000..71c498f --- /dev/null +++ b/rust-serial_test_derive0.5.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate serial_test_derive + +Name: rust-%{crate}0.5 +Version: 0.5.1 +Release: %autorelease +Summary: Helper crate for serial_test + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/serial_test_derive +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Helper crate for serial_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 +%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/sources b/sources new file mode 100644 index 0000000..f483dcf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serial_test_derive-0.5.1.crate) = e3f4b3c2eed1b284dbff7447c2f912343f9b95cbd88f3387c0136ca42698b38a607c752277ee4590ded9f73f475325d2652ba67ba029ddd54711d9070ac5f43e