# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate pretty_env_logger Name: rust-%{crate} Version: 0.2.5 Release: 2%{?dist} Summary: Visually pretty env_logger # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/pretty_env_logger Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(ansi_term/default) >= 0.11.0 with crate(ansi_term/default) < 0.12.0) BuildRequires: (crate(chrono/default) >= 0.4.4 with crate(chrono/default) < 0.5.0) BuildRequires: (crate(env_logger/default) >= 0.5.0 with crate(env_logger/default) < 0.6.0) BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) %global _description \ a visually pretty env_logger %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 # https://github.com/seanmonstar/pretty-env-logger/pull/13 #doc README.md %{cargo_registry}/%{crate}-%{version}/ %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}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Feb 02 2019 Fedora Release Engineering - 0.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 09 2018 Josh Stone - 0.2.5-1 - Update to 0.2.5 - Adapt to new packaging * Sat Jul 14 2018 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jul 12 2018 Igor Gnatenko - 0.2.4-1 - Update to 0.2.4 * Sat May 12 2018 Igor Gnatenko - 0.2.3-1 - Update to 0.2.3 * Mon Mar 26 2018 Josh Stone - 0.2.2-2 - Bump ansi_term to 0.11 * Thu Feb 08 2018 Igor Gnatenko - 0.2.2-1 - Update to 0.2.2 * Thu Feb 08 2018 Igor Gnatenko - 0.2.1-1 - Update to 0.2.1 * Sat Jan 20 2018 Igor Gnatenko - 0.2.0-1 - Update to 0.2.0 * Mon Jan 08 2018 Igor Gnatenko - 0.1.1-2 - Rebuild for rust-packaging v5 * Sun Dec 03 2017 Igor Gnatenko - 0.1.1-1 - Initial package