The package rpms/rust-instant.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-instant.git/commit/?id=884df....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 884df175db9a8ad82661ffff427242229f1ceb21
Author: Josh Stone <jistone(a)redhat.com>
Date: Thu Aug 27 13:01:36 2020 -0700
Initial package
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6e35b28
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/instant-0.1.6.crate
diff --git a/instant-fix-metadata.diff b/instant-fix-metadata.diff
new file mode 100644
index 0000000..2339f91
--- /dev/null
+++ b/instant-fix-metadata.diff
@@ -0,0 +1,66 @@
+--- instant-0.1.6/Cargo.toml 2020-07-05T19:38:15+00:00
++++ instant-0.1.6/Cargo.toml 2020-08-25T23:17:36.637130+00:00
+@@ -20,63 +20,9 @@
+ keywords = ["time", "wasm"]
+ license = "BSD-3-Clause"
+ repository = "https://github.com/sebcrozet/instant"
+-[dev-dependencies.wasm-bindgen-test]
+-version = "0.2"
+
+ [features]
+ now = ["time"]
+-wasm-bindgen = ["js-sys", "wasm-bindgen_rs", "web-sys"]
+-[target.asmjs-unknown-emscripten.dependencies.js-sys]
+-version = "0.3"
+-optional = true
+-
+-[target.asmjs-unknown-emscripten.dependencies.stdweb]
+-version = "0.4"
+-optional = true
+-
+-[target.asmjs-unknown-emscripten.dependencies.wasm-bindgen_rs]
+-version = "0.2"
+-optional = true
+-package = "wasm-bindgen"
+-
+-[target.asmjs-unknown-emscripten.dependencies.web-sys]
+-version = "0.3"
+-features = ["Window", "Performance", "PerformanceTiming"]
+-optional = true
+ [target."cfg(not(any(feature = \"stdweb\", feature =
\"wasm-bindgen\")))".dependencies.time]
+ version = "0.1"
+ optional = true
+-[target.wasm32-unknown-emscripten.dependencies.js-sys]
+-version = "0.3"
+-optional = true
+-
+-[target.wasm32-unknown-emscripten.dependencies.stdweb]
+-version = "0.4"
+-optional = true
+-
+-[target.wasm32-unknown-emscripten.dependencies.wasm-bindgen_rs]
+-version = "0.2"
+-optional = true
+-package = "wasm-bindgen"
+-
+-[target.wasm32-unknown-emscripten.dependencies.web-sys]
+-version = "0.3"
+-features = ["Window", "Performance", "PerformanceTiming"]
+-optional = true
+-[target.wasm32-unknown-unknown.dependencies.js-sys]
+-version = "0.3"
+-optional = true
+-
+-[target.wasm32-unknown-unknown.dependencies.stdweb]
+-version = "0.4"
+-optional = true
+-
+-[target.wasm32-unknown-unknown.dependencies.wasm-bindgen_rs]
+-version = "0.2"
+-optional = true
+-package = "wasm-bindgen"
+-
+-[target.wasm32-unknown-unknown.dependencies.web-sys]
+-version = "0.3"
+-features = ["Window", "Performance", "PerformanceTiming"]
+-optional = true
diff --git a/rust-instant.spec b/rust-instant.spec
new file mode 100644
index 0000000..151da89
--- /dev/null
+++ b/rust-instant.spec
@@ -0,0 +1,103 @@
+# Generated by rust2rpm 13
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate instant
+
+Name: rust-%{crate}
+Version: 0.1.6
+Release: 1%{?dist}
+Summary: Partial replacement for std::time::Instant that works on WASM too
+
+# Upstream license specification: BSD-3-Clause
+License: BSD
+URL:
https://crates.io/crates/instant
+Source: %{crates_source}
+# Initial patched metadata
+# * Remove wasm dependencies
+Patch0: instant-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Partial replacement for std::time::Instant that works on WASM too.}
+
+%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
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%package -n %{name}+now-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+now-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "now" feature of "%{crate}" crate.
+
+%files -n %{name}+now-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+time-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+time-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "time" feature of "%{crate}" crate.
+
+%files -n %{name}+time-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+rm tests/wasm.rs
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Tue Aug 25 16:17:36 PDT 2020 Josh Stone <jistone(a)redhat.com> - 0.1.6-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b77118e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (instant-0.1.6.crate) =
52a1b53dd6ab086679b5dc21902cb46fb91edcdf1a009ff13c43c89c0ba77e8b7f4c68e6c5939713d9f609d711881a502d121266fbfd99aa07e36807b3e5494a