From acaf85717e811546bd50556ffdb233dcf5492326 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Jun 18 2019 17:46:26 +0000 Subject: Undo unwanted whitespace changes Igor, please stop changing other people's packages. Thanks. --- diff --git a/python-pygit2.spec b/python-pygit2.spec index e56f40d..36b294b 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -19,14 +19,15 @@ BuildRequires: (libgit2-devel >= 0.28.0 with libgit2-devel < 0.29.0) pygit2 is a set of Python bindings to the libgit2 library, which implements the core of Git. + %package -n python3-%{pkgname} Summary: Python 3.x bindings for libgit2 %{?python_provide:%python_provide python3-%{pkgname}} +BuildRequires: python3-cffi BuildRequires: python3-devel +BuildRequires: python3-pytest BuildRequires: python3-setuptools -BuildRequires: python3-cffi BuildRequires: python3-six -BuildRequires: python3-pytest %description -n python3-%{pkgname} pygit2 is a set of Python bindings to the libgit2 library, which implements @@ -34,6 +35,7 @@ the core of Git. Python 3 version. + %package doc Summary: Documentation for %{name} BuildArch: noarch @@ -42,17 +44,22 @@ BuildRequires: /usr/bin/sphinx-build %description doc Documentation for %{name}. + %prep %autosetup -n %{pkgname}-%{version} -p1 + %build %py3_build + make -C docs html + %install %py3_install find %{_builddir} -name '.buildinfo' -print -delete + %check # This is horrible, but otherwise pytest does not use pygit2 from site-packages rm -f pygit2/__init__.py @@ -62,6 +69,7 @@ rm -f pygit2/__init__.py PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v %endif + %files -n python3-%{pkgname} %doc README.rst TODO.txt %license COPYING @@ -73,6 +81,7 @@ rm -f pygit2/__init__.py %license COPYING %doc docs/_build/html/* + %changelog * Thu Jun 06 14:32:34 CEST 2019 Igor Gnatenko - 0.28.2-1 - Update to 0.28.2