The package rpms/rust-opml.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-opml.git/commit/?id=964db8ba....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 964db8ba75656cb553ef47545afea6339ff70a0f
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Tue Jul 20 16:34:58 2021 +0200
Initial import; Fixes RHBZ#1965823
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5e490a2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/opml-1.1.1-clean.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 0cbc236..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-opml
-
-The rust-opml package
diff --git a/gen_clean_tarball.sh b/gen_clean_tarball.sh
new file mode 100755
index 0000000..71643d6
--- /dev/null
+++ b/gen_clean_tarball.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/bash
+
+set -e
+
+CRATE="opml"
+NAME="rust-${CRATE}"
+
+VERSION=$(rpmspec -q $NAME.spec --srpm --qf "%{version}")
+URL="https://crates.io/api/v1/crates/${CRATE}/${VERSION}/download"
+
+ROOTDIR="${CRATE}-${VERSION}"
+
+# download and extract published crate from crates.io
+wget $URL -O ${ROOTDIR}.crate
+tar -xzf ${ROOTDIR}.crate
+rm ${ROOTDIR}.crate
+
+pushd ${ROOTDIR}
+# remove files with questionable licenses and tests that need them
+rm -r tests
+# clean up cargo files
+rm .cargo_vcs_info.json Cargo.lock
+mv Cargo.toml.orig Cargo.toml
+# init git repository
+git init && git add . && git commit -m "import"
+# repackage crate
+cargo package
+# move clean crate
+mv target/package/${ROOTDIR}.crate ../${ROOTDIR}-clean.crate
+popd
+
+# remove temporary directory
+rm -rf ${ROOTDIR}
+
diff --git a/rust-opml.spec b/rust-opml.spec
new file mode 100644
index 0000000..0cc12f5
--- /dev/null
+++ b/rust-opml.spec
@@ -0,0 +1,77 @@
+# Generated by rust2rpm 18
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate opml
+
+Name: rust-%{crate}
+Version: 1.1.1
+Release: %autorelease
+Summary: OPML parser for Rust
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/opml
+Source: %{crate}-%{version_no_tilde}-clean.crate
+# script to create tarball without files with unacceptable licenses
+# run "rust2rpm opml" and then "./gen_clean_tarball.sh" for new
versions
+Source1: gen_clean_tarball.sh
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+OPML parser 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-MIT LICENSE-Apache
+%doc examples
+%{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
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..32a25d1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (opml-1.1.1-clean.crate) =
a6229a364192d0593eb2e7d647d42d7529f6acd4972b68b6bea27b4b13a27668081eb526a80a27e254eb8626640f9042af4868ca8d991f91aa161667ac3b17c4