The package rpms/rust-libloading0.6.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-libloading0.6.git/commit/?id....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 97238db573dc818183f6fc45037ab0d6fd4596d7
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Wed Mar 3 17:13:56 2021 +0100
initial import (libloading 0.6 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d5cb33f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/libloading-0.6.7.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 5d5047c..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-libloading0.6
-
-The rust-libloading0.6 package
diff --git a/libloading-fix-metadata.diff b/libloading-fix-metadata.diff
new file mode 100644
index 0000000..629f7ac
--- /dev/null
+++ b/libloading-fix-metadata.diff
@@ -0,0 +1,9 @@
+--- libloading-0.6.7/Cargo.toml 1970-01-01T00:00:00+00:00
++++ libloading-0.6.7/Cargo.toml 2021-03-03T16:11:23.413301+00:00
+@@ -31,6 +31,3 @@
+ version = "1.1"
+ [target."cfg(unix)".dependencies.cfg-if]
+ version = "1"
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3"
+-features = ["winerror", "errhandlingapi", "libloaderapi"]
diff --git a/rust-libloading0.6.spec b/rust-libloading0.6.spec
new file mode 100644
index 0000000..fb75408
--- /dev/null
+++ b/rust-libloading0.6.spec
@@ -0,0 +1,78 @@
+# Generated by rust2rpm 16
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate libloading
+
+Name: rust-%{crate}0.6
+Version: 0.6.7
+Release: 1%{?dist}
+Summary: Safer binding to platform’s dynamic library loading utilities
+
+# Upstream license specification: ISC
+License: ISC
+URL:
https://crates.io/crates/libloading
+Source: %{crates_source}
+# Initial patched metadata
+# * No windows
+Patch0: libloading-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Safer binding to platform’s dynamic library loading utilities.}
+
+%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.mkd
+%{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
+* Wed Mar 03 2021 Fabio Valentini <decathorpe(a)gmail.com> - 0.6.7-1
+- Initial compat package for libloading 0.6
diff --git a/sources b/sources
new file mode 100644
index 0000000..b833b24
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libloading-0.6.7.crate) =
4f4f37c5a04c20860c38407e8c7aa81386dfeb091773e480dfe87b5fb2a462dc195ec0c39a1add59cad7620373a671772e8f032f4efc624580c6227ae902e10e