From e9ebce417e8bd04ba8aa868874bfc9a969322b32 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 10 Mar 2019 10:05:19 +0100 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-termcolor.spec | 9 ++++++--- termcolor-fix-metadata.diff | 2 +- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 +++++++++++++ 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-termcolor.spec b/rust-termcolor.spec index 1049fe6..b788292 100644 --- a/rust-termcolor.spec +++ b/rust-termcolor.spec @@ -7,13 +7,13 @@ Name: rust-%{crate} Version: 1.0.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Simple cross platform library for writing colored text to a terminal # Upstream license specification: Unlicense OR MIT License: Unlicense or MIT URL: https://crates.io/crates/termcolor -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows Patch0: termcolor-fix-metadata.diff @@ -54,7 +54,7 @@ which use "default" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -69,6 +69,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Mar 10 2019 Igor Gnatenko - 1.0.4-4 +- Adapt to new packaging + * Sat Feb 02 2019 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/termcolor-fix-metadata.diff b/termcolor-fix-metadata.diff index 97cd805..56714a1 100644 --- a/termcolor-fix-metadata.diff +++ b/termcolor-fix-metadata.diff @@ -1,5 +1,5 @@ --- 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 ++++ termcolor-1.0.4/Cargo.toml 2019-03-10T10:04:52.047292+01:00 @@ -26,5 +26,3 @@ [lib] name = "termcolor" diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..49ef312 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-termcolor