Fixed tests on ppc

This commit is contained in:
Jakub Čajka 2014-05-21 15:01:44 +02:00 committed by Dan Horák
parent 04351e3ef6
commit 900d81f3dc

View File

@ -2,7 +2,7 @@
Name: pycairo
Version: 1.8.10
Release: 9%{?dist}
Release: 10%{?dist}
License: MPLv1.1 or LGPLv2
Group: Development/Languages
Summary: Python bindings for the cairo library
@ -15,6 +15,7 @@ BuildRequires: pkgconfig
BuildRequires: pytest
BuildRequires: python-devel
BuildRequires: python-xpyb-devel
BuildRequires: lyx-fonts
Requires: python-xpyb
%description
@ -44,11 +45,8 @@ make DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
%check
# disable tests on big endians (#1079673)
%ifnarch ppc ppc64 s390 s390x
cd test
PYTHONPATH=$RPM_BUILD_ROOT%{python_sitearch} py.test
%endif
%files
%doc AUTHORS COPYING* NEWS README
@ -60,6 +58,9 @@ PYTHONPATH=$RPM_BUILD_ROOT%{python_sitearch} py.test
%{_libdir}/pkgconfig/pycairo.pc
%changelog
* Wed May 21 2014 Jakub Čajka <jcajka@redhat.com> - 1.8.10-10
- Resolves: #1079673 - Fixed build dependencies and enabled tests on ppc
* Tue May 20 2014 Dan Horák <dan[at]danny.cz> - 1.8.10-9
- disable tests on big endians (#1079673)