Accepting request 327269 from home:Tnokon:branches:devel:languages:python

tweaked spec file to fix tests/run/cpdef_extern_func.pyx test for SLE_11_SP3/SLE_11_SP4 which have an older gcc/g++ environment

OBS-URL: https://build.opensuse.org/request/show/327269
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=63
This commit is contained in:
Denisart Benjamin 2015-08-27 13:01:22 +00:00 committed by Git OBS Bridge
parent 98d6e3b378
commit 5608cb2d78
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Aug 26 17:11:12 UTC 2015 - ted.nokonechny@uregina.ca
- "mangle" tests/run/cpdef_extern_func.pyx to allow package to build
for SLE_11_SP3 and SLE_11_SP4.
* cpdef const char* strchr(const char *haystack, int needle);
does not seem to match any from /usr/include/string.h
and fails for cpp tests via python runtests.py -vv
* cpdef_extern_func.pyx was not present in 0.21.1
-------------------------------------------------------------------
Wed Aug 19 15:23:19 UTC 2015 - bwiedemann@suse.com

View File

@ -92,6 +92,12 @@ if [ $1 -eq 0 ] ; then
fi
%check
%if 0%{?suse_version} && 0%{?suse_version} <= 1140
sed -i.SLES11.SP4.bak -e 's/const char/char/' ./tests/run/cpdef_extern_func.pyx
#mv ./tests/run/cpdef_extern_func.pxd ./tests/run/cpdef_extern_func.pxd.TNT.txt
#mv ./tests/run/cpdef_extern_func.pyx ./tests/run/cpdef_extern_func.pyx.TNT.txt
#sleep 60
%endif
python runtests.py -vv
%files