From f911a1ee67a824e09425868943fc064d186ce5c8e8fa36c38460973cdc629919 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 21 Jul 2022 14:18:07 +0000 Subject: [PATCH 1/2] - Update to 1.9.2: * New Repository.create_commit_string(...) and Repository.create_commit_with_signature(...) #1142 * Linux and macOS wheels updated to libgit2 v1.4.3 * Remove redundant line #1139 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=67 --- pygit2-1.9.1.tar.gz | 3 --- pygit2-1.9.2.tar.gz | 3 +++ python-pygit2.changes | 9 +++++++++ python-pygit2.spec | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 pygit2-1.9.1.tar.gz create mode 100644 pygit2-1.9.2.tar.gz diff --git a/pygit2-1.9.1.tar.gz b/pygit2-1.9.1.tar.gz deleted file mode 100644 index bcbb874..0000000 --- a/pygit2-1.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef6479c3b6192825316b056336db77ebff6e7849aeb1fbb88b76001ac337b9c9 -size 296962 diff --git a/pygit2-1.9.2.tar.gz b/pygit2-1.9.2.tar.gz new file mode 100644 index 0000000..cb415d4 --- /dev/null +++ b/pygit2-1.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20894433df1146481aacae37e2b0f3bbbfdea026db2f55061170bd9823e40b19 +size 728548 diff --git a/python-pygit2.changes b/python-pygit2.changes index 3a32c9a..17c5053 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jul 21 14:17:29 UTC 2022 - Steve Kowalik + +- Update to 1.9.2: + * New Repository.create_commit_string(...) and + Repository.create_commit_with_signature(...) #1142 + * Linux and macOS wheels updated to libgit2 v1.4.3 + * Remove redundant line #1139 + ------------------------------------------------------------------- Sat Mar 26 18:51:51 UTC 2022 - Dirk Müller diff --git a/python-pygit2.spec b/python-pygit2.spec index 700db1c..db45f3e 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pygit2 -Version: 1.9.1 +Version: 1.9.2 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0-only From 2792e03e4c0d9cc6ccd5abcbb83b68ce7229b5e06d5dc4342dbe958210af3d64 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 21 Jul 2022 14:45:28 +0000 Subject: [PATCH 2/2] - Add patch support-libgit-1.5.patch: * Suppot libgit 1.5.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=68 --- python-pygit2.changes | 4 +++- python-pygit2.spec | 2 ++ support-libgit-1.5.patch | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 support-libgit-1.5.patch diff --git a/python-pygit2.changes b/python-pygit2.changes index 17c5053..31b2160 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,11 +1,13 @@ ------------------------------------------------------------------- -Thu Jul 21 14:17:29 UTC 2022 - Steve Kowalik +Thu Jul 21 14:44:55 UTC 2022 - Steve Kowalik - Update to 1.9.2: * New Repository.create_commit_string(...) and Repository.create_commit_with_signature(...) #1142 * Linux and macOS wheels updated to libgit2 v1.4.3 * Remove redundant line #1139 +- Add patch support-libgit-1.5.patch: + * Suppot libgit 1.5.0 ------------------------------------------------------------------- Sat Mar 26 18:51:51 UTC 2022 - Dirk Müller diff --git a/python-pygit2.spec b/python-pygit2.spec index db45f3e..3c1176e 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -26,6 +26,8 @@ Summary: Python bindings for libgit2 License: GPL-2.0-only URL: https://github.com/libgit2/pygit2 Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz +# PATCH-FIX-UPSTREAM based on gh#libgit2/pygit2#14b1df84060ea4ab085202382e80672ec1a104e3 +Patch0: support-libgit-1.5.patch BuildRequires: %{python_module cached-property} BuildRequires: %{python_module cffi >= 1.4.0} BuildRequires: %{python_module devel} diff --git a/support-libgit-1.5.patch b/support-libgit-1.5.patch new file mode 100644 index 0000000..12bd343 --- /dev/null +++ b/support-libgit-1.5.patch @@ -0,0 +1,15 @@ +diff --git a/src/types.h b/src/types.h +index 78023e28..e851eacb 100644 +--- a/src/types.h ++++ b/src/types.h +@@ -32,8 +32,8 @@ + #include + #include + +-#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 4) +-#error You need a compatible libgit2 version (1.4.x) ++#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 4 && LIBGIT2_VER_MINOR <= 5) ++#error You need a compatible libgit2 version (1.4.x or 1.5.x) + #endif + + /*