From 60028a519887ff69dc5b6cadcdbac88318d9e7c2 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: May 18 2020 10:12:26 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0401c96 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/testing_logger-0.1.1.crate diff --git a/rust-testing_logger.spec b/rust-testing_logger.spec new file mode 100644 index 0000000..e600f5a --- /dev/null +++ b/rust-testing_logger.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate testing_logger + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Supports writing tests to verify `log` crate calls + +# Upstream license specification: BSD-3-Clause +License: BSD +URL: https://crates.io/crates/testing_logger +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Supports writing tests to verify `log` crate calls.} + +%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 +%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 + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun May 17 13:07:10 CEST 2020 Igor Raits - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f29a695 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (testing_logger-0.1.1.crate) = 9ffc7dbc4b70be0d67e7ede68734d33ec16383b37ba8bdf1ec0ece8b17973ea2858ef24355a5b10f6135403b3ee2756f7fa14ed641a0515ca2da8ebb41019846