[packages/python3-git] - up to 3.1.26

baggins baggins at pld-linux.org
Thu Jan 13 13:50:18 CET 2022


commit fb4ab120551009985b92febef149471fb9d6fb64
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jan 13 13:49:58 2022 +0100

    - up to 3.1.26

 markdown.patch                      |  9 ++++
 python-git.spec => python3-git.spec | 89 +++++--------------------------------
 2 files changed, 21 insertions(+), 77 deletions(-)
---
diff --git a/python-git.spec b/python3-git.spec
similarity index 55%
rename from python-git.spec
rename to python3-git.spec
index 57a75bb..c03c500 100644
--- a/python-git.spec
+++ b/python3-git.spec
@@ -1,41 +1,33 @@
 #
 # Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3	# CPython 3.x module
 %bcond_with	tests	# unit tests (require git checkout, not archive?)
 %bcond_without	doc	# Sphinx documentation
 
 Summary:	Python Git Library
 Summary(pl.UTF-8):	Biblioteka Git dla Pythona
-Name:		python-git
-Version:	2.1.11
-Release:	4
+Name:		python3-git
+Version:	3.1.26
+Release:	1
 License:	BSD
 Group:		Development/Languages/Python
 #Source0Download: https://github.com/gitpython-developers/GitPython/releases
 Source0:	https://github.com/gitpython-developers/GitPython/archive/%{version}/GitPython-%{version}.tar.gz
-# Source0-md5:	05e5f6be4887704c8643639c24e4e3c9
+# Source0-md5:	64aa168043fa344ae0dda9e0e969600a
+Patch0:		markdown.patch
 URL:		https://pypi.org/project/GitPython/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-ddt >= 1.1.1
-BuildRequires:	python-gitdb >= 2.0.0
-%endif
-%endif
-%if %{with python3}
 BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-ddt >= 1.1.1
 BuildRequires:	python3-gitdb >= 2.0.0
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%{?with_doc:BuildRequires:	sphinx-pdg}
-Requires:	python-modules >= 1:2.7
+%if %{with doc}
+BuildRequires:	python3-gitdb
+BuildRequires:	sphinx-pdg
+%endif
+Requires:	python3-modules >= 1:3.4
 Obsoletes:	GitPython
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -60,32 +52,6 @@ repozytorium bardziej bezpośrednio albo przy użyciu czysto pythonowej
 implementacji, albo szybciej, ale z większym zużyciem zasobów, przy
 użyciu implementacji poleceń gita.
 
-%package -n python3-git
-Summary:	Python Git Library
-Summary(pl.UTF-8):	Biblioteka Git dla Pythona
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-git
-GitPython is a Python library used to interact with git repositories,
-high-level like git-porcelain, or low-level like git-plumbing.
-
-It provides abstractions of git objects for easy access of repository
-data, and additionally allows you to access the git repository more
-directly using either a pure Python implementation, or the faster, but
-more resource intensive git command implementation.
-
-%description -n python3-git -l pl.UTF-8
-GitPython to biblioteka Pythona służąca do pracy z repozytoriami gita,
-wysokopoziomowo, jak git-porcelain lub niskopoziomowo, jak
-git-plumbing.
-
-Biblioteka udostępnia abstrakcje obiektów gita, zapewniając łatwy
-dostęp do danych repozytorium, a ponadto pozwala na dostęp do
-repozytorium bardziej bezpośrednio albo przy użyciu czysto pythonowej
-implementacji, albo szybciej, ale z większym zużyciem zasobów, przy
-użyciu implementacji poleceń gita.
-
 %package apidocs
 Summary:	API documentation for GitPython library
 Summary(pl.UTF-8):	Dokumentacja API biblioteki GitPython
@@ -99,15 +65,10 @@ Dokumentacja API biblioteki GitPython.
 
 %prep
 %setup -q -n GitPython-%{version}
+%patch0 -p1
 
 %build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
 %py3_build %{?with_tests:test}
-%endif
 
 %if %{with doc}
 %{__make} -C doc html
@@ -116,49 +77,23 @@ Dokumentacja API biblioteki GitPython.
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/git/test
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
 
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/git/test
-%endif
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS CHANGES LICENSE README.md
-%dir %{py_sitescriptdir}/git
-%{py_sitescriptdir}/git/*.py[co]
-%{py_sitescriptdir}/git/index
-%{py_sitescriptdir}/git/objects
-%{py_sitescriptdir}/git/refs
-%{py_sitescriptdir}/git/repo
-%{py_sitescriptdir}/GitPython-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-git
-%defattr(644,root,root,755)
-%doc AUTHORS CHANGES LICENSE README.md
 %dir %{py3_sitescriptdir}/git
 %{py3_sitescriptdir}/git/*.py
 %{py3_sitescriptdir}/git/index
 %{py3_sitescriptdir}/git/objects
+%{py3_sitescriptdir}/git/py.typed
 %{py3_sitescriptdir}/git/refs
 %{py3_sitescriptdir}/git/repo
 %{py3_sitescriptdir}/git/__pycache__
 %{py3_sitescriptdir}/GitPython-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
diff --git a/markdown.patch b/markdown.patch
new file mode 100644
index 0000000..f49ea74
--- /dev/null
+++ b/markdown.patch
@@ -0,0 +1,9 @@
+--- GitPython-3.1.26/doc/source/changes.rst~	2022-01-10 14:10:34.000000000 +0100
++++ GitPython-3.1.26/doc/source/changes.rst	2022-01-13 13:43:47.530792463 +0100
+@@ -1,5 +1,6 @@
+ =========
+ Changelog
++=========
+ 
+ 3.1.26
+ ======
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-git.git/commitdiff/fb4ab120551009985b92febef149471fb9d6fb64



More information about the pld-cvs-commit mailing list