summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-18 12:27:11 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-18 12:27:11 +0000
commit6464a46a9b024349664fa7ad634653bcc6fbcb8c (patch)
tree964ab7aef4688860abbe0166dc8ee55fbf106d3c
parentac05a29b978b0d2be39496e85783bc77c1f4fed4 (diff)
automatic import of python-pygit2
-rw-r--r--python-pygit2.spec186
1 files changed, 32 insertions, 154 deletions
diff --git a/python-pygit2.spec b/python-pygit2.spec
index 3821fd9..93a526f 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -5,58 +5,16 @@ Release: 1
Summary: Python bindings for libgit2.
License: GPLv2 with linking exception
URL: https://github.com/libgit2/pygit2
-Source0: https://mirrors.aliyun.com/pypi/web/packages/b7/ea/17aa8ca38750f1ba69511ceeb41d29961f90eb2e0a242b668c70311efd4e/pygit2-1.17.0.tar.gz
+Source0: https://files.pythonhosted.org/packages/b7/ea/17aa8ca38750f1ba69511ceeb41d29961f90eb2e0a242b668c70311efd4e/pygit2-1.17.0.tar.gz
-Requires: (python3-cffi>=1.17.0)
%description
-# 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 - <https://www.pygit2.org/>
-- Install - <https://www.pygit2.org/install.html>
-- Download - <https://pypi.org/project/pygit2/>
-- Source code and issue tracker - <https://github.com/libgit2/pygit2>
-- Changelog - <https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md>
-- Authors - <https://github.com/libgit2/pygit2/blob/master/AUTHORS.md>
-
-## 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.
-
+- 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
%package -n python3-pygit2
Summary: Python bindings for libgit2.
@@ -64,149 +22,69 @@ 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
-# 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 - <https://www.pygit2.org/>
-- Install - <https://www.pygit2.org/install.html>
-- Download - <https://pypi.org/project/pygit2/>
-- Source code and issue tracker - <https://github.com/libgit2/pygit2>
-- Changelog - <https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md>
-- Authors - <https://github.com/libgit2/pygit2/blob/master/AUTHORS.md>
-
-## 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.
-
+- 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
%package help
Summary: Development documents and examples for pygit2
Provides: python3-pygit2-doc
%description help
-# 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 - <https://www.pygit2.org/>
-- Install - <https://www.pygit2.org/install.html>
-- Download - <https://pypi.org/project/pygit2/>
-- Source code and issue tracker - <https://github.com/libgit2/pygit2>
-- Changelog - <https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md>
-- Authors - <https://github.com/libgit2/pygit2/blob/master/AUTHORS.md>
-
-## 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.
-
+- 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
%prep
-%autosetup -n pygit2-1.17.0
+%autosetup -n pygit2-1.7.1
%build
-%pyproject_build
+%py3_build
%install
-%pyproject_install
+%py3_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}
-touch filelist.lst
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
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
-%{python3_sitearch}/*
+%dir %{python3_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
-* Tue Feb 18 2025 Python_Bot <Python_Bot@openeuler.org> - 1.17.0-1
+* Mon Mar 27 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.1-1
- Package Spec generated