[packages/python-pygit2] up to 1.19.0
atler
atler at pld-linux.org
Mon Dec 22 13:31:30 CET 2025
commit 1e12d396f89e19864926bf4ed504e71e45902ee1
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Dec 22 13:31:17 2025 +0100
up to 1.19.0
gcc14.patch | 37 -------------------------------------
python-pygit2.spec | 14 ++++++--------
2 files changed, 6 insertions(+), 45 deletions(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index 51a0aba..bc1f657 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -8,19 +8,18 @@
Summary: Python bindings for libgit2 library
Summary(pl.UTF-8): Wiązania Pythona do biblioteki libgit2
Name: python-%{module}
-Version: 1.16.0
-Release: 3
+Version: 1.19.0
+Release: 1
License: GPL v2 with linking exception
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pygit2/
Source0: https://files.pythonhosted.org/packages/source/p/pygit2/%{pypi_name}-%{version}.tar.gz
-# Source0-md5: 6badd46c191ecf776d24da5ed175790c
-Patch0: gcc14.patch
+# Source0-md5: 411d41189d99a69e6c7f0faa35e62442
URL: https://pypi.org/project/pygit2/
BuildRequires: libgit2-devel >= 1.4
-BuildRequires: python3-cffi >= 1.17.0
-BuildRequires: python3-devel >= 1:3.10
-BuildRequires: python3-modules >= 1:3.10
+BuildRequires: python3-cffi >= 2.0
+BuildRequires: python3-devel >= 1:3.11
+BuildRequires: python3-modules >= 1:3.11
BuildRequires: python3-setuptools
%{?with_tests:BuildRequires: python3-pytest}
BuildRequires: rpm-pythonprov
@@ -47,7 +46,6 @@ pygit2 to zbiór wiązań Pythona do biblioteki współdzielonej libgit2.
%prep
%setup -q -n %{module}-%{version}
-%patch -P 0 -p1
%build
%py3_build
diff --git a/gcc14.patch b/gcc14.patch
deleted file mode 100644
index 5bcd933..0000000
--- a/gcc14.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From eba710e45bb40e18641c6531394bb46631e7f295 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <mcepl at cepl.eu>
-Date: Tue, 5 Nov 2024 12:26:44 +0100
-Subject: [PATCH] fix: use correct type of the ninth parameter of
- git_commit_create()
-
-It should be `const git_commit **`, not `git_commit **`.
-
-Breaks the build with GCC-14.
----
- src/repository.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/src/repository.c b/src/repository.c
-index d1d42ecf..3b5d57a1 100644
---- a/src/repository.c
-+++ b/src/repository.c
-@@ -1065,7 +1065,8 @@ Repository_create_commit(Repository *self, PyObject *args)
-
- err = git_commit_create(&oid, self->repo, update_ref,
- py_author->signature, py_committer->signature,
-- encoding, message, tree, parent_count, parents);
-+ encoding, message, tree, parent_count,
-+ (const git_commit **)parents);
- if (err < 0) {
- Error_set(err);
- goto out;
-@@ -1147,7 +1148,8 @@ Repository_create_commit_string(Repository *self, PyObject *args)
-
- err = git_commit_create_buffer(&buf, self->repo,
- py_author->signature, py_committer->signature,
-- encoding, message, tree, parent_count, parents);
-+ encoding, message, tree, parent_count,
-+ (const git_commit **)parents);
- if (err < 0) {
- Error_set(err);
- goto out;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/1e12d396f89e19864926bf4ed504e71e45902ee1
More information about the pld-cvs-commit
mailing list