summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-18 13:01:22 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-18 13:01:22 +0000
commitb635b6c4f631c68c6f418de8c2909d5110e1d7b5 (patch)
tree31971bf5640d909cb870dfd49568cbac54721b70
parent38e37384aa880e66eb0e656aa67f34c3e33c8b73 (diff)
automatic import of python-pygit2openeuler24.03_LTSopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--python-pygit2.spec62
-rw-r--r--sources1
3 files changed, 64 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a9a9113 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pygit2-1.14.1.tar.gz
diff --git a/python-pygit2.spec b/python-pygit2.spec
new file mode 100644
index 0000000..1e54086
--- /dev/null
+++ b/python-pygit2.spec
@@ -0,0 +1,62 @@
+%global _empty_manifest_terminate_build 0
+%global module pygit2
+
+Name: python-%{module}
+Version: 1.14.1
+Release: 1
+Summary: Python bindings for libgit2
+License: GPL-2.0-only WITH GCC-exception-2.0
+URL: https://www.pygit2.org/
+Source0: https://github.com/libgit2/pygit2/archive/v%{version}.tar.gz#/%{module}-%{version}.tar.gz
+
+%description
+pygit2 is a set of Python bindings to the libgit2 library, which implements
+the core of Git.
+
+%package -n python3-%{module}
+Summary: Python 3 bindings for libgit2
+Provides: python-%{module}
+
+BuildRequires: make
+BuildRequires: gcc
+BuildRequires: (libgit2-devel >= 1.7.0 with libgit2-devel < 1.8.0)
+BuildRequires: python3-cffi >= 1.16.0
+BuildRequires: python3-devel
+BuildRequires: python3-pytest
+BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools_scm
+
+
+%description -n python3-%{module}
+pygit2 is a set of Python bindings to the libgit2 library, which implements
+the core of Git.
+
+The python3-%{pkgname} package contains the Python 3 bindings.
+
+%package doc
+Summary: Documentation for %{name}
+BuildArch: noarch
+BuildRequires: python3-sphinx
+BuildRequires: python3-sphinx_rtd_theme
+%description doc
+Documentation for %{name}.
+
+
+%prep
+%autosetup -n %{module}-%{version} -p 1
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%files -n python3-%{module}
+%license COPYING
+%doc README.md
+%{python3_sitearch}/%{module}-*.egg-info/
+%{python3_sitearch}/%{module}/
+
+%changelog
+* Thu Mar 07 2024 weilinfox <caiweilin@iscas.ac.cn> - 1.14.1-1
+- Package for pygit2 1.14.1
diff --git a/sources b/sources
new file mode 100644
index 0000000..6b24fa8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b95c857956644757b7d322196a1a82aa pygit2-1.14.1.tar.gz