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 31b27e5a8a901c690c3ed6a9929fdd4d8566c11f
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Fri Jul 8 14:47:12 2022 +0200
Update to version 0.12.26+1.3.0
diff --git a/.gitignore b/.gitignore
index 4ba5a53..f18db18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/*.src.rpm
/libgit2-sys-0.12.21+1.1.0.crate
+/libgit2-sys-0.12.26+1.3.0.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
index a50702a..1b8dd8b 100644
--- a/.rust2rpm.conf
+++ b/.rust2rpm.conf
@@ -1,7 +1,9 @@
[DEFAULT]
buildrequires =
- (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)
+ (pkgconfig(libgit2) >= 1.3.0 with pkgconfig(libgit2) < 2.0.0)
lib.requires =
- (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)
+ (pkgconfig(libgit2) >= 1.3.0 with pkgconfig(libgit2) < 2.0.0)
unwanted-features =
+ vendored
+ vendored-openssl
zlib-ng-compat
diff --git a/libgit2-sys-fix-metadata.diff b/libgit2-sys-fix-metadata.diff
index 638cc33..cb67e94 100644
--- a/libgit2-sys-fix-metadata.diff
+++ b/libgit2-sys-fix-metadata.diff
@@ -1,11 +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 @@
+--- libgit2-sys-0.12.26+1.3.0/Cargo.toml 1970-01-01T00:00:01+00:00
++++ libgit2-sys-0.12.26+1.3.0/Cargo.toml 2022-07-08T12:44:01.823104+00:00
+@@ -12,7 +12,7 @@
[package]
edition = "2018"
name = "libgit2-sys"
--version = "0.12.21+1.1.0"
-+version = "0.12.21"
+-version = "0.12.26+1.3.0"
++version = "0.12.26"
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
index 271ffc1..1f8aebf 100644
--- a/rust-libgit2-sys0.12.spec
+++ b/rust-libgit2-sys0.12.spec
@@ -3,10 +3,10 @@
%global debug_package %{nil}
%global crate libgit2-sys
-%global upstream_version 0.12.21+1.1.0
+%global upstream_version 0.12.26+1.3.0
Name: rust-%{crate}0.12
-Version: 0.12.21
+Version: 0.12.26
Release: %autorelease
Summary: Native bindings to the libgit2 library
@@ -30,7 +30,7 @@ Native bindings to the libgit2 library.}
%package devel
Summary: %{summary}
BuildArch: noarch
-Requires: (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)
+Requires: (pkgconfig(libgit2) >= 1.3.0 with pkgconfig(libgit2) < 2.0.0)
%description devel %{_description}
@@ -122,7 +122,7 @@ rm -vr libgit2/
%generate_buildrequires
%cargo_generate_buildrequires
-echo '(pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)'
+echo '(pkgconfig(libgit2) >= 1.3.0 with pkgconfig(libgit2) < 2.0.0)'
%build
%cargo_build
diff --git a/sources b/sources
index 0377be5..546d1a1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libgit2-sys-0.12.21+1.1.0.crate) =
fd6acaaec704fb2d159cbaf0bd1b81c7afe4d22aecd836b174001b017ed8421507739fd99da968cfb1d46db16a64fe6568f53e872aa5f9a9dd7fb2cb51b02d74
+SHA512 (libgit2-sys-0.12.26+1.3.0.crate) =
de30865b3d4ab0288e090381e5646e3e8028c341fac93014168fcfa5f166f7fbad9fc4ebd285919247cc6bac178658eb936ea1fdf168068248be07ad34ecc54d
commit e07aa8c98bc26381f55793fcea29422815858703
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