# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate slog-term Name: rust-%{crate} Version: 2.4.0 Release: 1%{?dist} Summary: Unix terminal drain and formatter for slog-rs # Upstream license specification: MPL-2.0/MIT/Apache-2.0 # https://github.com/slog-rs/term/commit/ff5372ddf0ac5ca03fa5a30094e669376679cd92 License: MPLv2.0 or MIT or ASL 2.0 URL: https://crates.io/crates/slog-term Source: %{crates_source} # Initial patched metadata # * Switch to atty, https://github.com/slog-rs/term/pull/20 Patch0: slog-term-fix-metadata.diff # Code changes for atty change Patch0001: 0001-Switch-to-atty.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(atty/default) >= 0.2.0 with crate(atty/default) < 0.3.0) BuildRequires: (crate(chrono/default) >= 0.4.0 with crate(chrono/default) < 0.5.0) BuildRequires: (crate(slog/default) >= 2.0.0 with crate(slog/default) < 3.0.0) BuildRequires: (crate(term/default) >= 0.5.1 with crate(term/default) < 0.6.0) BuildRequires: (crate(thread_local/default) >= 0.3.3 with crate(thread_local/default) < 0.4.0) %if %{with check} BuildRequires: (crate(slog-async/default) >= 2.0.0 with crate(slog-async/default) < 3.0.0) %endif %global _description \ Unix terminal drain and formatter for slog-rs. %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-MPL2 %doc README.md CHANGELOG.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_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Apr 27 08:51:09 CEST 2019 Igor Gnatenko - 2.4.0-1 - Initial package