From bc0bb7dcf1d3439170b647b76e6357c83ba4dfbc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 27 Aug 2021 16:26:14 +0200 Subject: [PATCH] Initial import (#1993472) --- .gitignore | 6 ++++ .rust2rpm.conf | 3 ++ README.md | 3 -- rust-mockall_double.spec | 78 ++++++++++++++++++++++++++++++++++++++++ sources | 3 ++ 5 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 .rust2rpm.conf delete mode 100644 README.md create mode 100644 rust-mockall_double.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe7011d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/results_*/ +/*.src.rpm + +/mockall_double-0.2.0.crate +/LICENSE-APACHE +/LICENSE-MIT diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..1715b93 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + nightly diff --git a/README.md b/README.md deleted file mode 100644 index af2ce69..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-mockall_double - -The rust-mockall_double package diff --git a/rust-mockall_double.spec b/rust-mockall_double.spec new file mode 100644 index 0000000..edd6884 --- /dev/null +++ b/rust-mockall_double.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate mockall_double + +Name: rust-%{crate} +Version: 0.2.0 +Release: %autorelease +Summary: Test double adapter for Mockall + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/mockall_double +Source: %{crates_source} +# https://github.com/asomers/mockall/issues/328 +Source1: https://github.com/asomers/mockall/raw/mockall_double-v0.2.0/LICENSE-APACHE +Source2: https://github.com/asomers/mockall/raw/mockall_double-v0.2.0/LICENSE-MIT + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Test double adapter for Mockall.} + +%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-MIT LICENSE-APACHE +%doc README.md +%{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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep +cp %{SOURCE1} %{SOURCE2} . + +%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..811ea1d --- /dev/null +++ b/sources @@ -0,0 +1,3 @@ +SHA512 (mockall_double-0.2.0.crate) = ecc21b427393f7165031247613479fc993afd2ce5784ec627b50c3664cea0cd2899c19d1de4591a62efb1f7f308e9fe6e365ae03d7009f5fcd891b5c3badee74 +SHA512 (LICENSE-APACHE) = 175a88be0fdec82e81809921d4e03113c369534f7c1de0594438af5b0c596f26cb713ae0de52de682dbbf725a88340d051631577e10b0092c17b9b04465de3c8 +SHA512 (LICENSE-MIT) = e70db24309be386c1782fc311fbfcbc00555418fcfbae26ef5aab7292f0a4a506952f4146f738337b51af766add80930e396102d071051a072b55ad093e9bd91