The package rpms/rust-libxml0.2.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-libxml0.2.git/commit/?id=9cc....
Change:
+ExcludeArch: %{ix86} %{arm}
Thanks.
Full change:
============
commit 9ccf9938cb108dab0120317e4c0ff03a4ff1e32c
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Wed Apr 6 19:38:23 2022 +0200
Initial import (libxml 0.2 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a8f9825
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/libxml-0.2.16.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..c8c641b
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(libxml-2.0)
+lib.requires =
+ pkgconfig(libxml-2.0)
diff --git a/README.md b/README.md
deleted file mode 100644
index deec220..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-libxml0.2
-
-The rust-libxml0.2 package
diff --git a/libxml-fix-metadata.diff b/libxml-fix-metadata.diff
new file mode 100644
index 0000000..dfe52c5
--- /dev/null
+++ b/libxml-fix-metadata.diff
@@ -0,0 +1,22 @@
+--- libxml-0.2.16/Cargo.toml 2021-02-01T00:47:25+00:00
++++ libxml-0.2.16/Cargo.toml 2022-04-05T21:11:19.119297+00:00
+@@ -27,19 +27,10 @@
+ [lib]
+ name = "libxml"
+
+-[[bench]]
+-name = "parsing_benchmarks"
+-harness = false
+ [dependencies.libc]
+ version = "0.2"
+-[dev-dependencies.criterion]
+-version = "0.3.0"
+
+ [dev-dependencies.rayon]
+ version = "1.0.0"
+-[target."cfg(macos)".build-dependencies.pkg-config]
+-version = "0.3.2"
+ [target."cfg(unix)".build-dependencies.pkg-config]
+ version = "0.3.2"
+-[target."cfg(windows)".build-dependencies.vcpkg]
+-version = "0.2"
diff --git a/rust-libxml0.2.spec b/rust-libxml0.2.spec
new file mode 100644
index 0000000..b9d5965
--- /dev/null
+++ b/rust-libxml0.2.spec
@@ -0,0 +1,83 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate libxml
+
+Name: rust-%{crate}0.2
+Version: 0.2.16
+Release: %autorelease
+Summary: Rust wrapper for libxml2
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/libxml
+Source: %{crates_source}
+# Initial patched metadata
+# * drop unused, benchmark-only criterion dev-dependency to speed up builds
+# * drop windows- and mac OS-specific dependencies
+Patch0: libxml-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+# * disable building on 32-bit architectures (bindings were generated on a
+# 64-bit architecture and hard-code 64-bit assumptions):
+#
https://github.com/KWARC/rust-libxml/issues/73
+ExcludeArch: %{ix86} %{arm}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Rust wrapper for libxml2 - the XML C parser and toolkit developed for the Gnome
+project.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(libxml-2.0)
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENSE
+%doc %{crate_instdir}/CHANGELOG.md
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
+
+%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 the "default" feature of the "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo 'pkgconfig(libxml-2.0)'
+
+%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..082f652
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libxml-0.2.16.crate) =
375c0efcfe12dab4199d2fb7eb817ab8c9491fdf7f042f637a129a74cad1082ce146a8cd4602657d03ce3c77eaa3e6567a7c0ef459311eb60715d873ec40bb8b