Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 318afdd420
commit a68dc908bc
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,5 +1,5 @@
# Generated by rust2rpm # Generated by rust2rpm
# Tests are run in infrastructure # * Tests are run in infrastructure
%bcond_with check %bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
@ -7,7 +7,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.0.4 Version: 1.0.4
Release: 1%{?dist} Release: 2%{?dist}
Summary: Simple cross platform library for writing colored text to a terminal Summary: Simple cross platform library for writing colored text to a terminal
# Upstream license specification: Unlicense OR MIT # 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 Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata # Initial patched metadata
# * No windows # * No windows
Patch0: termcolor-1.0.1-fix-metadata.diff Patch0: termcolor-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%description %global _description \
%{summary}. A simple cross platform library for writing colored text to a terminal.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A simple cross platform library for writing colored text to a terminal.
This package contains library source intended for building other packages 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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -50,12 +68,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license COPYING UNLICENSE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sun Oct 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.4-2
- Adapt to new packaging
* Mon Sep 17 2018 Josh Stone <jistone@redhat.com> - 1.0.4-1 * Mon Sep 17 2018 Josh Stone <jistone@redhat.com> - 1.0.4-1
- Update to 1.0.4 - Update to 1.0.4

@ -1,5 +1,5 @@
--- termcolor-1.0.1/Cargo.toml 1970-01-01T01:00:00+01:00 --- termcolor-1.0.4/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 2018-10-28T02:18:45.250180+02:00
@@ -26,5 +26,3 @@ @@ -26,5 +26,3 @@
[lib] [lib]
name = "termcolor" name = "termcolor"
Loading…
Cancel
Save