The package rpms/rust-webbrowser.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-webbrowser.git/commit/?id=59....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 597347b1e701a5ca03b5ff397a8d432186909dbb
Author: Jens Reimann <jreimann(a)redhat.com>
Date: Fri Apr 9 09:35:09 2021 +0200
Initial import (#1947499).
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1f74b33
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/webbrowser-0.5.5.crate
diff --git a/disable-test.diff b/disable-test.diff
new file mode 100644
index 0000000..35db2e9
--- /dev/null
+++ b/disable-test.diff
@@ -0,0 +1,11 @@
+diff '--color=auto' -ur webbrowser-0.5.5/src/lib.rs
webbrowser-0.5.5-patch/src/lib.rs
+--- webbrowser-0.5.5/src/lib.rs 2020-07-19 23:06:18.000000000 +0200
++++ webbrowser-0.5.5-patch/src/lib.rs 2021-04-08 17:43:51.028664299 +0200
+@@ -232,6 +232,7 @@
+ compile_error!("Only Windows, Mac OS, Linux, *BSD and Haiku and Wasm32 are
currently supported");
+
+ #[test]
++#[ignore]
+ fn test_open_default() {
+ assert!(open("http://github.com").is_ok());
+
assert!(open("http://github.com?dummy_query1=0&dummy_query2=nonascii").is_ok());
diff --git a/rust-webbrowser.spec b/rust-webbrowser.spec
new file mode 100644
index 0000000..a350083
--- /dev/null
+++ b/rust-webbrowser.spec
@@ -0,0 +1,80 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate webbrowser
+
+Name: rust-%{crate}
+Version: 0.5.5
+Release: 1%{?dist}
+Summary: Open URLs in web browsers available on a platform
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/webbrowser
+Source: %{crates_source}
+# Initial patched metadata
+# * Disable windows dependencies
+Patch0: webbrowser-fix-metadata.diff
+# Disable test, as we have no UI running
+Patch1: disable-test.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Open URLs in web browsers available on a platform.}
+
+%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
+%doc README.md
+%license LICENSE-MIT LICENSE-APACHE
+%{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
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Thu Apr 08 17:41:02 CEST 2021 Jens Reimann <jreimann(a)redhat.com> - 0.5.5-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b40c8ba
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (webbrowser-0.5.5.crate) =
1a8332b3c5cb9114530beb83b15219d6dcf2aef628fa6f4a6b45f1b8eb3c38ad07ef933f3de21159c3df523fb904630f32ffcc14d75b209fd5e48d8e20e4ee94
diff --git a/webbrowser-fix-metadata.diff b/webbrowser-fix-metadata.diff
new file mode 100644
index 0000000..b4ff86f
--- /dev/null
+++ b/webbrowser-fix-metadata.diff
@@ -0,0 +1,17 @@
+--- webbrowser-0.5.5/Cargo.toml 2020-07-19T21:16:46+00:00
++++ webbrowser-0.5.5/Cargo.toml 2021-04-08T06:49:24.876697+00:00
+@@ -25,9 +25,9 @@
+ [target."cfg(target_arch = \"wasm32\")".dependencies.web-sys]
+ version = "0.3.36"
+ features = ["Window"]
+-[target."cfg(windows)".dependencies.widestring]
+-version = "0.4.0"
++#[target."cfg(windows)".dependencies.widestring]
++#version = "0.4.0"
+
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3.6"
+-features = ["combaseapi", "objbase", "shellapi",
"winerror"]
++#[target."cfg(windows)".dependencies.winapi]
++#version = "0.3.6"
++#features = ["combaseapi", "objbase", "shellapi",
"winerror"]