[packages/python-pygit2] - updated to 1.9.2 for libgit2 1.4.x/python 3.7+
qboosh
qboosh at pld-linux.org
Mon Jun 27 22:44:58 CEST 2022
commit 3bf57d5c8fe5ba52c09eb955182573e5b86894da
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jun 27 22:46:33 2022 +0200
- updated to 1.9.2 for libgit2 1.4.x/python 3.7+
libgit2-1.2.patch | 11 -----------
python-pygit2.spec | 32 ++++++++++++++++----------------
2 files changed, 16 insertions(+), 27 deletions(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index 2d62c5f..0804f29 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -8,25 +8,22 @@
Summary: Python bindings for libgit2 library
Summary(pl.UTF-8): Wiązania Pythona do biblioteki libgit2
Name: python-%{module}
-Version: 1.6.1
-Release: 5
+Version: 1.9.2
+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: dea86e8c5db413d547dc6509124ccbf9
-Patch0: libgit2-1.2.patch
+# Source0-md5: 772a1b14dabc91e6a6dceb2cd0026d36
URL: https://pypi.org/project/pygit2/
-BuildRequires: libgit2-devel >= 1.1
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: python3-cffi >= 1.8.1
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-modules >= 1:3.2
+BuildRequires: libgit2-devel >= 1.4
+BuildRequires: python3-cffi >= 1.9.1
+BuildRequires: python3-devel >= 1:3.7
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%{?with_tests:BuildRequires: python3-pytest}
-Requires: libgit2 >= 1.1
-Requires: python-cffi
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -39,8 +36,7 @@ pygit2 to zbiór wiązań Pythona do biblioteki współdzielonej libgit2.
Summary: Python 3.x bindings for libgit2 library
Summary(pl.UTF-8): Wiązania Pythona 3.x do biblioteki libgit2
Group: Libraries/Python
-Requires: libgit2 >= 1.1
-Requires: python3-cffi
+Requires: libgit2 >= 1.4
%description -n python3-%{module}
pygit2 is a set of Python bindings to the libgit2 shared library.
@@ -50,12 +46,15 @@ pygit2 to zbiór wiązań Pythona do biblioteki współdzielonej libgit2.
%prep
%setup -q -n %{module}-%{version}
-%patch0 -p1
%build
%py3_build
-%{?with_tests:PYTHONPATH=$(echo $(pwd)/build-3/lib.*) %{__python3} -m pytest test}
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} -m pytest test
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -71,6 +70,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{py3_sitedir}/pygit2
%{py3_sitedir}/pygit2/decl
%{py3_sitedir}/pygit2/*.py
+%{py3_sitedir}/pygit2/*.pyi
%{py3_sitedir}/pygit2/__pycache__
%attr(755,root,root) %{py3_sitedir}/pygit2/_libgit2.abi3.so
%attr(755,root,root) %{py3_sitedir}/pygit2/_pygit2.cpython-*.so
diff --git a/libgit2-1.2.patch b/libgit2-1.2.patch
deleted file mode 100644
index 079007b..0000000
--- a/libgit2-1.2.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- pygit2-1.6.1/src/types.h~ 2021-06-19 11:40:24.000000000 +0200
-+++ pygit2-1.6.1/src/types.h 2021-09-05 09:45:39.881939711 +0200
-@@ -32,7 +32,7 @@
- #include <Python.h>
- #include <git2.h>
-
--#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 1)
-+#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 1)
- #error You need a compatible libgit2 version (1.1.x)
- #endif
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/3bf57d5c8fe5ba52c09eb955182573e5b86894da
More information about the pld-cvs-commit
mailing list