The package rpms/rust-copypasta.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-copypasta.git/commit/?id=42e....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 42ed320db410be905db553277490ae1c8ec5e290
Author: Michel Alexandre Salim <salimma(a)fedoraproject.org>
Date: Sat Jun 27 15:54:58 2020 -0700
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0ff8035
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/copypasta-0.7.0.crate
diff --git a/copypasta-rm-other-platforms.diff b/copypasta-rm-other-platforms.diff
new file mode 100644
index 0000000..57da2fb
--- /dev/null
+++ b/copypasta-rm-other-platforms.diff
@@ -0,0 +1,16 @@
+--- copypasta-0.7.0/Cargo.toml 2020-05-20T21:36:14+00:00
++++ copypasta-0.7.0/Cargo.toml 2020-05-22T19:14:07.269506+00:00
+@@ -34,13 +34,3 @@
+ [target."cfg(all(unix, not(any(target_os=\"macos\",
target_os=\"android\", target_os=\"ios\",
target_os=\"emscripten\"))))".dependencies.x11-clipboard]
+ version = "0.5.1"
+ optional = true
+-[target."cfg(target_os = \"macos\")".dependencies.objc]
+-version = "0.2"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc-foundation]
+-version = "0.1"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc_id]
+-version = "0.1"
+-[target."cfg(windows)".dependencies.clipboard-win]
+-version = "2.2"
diff --git a/rust-copypasta.spec b/rust-copypasta.spec
new file mode 100644
index 0000000..3f8d9cd
--- /dev/null
+++ b/rust-copypasta.spec
@@ -0,0 +1,126 @@
+# Generated by rust2rpm 13
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate copypasta
+
+Name: rust-%{crate}
+Version: 0.7.0
+Release: 1%{?dist}
+Summary: Cross-platform clipboard library with Wayland support
+
+# Upstream license specification: MIT / Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/copypasta
+Source: %{crates_source}
+# Remove other platforms (e.g. macOS)
+Patch0: copypasta-rm-other-platforms.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Cross-platform library for getting and setting the contents of the OS-level
+clipboard, with support for the Wayland clipboard.}
+
+%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.apache2
+%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}+smithay-clipboard-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+smithay-clipboard-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "smithay-clipboard" feature of "%{crate}" crate.
+
+%files -n %{name}+smithay-clipboard-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+wayland-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+wayland-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "wayland" feature of "%{crate}" crate.
+
+%files -n %{name}+wayland-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+x11-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+x11-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "x11" feature of "%{crate}" crate.
+
+%files -n %{name}+x11-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+x11-clipboard-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+x11-clipboard-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "x11-clipboard" feature of "%{crate}" crate.
+
+%files -n %{name}+x11-clipboard-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
+* Fri May 22 12:14:07 PDT 2020 Michel Alexandre Salim <salimma(a)fedoraproject.org> -
0.7.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..2a81bdc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (copypasta-0.7.0.crate) =
76210d4f1e6b2d8e7eeb698eda71501a0b0079df60f6261f8904f44feb3d6ecedf7ef0696feea7504e22448c54927d32b82d763a4e4670ea779d0661db318d03