The package rpms/rust-ansi_term0.11.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-ansi_term0.11.git/commit/?id....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 2b35fed8d89a38529578d466303a7a4e90591734
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Mon Jul 15 07:58:59 2019 +0200
Initial package
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ca12a70
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/ansi_term-0.11.0.crate
diff --git a/0001-Fix-failing-test.patch b/0001-Fix-failing-test.patch
new file mode 100644
index 0000000..cc553c8
--- /dev/null
+++ b/0001-Fix-failing-test.patch
@@ -0,0 +1,38 @@
+From 5ff6af6f38790abcb3aafee1239286c10ef69576 Mon Sep 17 00:00:00 2001
+From: Benjamin Sago <ogham(a)bsago.me>
+Date: Sat, 13 Jul 2019 14:34:47 +0100
+Subject: [PATCH] Fix failing test
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This test started failing because of a change in the derived Rust impl for Debug it
added commas, so our test string needs commas too. Fixes #51
+---
+ src/debug.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/debug.rs b/src/debug.rs
+index d8cd973..90a8373 100644
+--- a/src/debug.rs
++++ b/src/debug.rs
+@@ -105,7 +105,7 @@ mod test {
+ fn long_and_detailed() {
+ let debug = r##"Style {
+ foreground: Some(
+- Blue
++ Blue,
+ ),
+ background: None,
+ blink: false,
+@@ -115,7 +115,7 @@ mod test {
+ italic: false,
+ reverse: false,
+ strikethrough: false,
+- underline: false
++ underline: false,
+ }"##;
+ assert_eq!(debug, format!("{:#?}", Blue.bold()));
+ }
+--
+2.22.0
+
diff --git a/ansi_term-fix-metadata.diff b/ansi_term-fix-metadata.diff
new file mode 100644
index 0000000..c20ea04
--- /dev/null
+++ b/ansi_term-fix-metadata.diff
@@ -0,0 +1,9 @@
+--- ansi_term-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00
++++ ansi_term-0.11.0/Cargo.toml 2019-07-15T05:58:24.549267+00:00
+@@ -22,6 +22,3 @@
+
+ [lib]
+ name = "ansi_term"
+-[target."cfg(target_os=\"windows\")".dependencies.winapi]
+-version = "0.3.4"
+-features = ["errhandlingapi", "consoleapi", "processenv"]
diff --git a/rust-ansi_term0.11.spec b/rust-ansi_term0.11.spec
new file mode 100644
index 0000000..c55a7cb
--- /dev/null
+++ b/rust-ansi_term0.11.spec
@@ -0,0 +1,82 @@
+# Generated by rust2rpm 10
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate ansi_term
+
+Name: rust-%{crate}0.11
+Version: 0.11.0
+Release: 1%{?dist}
+Summary: Library for ANSI terminal colours and styles (bold, underline)
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/ansi_term
+Source: %{crates_source}
+# Initial patched metadata
+# * No winapi
+Patch0: ansi_term-fix-metadata.diff
+#
https://github.com/ogham/rust-ansi-term/commit/5ff6af6f38790abcb3aafee123...
+Patch0001: 0001-Fix-failing-test.patch
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Library for ANSI terminal colours and styles (bold, underline).}
+
+%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 LICENCE
+%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_no_tilde} -N
+find -type f -name '*.rs' -exec sed -i -e 's/\r//' "{}" \+
+%autopatch -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Mon Jul 15 07:58:24 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.11.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..d0a2a10
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (ansi_term-0.11.0.crate) =
a637466a380748f939b3af090b8c0333f35581925bc03f4dda9b3f95d338836403cf5487ae3af9ff68f8245a837f8ab061aabe57a126a6a2c20f2e972c77d1fa
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..ed086b9
--- /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-ansi_term