Initial import (#1993472)

epel9
Fabio Valentini 3 years ago
parent e75ca97c8b
commit bc0bb7dcf1
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

6
.gitignore vendored

@ -0,0 +1,6 @@
/results_*/
/*.src.rpm
/mockall_double-0.2.0.crate
/LICENSE-APACHE
/LICENSE-MIT

@ -0,0 +1,3 @@
[DEFAULT]
unwanted-features =
nightly

@ -1,3 +0,0 @@
# rust-mockall_double
The rust-mockall_double package

@ -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

@ -0,0 +1,3 @@
SHA512 (mockall_double-0.2.0.crate) = ecc21b427393f7165031247613479fc993afd2ce5784ec627b50c3664cea0cd2899c19d1de4591a62efb1f7f308e9fe6e365ae03d7009f5fcd891b5c3badee74
SHA512 (LICENSE-APACHE) = 175a88be0fdec82e81809921d4e03113c369534f7c1de0594438af5b0c596f26cb713ae0de52de682dbbf725a88340d051631577e10b0092c17b9b04465de3c8
SHA512 (LICENSE-MIT) = e70db24309be386c1782fc311fbfcbc00555418fcfbae26ef5aab7292f0a4a506952f4146f738337b51af766add80930e396102d071051a072b55ad093e9bd91
Loading…
Cancel
Save