From ac05a29b978b0d2be39496e85783bc77c1f4fed4 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 18 Feb 2025 12:01:55 +0000 Subject: automatic import of python-pygit2 --- .gitignore | 1 + python-pygit2.spec | 188 +++++++++++++++++++++++++++++++++++++++++++---------- sources | 2 +- 3 files changed, 157 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index f03a275..7813603 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /pygit2-1.7.1.tar.gz +/pygit2-1.17.0.tar.gz diff --git a/python-pygit2.spec b/python-pygit2.spec index 4cc1b30..3821fd9 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,20 +1,62 @@ %global _empty_manifest_terminate_build 0 Name: python-pygit2 -Version: 1.7.1 +Version: 1.17.0 Release: 1 Summary: Python bindings for libgit2. License: GPLv2 with linking exception URL: https://github.com/libgit2/pygit2 -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7b/c9/677c7a11fff6056593eca53ffeda058bf9fa57996a82626d2f9e1960a7e8/pygit2-1.7.1.tar.gz +Source0: https://mirrors.aliyun.com/pypi/web/packages/b7/ea/17aa8ca38750f1ba69511ceeb41d29961f90eb2e0a242b668c70311efd4e/pygit2-1.17.0.tar.gz +Requires: (python3-cffi>=1.17.0) %description -- Documentation - http://www.pygit2.org/ -- Install - http://www.pygit2.org/install.html -- Download - https://pypi.python.org/pypi/pygit2 -- Source code and issue tracker - https://github.com/libgit2/pygit2 -- Changelog - https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst -- Authors - https://github.com/libgit2/pygit2/blob/master/AUTHORS.rst +# pygit2 - libgit2 bindings in Python + +Bindings to the libgit2 shared library, implements Git plumbing. +Supports Python 3.10 to 3.13 and PyPy3 7.3+ + +[![image](https://github.com/libgit2/pygit2/actions/workflows/tests.yml/badge.svg)](https://github.com/libgit2/pygit2/actions/workflows/tests.yml) + +[![image](https://ci.appveyor.com/api/projects/status/edmwc0dctk5nacx0/branch/master?svg=true)](https://ci.appveyor.com/project/jdavid/pygit2/branch/master) + +## Links + +- Documentation - +- Install - +- Download - +- Source code and issue tracker - +- Changelog - +- Authors - + +## Sponsors + +Add your name and link here, [become a +sponsor](https://github.com/sponsors/jdavid). + +## License: GPLv2 with linking exception + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License, version 2, as +published by the Free Software Foundation. + +In addition to the permissions in the GNU General Public License, the +authors give you unlimited permission to link the compiled version of +this file into combinations with other programs, and to distribute those +combinations without any restriction coming from the use of this file. +(The General Public License restrictions do apply in other respects; for +example, they cover modification of the file, and distribution when not +linked into a combined executable.) + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. + %package -n python3-pygit2 Summary: Python bindings for libgit2. @@ -22,69 +64,149 @@ Provides: python-pygit2 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip +BuildRequires: python3-wheel BuildRequires: python3-cffi -BuildRequires: libgit2-devel BuildRequires: gcc BuildRequires: gdb %description -n python3-pygit2 -- Documentation - http://www.pygit2.org/ -- Install - http://www.pygit2.org/install.html -- Download - https://pypi.python.org/pypi/pygit2 -- Source code and issue tracker - https://github.com/libgit2/pygit2 -- Changelog - https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst -- Authors - https://github.com/libgit2/pygit2/blob/master/AUTHORS.rst +# pygit2 - libgit2 bindings in Python + +Bindings to the libgit2 shared library, implements Git plumbing. +Supports Python 3.10 to 3.13 and PyPy3 7.3+ + +[![image](https://github.com/libgit2/pygit2/actions/workflows/tests.yml/badge.svg)](https://github.com/libgit2/pygit2/actions/workflows/tests.yml) + +[![image](https://ci.appveyor.com/api/projects/status/edmwc0dctk5nacx0/branch/master?svg=true)](https://ci.appveyor.com/project/jdavid/pygit2/branch/master) + +## Links + +- Documentation - +- Install - +- Download - +- Source code and issue tracker - +- Changelog - +- Authors - + +## Sponsors + +Add your name and link here, [become a +sponsor](https://github.com/sponsors/jdavid). + +## License: GPLv2 with linking exception + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License, version 2, as +published by the Free Software Foundation. + +In addition to the permissions in the GNU General Public License, the +authors give you unlimited permission to link the compiled version of +this file into combinations with other programs, and to distribute those +combinations without any restriction coming from the use of this file. +(The General Public License restrictions do apply in other respects; for +example, they cover modification of the file, and distribution when not +linked into a combined executable.) + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. + %package help Summary: Development documents and examples for pygit2 Provides: python3-pygit2-doc %description help -- Documentation - http://www.pygit2.org/ -- Install - http://www.pygit2.org/install.html -- Download - https://pypi.python.org/pypi/pygit2 -- Source code and issue tracker - https://github.com/libgit2/pygit2 -- Changelog - https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst -- Authors - https://github.com/libgit2/pygit2/blob/master/AUTHORS.rst +# pygit2 - libgit2 bindings in Python + +Bindings to the libgit2 shared library, implements Git plumbing. +Supports Python 3.10 to 3.13 and PyPy3 7.3+ + +[![image](https://github.com/libgit2/pygit2/actions/workflows/tests.yml/badge.svg)](https://github.com/libgit2/pygit2/actions/workflows/tests.yml) + +[![image](https://ci.appveyor.com/api/projects/status/edmwc0dctk5nacx0/branch/master?svg=true)](https://ci.appveyor.com/project/jdavid/pygit2/branch/master) + +## Links + +- Documentation - +- Install - +- Download - +- Source code and issue tracker - +- Changelog - +- Authors - + +## Sponsors + +Add your name and link here, [become a +sponsor](https://github.com/sponsors/jdavid). + +## License: GPLv2 with linking exception + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License, version 2, as +published by the Free Software Foundation. + +In addition to the permissions in the GNU General Public License, the +authors give you unlimited permission to link the compiled version of +this file into combinations with other programs, and to distribute those +combinations without any restriction coming from the use of this file. +(The General Public License restrictions do apply in other respects; for +example, they cover modification of the file, and distribution when not +linked into a combined executable.) + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. + %prep -%autosetup -n pygit2-1.7.1 +%autosetup -n pygit2-1.17.0 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi +touch filelist.lst if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-pygit2 -f filelist.lst -%dir %{python3_sitearch}/* +%{python3_sitearch}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Mon Mar 27 2023 Python_Bot - 1.7.1-1 +* Tue Feb 18 2025 Python_Bot - 1.17.0-1 - Package Spec generated diff --git a/sources b/sources index 7eecf99..943ef4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b4317499ab2c46e5b93c4e4811b09e58 pygit2-1.7.1.tar.gz +7bc5266fd87c5dca73677e973c95b461 pygit2-1.17.0.tar.gz -- cgit v1.2.3