The package rpms/rust-cast.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-cast.git/commit/?id=532a7469....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 532a746900eb00fdf78b77b08a387a061e033975
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Wed Sep 12 06:58:10 2018 +0200
initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bc34975
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cast-0.2.2.crate
diff --git a/cast-fix-metadata.diff b/cast-fix-metadata.diff
new file mode 100644
index 0000000..8db684c
--- /dev/null
+++ b/cast-fix-metadata.diff
@@ -0,0 +1,16 @@
+--- cast-0.2.2/Cargo.toml 2017-05-07T23:55:45+02:00
++++ cast-0.2.2/Cargo.toml 2018-09-11T16:52:26.164875+02:00
+@@ -7,6 +7,7 @@
+ name = "cast"
+ repository = "https://github.com/japaric/cast.rs"
+ version = "0.2.2"
++exclude = ["/ci/*"]
+
+ [features]
+ # Assume we should use `std` unless asked to do otherwise.
+@@ -18,4 +19,4 @@
+ x128 = []
+
+ [dev-dependencies]
+-quickcheck = "0.4.1"
++quickcheck = "0.7"
diff --git a/rust-cast.spec b/rust-cast.spec
new file mode 100644
index 0000000..82b461e
--- /dev/null
+++ b/rust-cast.spec
@@ -0,0 +1,66 @@
+# Generated by rust2rpm
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate cast
+
+Name: rust-%{crate}
+Version: 0.2.2
+Release: 1%{?dist}
+Summary: Ergonomic, checked cast functions for primitive types
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/cast
+Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
+# Initial patched metadata
+# * Bump quickcheck to 0.7,
https://github.com/japaric/cast.rs/pull/17
+# * Remove CI files,
https://github.com/japaric/cast.rs/pull/18
+Patch0: cast-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+%if %{with check}
+# [dev-dependencies]
+BuildRequires: (crate(quickcheck) >= 0.7.0 with crate(quickcheck) < 0.8.0)
+%endif
+
+%description
+%{summary}.
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel
+Ergonomic, checked cast functions for primitive types.
+
+This package contains library source intended for building other packages
+which use %{crate} from crates.io.
+
+%prep
+%autosetup -n %{crate}-%{version} -p1
+#
https://github.com/japaric/cast.rs/pull/19
+sed -i -e '/#!\[deny(warnings)\]/d' src/lib.rs
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%files devel
+%license LICENSE-MIT LICENSE-APACHE
+%doc README.md CHANGELOG.md
+%{cargo_registry}/%{crate}-%{version}/
+
+%changelog
+* Tue Sep 11 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.2-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..5f9b77b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cast-0.2.2.crate) =
7b0e860a3c6c809799a9fc733bb0303cff819bc2b884cf77e1517aa9824c819c259edda7793be2fa5fa6573de4f07c0ff95f90a03d0d38c5905260e291ff9786