The package rpms/rust-git2_0.13.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-git2_0.13.git/commit/?id=cf0....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit cf009bd5634090c2716b06ea32790320125193eb
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Fri Jul 8 15:15:28 2022 +0200
Initial import (git2 0.13 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1f9c27e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/git2-0.13.20.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..dd0f003
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+buildrequires =
+ /usr/bin/git
diff --git a/README.md b/README.md
deleted file mode 100644
index 54e9e65..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-git2_0.13
-
-The rust-git2_0.13 package
diff --git a/git2-fix-metadata.diff b/git2-fix-metadata.diff
new file mode 100644
index 0000000..f6c1f47
--- /dev/null
+++ b/git2-fix-metadata.diff
@@ -0,0 +1,20 @@
+--- git2-0.13.20/Cargo.toml 1970-01-01T00:00:00+00:00
++++ git2-0.13.20/Cargo.toml 2022-07-08T13:13:18.566459+00:00
+@@ -46,7 +46,7 @@
+ version = "3.1.0"
+
+ [dev-dependencies.thread-id]
+-version = "3.3.0"
++version = "4"
+
+ [dev-dependencies.time]
+ version = "0.1.39"
+@@ -57,8 +57,6 @@
+ ssh = ["libgit2-sys/ssh"]
+ ssh_key_from_memory = ["libgit2-sys/ssh_key_from_memory"]
+ unstable = []
+-vendored-openssl = ["openssl-sys/vendored"]
+-zlib-ng-compat = ["libgit2-sys/zlib-ng-compat"]
+ [target."cfg(all(unix, not(target_os =
\"macos\")))".dependencies.openssl-probe]
+ version = "0.1"
+ optional = true
diff --git a/rust-git2_0.13.spec b/rust-git2_0.13.spec
new file mode 100644
index 0000000..2200122
--- /dev/null
+++ b/rust-git2_0.13.spec
@@ -0,0 +1,153 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate git2
+
+Name: rust-%{crate}_0.13
+Version: 0.13.20
+Release: %autorelease
+Summary: Bindings to libgit2 for interoperating with git repositories
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/git2
+Source: %{crates_source}
+# Initial patched metadata
+# * drop features for using vendored OpenSSL and zlib-ng
+# * bump thread-id from 3.3.0 to 4
+Patch0: git2-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Bindings to libgit2 for interoperating with git repositories. This library is
+both threadsafe and memory safe and allows both reading and writing git
+repositories.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENSE-APACHE
+%license %{crate_instdir}/LICENSE-MIT
+%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
+
+%package -n %{name}+https-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+https-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "https" feature of the "%{crate}" crate.
+
+%files -n %{name}+https-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+openssl-probe-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+openssl-probe-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "openssl-probe" feature of the "%{crate}" crate.
+
+%files -n %{name}+openssl-probe-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+openssl-sys-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+openssl-sys-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "openssl-sys" feature of the "%{crate}" crate.
+
+%files -n %{name}+openssl-sys-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+ssh-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+ssh-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "ssh" feature of the "%{crate}" crate.
+
+%files -n %{name}+ssh-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+ssh_key_from_memory-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+ssh_key_from_memory-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "ssh_key_from_memory" feature of the "%{crate}" crate.
+
+%files -n %{name}+ssh_key_from_memory-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+unstable-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+unstable-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "unstable" feature of the "%{crate}" crate.
+
+%files -n %{name}+unstable-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+%if %{with check}
+echo '/usr/bin/git'
+%endif
+
+%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..25f13dd
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (git2-0.13.20.crate) =
2c0a9cf3391f4ea5eaa48c8fcc08a1cf27b877cc4960332bfdbb95620f9b161f720c35f87bf98e3771749a01444bf8e2337e6d8fc1a34962d4b041473115293f