The package rpms/rust-libgit2-sys0.12.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-libgit2-sys0.12.git/commit/?....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit fbe1c154fbcc382a9ad21c87fd688e3d31f9d262
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Fri Jul 8 14:24:19 2022 +0200
Initial import (libgit2-sys 0.12 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4ba5a53
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/libgit2-sys-0.12.21+1.1.0.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..a50702a
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+buildrequires =
+ (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)
+lib.requires =
+ (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)
+unwanted-features =
+ zlib-ng-compat
diff --git a/README.md b/README.md
deleted file mode 100644
index e9d47ee..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-libgit2-sys0.12
-
-The rust-libgit2-sys0.12 package
diff --git a/libgit2-sys-fix-metadata.diff b/libgit2-sys-fix-metadata.diff
new file mode 100644
index 0000000..638cc33
--- /dev/null
+++ b/libgit2-sys-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- libgit2-sys-0.12.21+1.1.0/Cargo.toml 1970-01-01T00:00:00+00:00
++++ libgit2-sys-0.12.21+1.1.0/Cargo.toml 2022-07-08T12:39:28.422112+00:00
+@@ -13,7 +13,7 @@
+ [package]
+ edition = "2018"
+ name = "libgit2-sys"
+-version = "0.12.21+1.1.0"
++version = "0.12.21"
+ authors = ["Josh Triplett <josh(a)joshtriplett.org>", "Alex Crichton
<alex(a)alexcrichton.com>"]
+ build = "build.rs"
+ links = "git2"
diff --git a/rust-libgit2-sys0.12.spec b/rust-libgit2-sys0.12.spec
new file mode 100644
index 0000000..271ffc1
--- /dev/null
+++ b/rust-libgit2-sys0.12.spec
@@ -0,0 +1,139 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate libgit2-sys
+%global upstream_version 0.12.21+1.1.0
+
+Name: rust-%{crate}0.12
+Version: 0.12.21
+Release: %autorelease
+Summary: Native bindings to the libgit2 library
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/libgit2-sys
+Source: %{crates_source %{crate} %{upstream_version}}
+# Initial patched metadata
+# * Remove libgit2 version from version field
+Patch0: libgit2-sys-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Native bindings to the libgit2 library.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.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-APACHE
+%license %{crate_instdir}/LICENSE-MIT
+%{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}+libssh2-sys-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+libssh2-sys-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "libssh2-sys" feature of the "%{crate}" crate.
+
+%files -n %{name}+libssh2-sys-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
+
+%prep
+%autosetup -n %{crate}-%{upstream_version} -p1
+# remove bundled dependencies
+rm -vr libgit2/
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo '(pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.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..0377be5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libgit2-sys-0.12.21+1.1.0.crate) =
fd6acaaec704fb2d159cbaf0bd1b81c7afe4d22aecd836b174001b017ed8421507739fd99da968cfb1d46db16a64fe6568f53e872aa5f9a9dd7fb2cb51b02d74