diff --git a/python-pygit2.spec b/python-pygit2.spec index 3dfad59..b30bd5c 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -16,22 +16,6 @@ BuildRequires: libgit2-devel pygit2 is a set of Python bindings to the libgit2 library, which implements the core of Git. -%package -n python2-%{pkgname} -Summary: Python 2.x bindings for libgit2 -%{?python_provide:%python_provide python2-%{pkgname}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-cffi -BuildRequires: python2-six -Requires: python2-cffi -Requires: python2-six - -%description -n python2-%{pkgname} -pygit2 is a set of Python bindings to the libgit2 library, which implements -the core of Git. - -Python 2 version. - %package -n python3-%{pkgname} Summary: Python 3.x bindings for libgit2 %{?python_provide:%python_provide python3-%{pkgname}} @@ -60,12 +44,10 @@ Documentation for %{name}. %autosetup -n %{pkgname}-%{version} -p1 %build -%py2_build %py3_build make -C docs html %install -%py2_install %py3_install find %{_builddir} -name '.buildinfo' -delete @@ -76,20 +58,11 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' # https://github.com/libgit2/pygit2/issues/811 # https://github.com/libgit2/pygit2/issues/812 %ifarch aarch64 ppc64 s390x - %{__python2} setup.py test || : %{__python3} setup.py test || : %else - %{__python2} setup.py test %{__python3} setup.py test %endif -%files -n python2-%{pkgname} -%doc README.rst TODO.txt -%license COPYING -%{python2_sitearch}/%{pkgname}-*.egg-info/ -%{python2_sitearch}/%{pkgname}/ -%{python2_sitearch}/_%{pkgname}.so - %files -n python3-%{pkgname} %doc README.rst TODO.txt %license COPYING