The package rpms/python-pygit2.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/python-pygit2.git/commit/?id=85fd6be....
Change: +%ifarch ppc64 s390x
Thanks.
Full change: ============
commit 85fd6be22ca6e9d6a44c298d6d435290871e42b5 Author: Pete Walter pwalter@fedoraproject.org Date: Tue Jun 18 18:48:03 2019 +0100
Move comment to where the workaround is applied
... and also fix the link to the bug report.
diff --git a/python-pygit2.spec b/python-pygit2.spec index 36b294b..e1a1680 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,5 +1,3 @@ -# https://github.com/libgit2/pygit2/issues/811 -%global arch_test_fail ppc64 s390x %global pkgname pygit2 %{?python_enable_dependency_generator}
@@ -63,7 +61,8 @@ 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 -%ifarch %{arch_test_fail} +# https://github.com/libgit2/pygit2/issues/812 +%ifarch ppc64 s390x PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v || : %else PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v
commit acaf85717e811546bd50556ffdb233dcf5492326 Author: Pete Walter pwalter@fedoraproject.org Date: Tue Jun 18 18:46:26 2019 +0100
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 ignatenkobrain@fedoraproject.org - 0.28.2-1 - Update to 0.28.2