# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate slog-scope Name: rust-%{crate} Version: 4.1.1 Release: 1%{?dist} Summary: Logging scopes for slog-rs # Upstream license specification: MPL-2.0/MIT/Apache-2.0 License: MPLv2.0 or MIT or ASL 2.0 URL: https://crates.io/crates/slog-scope Source: %{crates_source} # Initial patched metadata # * Bump slog-term to released, https://github.com/slog-rs/scope/pull/8 # * Switch to arc-swap, https://github.com/slog-rs/scope/pull/7 Patch0: slog-scope-fix-metadata.diff # Complete switch to arc-swap Patch0001: 0001-Switch-to-arc-swap.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(arc-swap/default) >= 0.3.0 with crate(arc-swap/default) < 0.4.0) BuildRequires: (crate(lazy_static/default) >= 1.2.0 with crate(lazy_static/default) < 2.0.0) BuildRequires: (crate(slog/default) >= 2.4.0 with crate(slog/default) < 3.0.0) %if %{with check} BuildRequires: (crate(slog-async/default) >= 2.0.0 with crate(slog-async/default) < 3.0.0) BuildRequires: (crate(slog-term/default) >= 2.0.0 with crate(slog-term/default) < 3.0.0) %endif %global _description \ Logging scopes 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-MIT LICENSE-APACHE 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 * Sun Apr 28 07:54:49 CEST 2019 Igor Gnatenko - 4.1.1-1 - Initial package