diff --git a/pocl.spec b/pocl.spec index 0c375f7..9b56520 100644 --- a/pocl.spec +++ b/pocl.spec @@ -1,7 +1,7 @@ Summary: Portable Computing Language - an OpenCL implementation Name: pocl Version: 0.13 -Release: 2%{?dist} +Release: 3%{?dist} # The whole code is under MIT # except include/utlist.h which is under BSD (and unbundled) and @@ -13,10 +13,11 @@ Source0: http://downloads.sourceforge.net/project/pocl/%{name}-%{version} # https://github.com/pocl/pocl/issues/318#issuecomment-205864382 Patch0: i686-fix.patch -# Only armv7l is supported -# PPC support is currently broken, due to path problems -# s390(x) and aarch64 also not supported, so use ExclusiveArch -ExclusiveArch: %{ix86} x86_64 +# aarch64 seems to have a build system problem that makes it pass -march=(unknown). +# ppc64 builds fine, but: 41% tests passed, 64 tests failed out of 108. +# ppc64le fails with compilation errors. +# s390(x) clang build still seems to be suffering from bug 1309055. +ExcludeArch: aarch64 ppc64 ppc64le s390 s390x BuildRequires: cmake BuildRequires: clang clang-devel @@ -33,7 +34,7 @@ BuildRequires: uthash-devel BuildRequires: zlib-devel BuildRequires: libedit-devel BuildRequires: glew-devel -#BuildRequires: vecmath-devel +#BuildRequires: vecmath-devel Requires: clang%{?_isa} Requires: opencl-filesystem @@ -65,13 +66,13 @@ superscalar,...). %package devel -Summary: Portable Computing Lanugage development files -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: opencl-headers +Summary: Portable Computing Language development files +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: opencl-headers %description devel -Portable Computing Lanugage development files +Portable Computing Language development files. %prep @@ -87,7 +88,9 @@ pushd build %cmake ../ \ -DENABLE_ICD=1 \ -DEXTRA_KERNEL_CXX_FLAGS="%{optflags} -std=c++11" \ +%ifarch %{ix86} x86_64 -DKERNELLIB_HOST_CPU_VARIANTS=distro +%endif # -DENABLE_TESTSUITES=all Requires clBLAS %make_build popd @@ -98,8 +101,8 @@ pushd build popd # Unbundle vecmath -#rm -vf %{buildroot}/%{_libdir}/pocl/vecmath/ -#ln -vs %{_includedir}/vecmath %{buildroot}/%{_libdir}/pocl/vecmath +#rm -vf %%{buildroot}/%%{_libdir}/pocl/vecmath/ +#ln -vs %%{_includedir}/vecmath %%{buildroot}/%%{_libdir}/pocl/vecmath # but you need to run the .py to generate the files under the pocl dir @@ -135,6 +138,12 @@ popd %changelog +* Fri Apr 08 2016 Björn Esser - 0.13-3 +- changes as suggested in rhbz #1324438 +- enable builds for %%{arm} +- fix spelling error in devel-pkg %%description and %%summary +- fix rpmlint warnings for spec-file and srpm + * Tue Apr 05 2016 Igor Gnatenko - 0.13-2 - use -DKERNELLIB_HOST_CPU_VARIANTS=distro - add --output-on-failure for ctest invocation