forked from pool/python-pycurl
Accepting request 572020 from devel:languages:python
- Disable tests on arm platforms as they are very flaky there, on multiple runs always different failures - Disable strict aliasing as reported by the rpm checks OBS-URL: https://build.opensuse.org/request/show/572020 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycurl?expand=0&rev=20
This commit is contained in:
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 2 13:17:14 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Disable tests on arm platforms as they are very flaky there,
|
||||||
|
on multiple runs always different failures
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 2 13:00:02 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Disable strict aliasing as reported by the rpm checks
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 30 16:01:27 UTC 2018 - vcizek@suse.com
|
Tue Jan 30 16:01:27 UTC 2018 - vcizek@suse.com
|
||||||
|
|
||||||
|
@@ -66,7 +66,7 @@ This package contains documentation and examples.
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%python_build --with-ssl
|
%python_build --with-ssl
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -74,6 +74,7 @@ export CFLAGS="%{optflags}"
|
|||||||
rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk
|
rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%ifnarch %{arm} aarch64
|
||||||
# taken from "make test" because we only need to run nosetests,
|
# taken from "make test" because we only need to run nosetests,
|
||||||
# not the rest of the mess in the upstream runner
|
# not the rest of the mess in the upstream runner
|
||||||
pushd tests/fake-curl/libcurl
|
pushd tests/fake-curl/libcurl
|
||||||
@@ -90,6 +91,7 @@ if ! pkg-config --variable=supported_protocols libcurl|grep -qw SCP; then
|
|||||||
fi
|
fi
|
||||||
%{python_expand PYTHONPATH=$(ls -d build/lib.*) \
|
%{python_expand PYTHONPATH=$(ls -d build/lib.*) \
|
||||||
nosetests-%$python_bin_suffix --with-flaky -a "$test_flags"}
|
nosetests-%$python_bin_suffix --with-flaky -a "$test_flags"}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Reference in New Issue
Block a user