diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b1b710f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/assert_cmd-1.0.0.crate diff --git a/rust-assert_cmd.spec b/rust-assert_cmd.spec new file mode 100644 index 0000000..3de8fcd --- /dev/null +++ b/rust-assert_cmd.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global __cargo_is_bin() false + +%global crate assert_cmd + +Name: rust-%{crate} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Test CLI Applications + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/assert_cmd +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Test CLI Applications.} + +%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 CHANGELOG.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 + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# https://github.com/assert-rs/assert_cmd/issues/95 +%cargo_test -- --lib +%endif + +%changelog +* Mon Mar 30 10:44:16 CEST 2020 Igor Raits - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..80100cd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (assert_cmd-1.0.0.crate) = 8748882267017b4c55e867017182ac05a9b0306e52c6ad970d4c585eaf0f5a1ad8f15a03f4e1ebf6b10d1982a62bcccb4c8eaedda071cc8c61130a7de1cece12