diff --git a/rust-termcolor.spec b/rust-termcolor.spec index 324c0b8..39b980e 100644 --- a/rust-termcolor.spec +++ b/rust-termcolor.spec @@ -1,5 +1,5 @@ # Generated by rust2rpm -# Tests are run in infrastructure +# * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 1.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Simple cross platform library for writing colored text to a terminal # Upstream license specification: Unlicense OR MIT @@ -16,24 +16,42 @@ 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-1.0.1-fix-metadata.diff +Patch0: termcolor-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +A simple cross platform library for writing colored text to a terminal. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A simple cross platform library for writing colored text to a terminal. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license COPYING UNLICENSE LICENSE-MIT +%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 @@ -50,12 +68,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license COPYING UNLICENSE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 1.0.4-2 +- Adapt to new packaging + * Mon Sep 17 2018 Josh Stone - 1.0.4-1 - Update to 1.0.4 diff --git a/termcolor-1.0.1-fix-metadata.diff b/termcolor-fix-metadata.diff similarity index 50% rename from termcolor-1.0.1-fix-metadata.diff rename to termcolor-fix-metadata.diff index 398d1c5..97cd805 100644 --- a/termcolor-1.0.1-fix-metadata.diff +++ b/termcolor-fix-metadata.diff @@ -1,5 +1,5 @@ ---- termcolor-1.0.1/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ termcolor-1.0.1/Cargo.toml 2018-07-22T08:32:51.694302+02:00 +--- termcolor-1.0.4/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ termcolor-1.0.4/Cargo.toml 2018-10-28T02:18:45.250180+02:00 @@ -26,5 +26,3 @@ [lib] name = "termcolor"