# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate termcolor Name: rust-%{crate} Version: 0.3.2 Release: 2%{?dist} Summary: Simple cross platform library for writing colored text to a terminal License: Unlicense or MIT URL: https://crates.io/crates/termcolor Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No windows Patch0: termcolor-0.3.2-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel A simple cross platform library for writing colored text to a terminal. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license COPYING UNLICENSE LICENSE-MIT %doc README.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Wed Jun 14 2017 Igor Gnatenko - 0.3.2-2 - Port to use rust-packaging * Wed Mar 15 2017 Igor Gnatenko - 0.3.2-1 - Update to 0.3.2 * Wed Mar 15 2017 Igor Gnatenko - 0.3.1-1 - Update to 0.3.1 * Sun Feb 26 2017 Igor Gnatenko - 0.3.0-1 - Update to 0.3.0 * Sat Feb 18 2017 Igor Gnatenko - 0.2.0-1 - Initial package