# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate flexi_logger Name: rust-flexi_logger Version: 0.30.2 Release: %autorelease Summary: Easy-to-configure and flexible logger License: MIT OR Apache-2.0 URL: https://crates.io/crates/flexi_logger Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: flexi_logger-fix-metadata-auto.diff Patch1: versions.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: An easy-to-configure and flexible logger that writes logs to stderr or stdout and/or to files. It allows custom logline formats, and it allows changing the log specification at runtime. It also allows defining additional log streams, e.g. for alert or security messages.} %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}+async-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-devel %{_description} This package contains library source intended for building other packages which use the "async" feature of the "%{crate}" crate. %files -n %{name}+async-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+buffer_writer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+buffer_writer-devel %{_description} This package contains library source intended for building other packages which use the "buffer_writer" feature of the "%{crate}" crate. %files -n %{name}+buffer_writer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+colors-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+colors-devel %{_description} This package contains library source intended for building other packages which use the "colors" feature of the "%{crate}" crate. %files -n %{name}+colors-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compress-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compress-devel %{_description} This package contains library source intended for building other packages which use the "compress" feature of the "%{crate}" crate. %files -n %{name}+compress-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dont_minimize_extra_stacks-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dont_minimize_extra_stacks-devel %{_description} This package contains library source intended for building other packages which use the "dont_minimize_extra_stacks" feature of the "%{crate}" crate. %files -n %{name}+dont_minimize_extra_stacks-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+specfile-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+specfile-devel %{_description} This package contains library source intended for building other packages which use the "specfile" feature of the "%{crate}" crate. %files -n %{name}+specfile-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+specfile_without_notification-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+specfile_without_notification-devel %{_description} This package contains library source intended for building other packages which use the "specfile_without_notification" feature of the "%{crate}" crate. %files -n %{name}+specfile_without_notification-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+syslog_writer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+syslog_writer-devel %{_description} This package contains library source intended for building other packages which use the "syslog_writer" feature of the "%{crate}" crate. %files -n %{name}+syslog_writer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+textfilter-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+textfilter-devel %{_description} This package contains library source intended for building other packages which use the "textfilter" feature of the "%{crate}" crate. %files -n %{name}+textfilter-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trc-devel %{_description} This package contains library source intended for building other packages which use the "trc" feature of the "%{crate}" crate. %files -n %{name}+trc-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog