The package rpms/rust-slug.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-slug.git/commit/?id=ab478f67....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit ab478f6794173c9d95ab50c9cd85ff2975001210
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Jun 1 08:17:59 2019 +0200
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0830ba3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/slug-0.1.4.crate
diff --git a/rust-slug.spec b/rust-slug.spec
new file mode 100644
index 0000000..a161dca
--- /dev/null
+++ b/rust-slug.spec
@@ -0,0 +1,73 @@
+# Generated by rust2rpm 9
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate slug
+
+Name: rust-%{crate}
+Version: 0.1.4
+Release: 1%{?dist}
+Summary: Convert a unicode string to a slug
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/slug
+Source: %{crates_source}
+# Initial patched metadata
+# * Update deunicode to 1,
https://github.com/Stebalien/slug-rs/pull/4
+Patch0: slug-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(deunicode/default) >= 1.0.0 with crate(deunicode/default) <
2.0.0)
+
+%global _description %{expand:
+Convert a unicode string to a slug.}
+
+%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 LICENSE-MIT LICENSE-APACHE
+%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} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Fri May 31 11:34:12 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.1.4-1
+- Initial package
diff --git a/slug-fix-metadata.diff b/slug-fix-metadata.diff
new file mode 100644
index 0000000..999d978
--- /dev/null
+++ b/slug-fix-metadata.diff
@@ -0,0 +1,8 @@
+--- slug-0.1.4/Cargo.toml 1970-01-01T00:00:00+00:00
++++ slug-0.1.4/Cargo.toml 2019-05-31T09:34:12.172710+00:00
+@@ -22,4 +22,4 @@
+ license = "MIT/Apache-2.0"
+ repository = "https://github.com/Stebalien/slug-rs"
+ [dependencies.deunicode]
+-version = "0.4.0"
++version = "1"
diff --git a/sources b/sources
new file mode 100644
index 0000000..077ba35
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (slug-0.1.4.crate) =
2c85dabcca9400c5e2a3b409997403a6acb17357449df4ef9a7b27511c5a979bfcb1a4d80b7e7c36122233ee6d47e59507631dd6ac9e93d1610f54b9b160ee96
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..df7a4cd
--- /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-slug