The package rpms/rust-ws.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-ws.git/commit/?id=f2c0ef9b9a....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit f2c0ef9b9a5b62847286c0666b4d0f8ba657f05c
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Thu May 30 23:26:16 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..f24c6e7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/ws-0.8.1.crate
diff --git a/rust-ws.spec b/rust-ws.spec
new file mode 100644
index 0000000..dbaecfd
--- /dev/null
+++ b/rust-ws.spec
@@ -0,0 +1,169 @@
+# Generated by rust2rpm 9
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate ws
+
+Name: rust-%{crate}
+Version: 0.8.1
+Release: 1%{?dist}
+Summary: Lightweight, event-driven WebSockets for Rust
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/ws
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(byteorder/default) >= 1.2.1 with crate(byteorder/default) <
2.0.0)
+BuildRequires: (crate(bytes/default) >= 0.4.6 with crate(bytes/default) < 0.5.0)
+BuildRequires: (crate(httparse/default) >= 1.2.4 with crate(httparse/default) <
2.0.0)
+BuildRequires: (crate(log/default) >= 0.4.1 with crate(log/default) < 0.5.0)
+BuildRequires: (crate(mio-extras/default) >= 2.0.0 with crate(mio-extras/default)
< 3.0.0)
+BuildRequires: (crate(mio/default) >= 0.6.14 with crate(mio/default) < 0.7.0)
+BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0)
+BuildRequires: (crate(sha-1/default) >= 0.8.0 with crate(sha-1/default) < 0.9.0)
+BuildRequires: (crate(slab/default) >= 0.4.0 with crate(slab/default) < 0.5.0)
+BuildRequires: (crate(url/default) >= 1.7.0 with crate(url/default) < 2.0.0)
+%if %{with check}
+BuildRequires: (crate(clap/default) >= 2.31.2 with crate(clap/default) < 3.0.0)
+BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default)
< 0.7.0)
+BuildRequires: (crate(term/default) >= 0.5.1 with crate(term/default) < 0.6.0)
+BuildRequires: (crate(time/default) >= 0.1.39 with crate(time/default) < 0.2.0)
+%endif
+
+%global _description %{expand:
+Lightweight, event-driven WebSockets for Rust.}
+
+%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
+%doc README.md CHANGELOG.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
+
+%package -n %{name}+libc-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+libc-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "libc" feature of "%{crate}" crate.
+
+%files -n %{name}+libc-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+libz-sys-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+libz-sys-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "libz-sys" feature of "%{crate}" crate.
+
+%files -n %{name}+libz-sys-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+native-tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+native-tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "native-tls" feature of "%{crate}" crate.
+
+%files -n %{name}+native-tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+nativetls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+nativetls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "nativetls" feature of "%{crate}" crate.
+
+%files -n %{name}+nativetls-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+openssl-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+openssl-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "openssl" feature of "%{crate}" crate.
+
+%files -n %{name}+openssl-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+permessage-deflate-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+permessage-deflate-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "permessage-deflate" feature of "%{crate}" crate.
+
+%files -n %{name}+permessage-deflate-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+ssl-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+ssl-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "ssl" feature of "%{crate}" crate.
+
+%files -n %{name}+ssl-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
+* Thu May 30 19:22:01 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.8.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..dd444b6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (ws-0.8.1.crate) =
4c11c37f30cdf4b04bdcb309e7aad16768a13fe73da7c9f2e1b4b6d5591bf1dfe739aa94812bf80dce833f0ed625bba3e70b1c9fc6a0ce34fa9f342e1ac047e3
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..4435238
--- /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-ws