# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate test-log Name: rust-test-log Version: 0.2.13 Release: %autorelease Summary: Replacement of the #[test] attribute that initializes logging and/or tracing infrastructure before running tests License: Apache-2.0 OR MIT URL: https://crates.io/crates/test-log Source: %{crates_source} BuildRequires: rust-packaging >= 21 BuildRequires: rust-env_logger0.9-devel >= 0.9.0, rust-env_logger0.9-devel < 0.10.0 BuildRequires: rust-log+default-devel >= 0.4.8, rust-log+default-devel < 0.5.0 BuildRequires: rust-proc-macro2-devel >= 1.0.32, rust-proc-macro2-devel < 2.0.0 BuildRequires: rust-quote-devel >= 1.0.0, rust-quote-devel < 2.0.0 BuildRequires: rust-syn-devel >= 2.0.0, rust-syn-devel < 3.0.0 BuildRequires: rust-syn+full-devel >= 2.0.0, rust-syn+full-devel < 3.0.0 BuildRequires: rust-syn+parsing-devel >= 2.0.0, rust-syn+parsing-devel < 3.0.0 BuildRequires: rust-syn+printing-devel >= 2.0.0, rust-syn+printing-devel < 3.0.0 BuildRequires: rust-syn+proc-macro-devel >= 2.0.0, rust-syn+proc-macro-devel < 3.0.0 BuildRequires: rust-test-case+default-devel >= 3.1.0, rust-test-case+default-devel < 4.0.0 BuildRequires: rust-tokio-devel >= 1.0.0, rust-tokio-devel < 2.0.0 BuildRequires: rust-tokio+macros-devel >= 1.0.0, rust-tokio+macros-devel < 2.0.0 BuildRequires: rust-tokio+rt-multi-thread-devel >= 1.0.0, rust-tokio+rt-multi-thread-devel < 2.0.0 BuildRequires: rust-tracing-futures-devel >= 0.2.0, rust-tracing-futures-devel < 0.3.0 BuildRequires: rust-tracing-futures+std-future-devel >= 0.2.0, rust-tracing-futures+std-future-devel < 0.3.0 BuildRequires: rust-tracing-subscriber-devel >= 0.3.0, rust-tracing-subscriber-devel < 0.4.0 BuildRequires: rust-tracing-subscriber+env-filter-devel >= 0.3.0, rust-tracing-subscriber+env-filter-devel < 0.4.0 BuildRequires: rust-tracing-subscriber+fmt-devel >= 0.3.0, rust-tracing-subscriber+fmt-devel < 0.4.0 BuildRequires: rust-tracing+default-devel >= 0.1.20, rust-tracing+default-devel < 0.2.0 %global _description %{expand: A replacement of the #[test] attribute that initializes logging and/or tracing infrastructure before running tests.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %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 %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trace-devel %{_description} This package contains library source intended for building other packages which use the "trace" feature of the "%{crate}" crate. %files -n %{name}+trace-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