Dominique Leuenberger 2018-05-16 09:43:22 +00:00 committed by Git OBS Bridge
commit 065d6ae684
4 changed files with 59 additions and 22 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94bd86a2f9847c03e6c3bf8dca12af3734f8b272ffeacbc3fa8fcca58844b1d4
size 1536827

3
pocl-1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e8dd0693a88c84937754df947b202871a40545b1b0a97ebefa370b0281c3c53
size 1545659

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Tue May 15 20:34:02 UTC 2018 - mimi.vx@gmail.com
- move nonversioned lib to main package
-------------------------------------------------------------------
Fri Mar 9 17:17:10 UTC 2018 - mardnh@gmx.de
- Update to version 1.1
* Support for LLVM/Clang 6.0 and 5.0.
* Experimental SPIR and SPIR-V support
* Improved kernel compilation speed
- Several tests have problems on some OBS workers while the same
tests run perfectly fine in a local chroot.
Disable tests for now.
-------------------------------------------------------------------
Mon Mar 5 19:34:47 UTC 2018 - mardnh@gmx.de
- Create subpackage for the shared library
- Run tests after the build
-------------------------------------------------------------------
Wed Jan 31 14:51:17 UTC 2018 - msrb@suse.com

View File

@ -17,9 +17,9 @@
#
%define sover 2.0.0
%define sover 2.1.0
Name: pocl
Version: 1.0
Version: 1.1
Release: 0
Summary: Portable Computing Language - an OpenCL implementation
# The whole code is under MIT
@ -27,11 +27,12 @@ Summary: Portable Computing Language - an OpenCL implementation
# except lib/kernel/vecmath which is under GPLv3+ or LGPLv3+ (and unbundled in future)
License: MIT
Group: Development/Tools/Other
Url: http://portablecl.org/
Source0: http://portablecl.org/downloads/%{name}-%{version}.tar.gz
URL: http://portablecl.org/
#Source0: http://portablecl.org/downloads/%{name}-%{version}.tar.gz
Source0: https://github.com/pocl/pocl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: pocl-rpmlintrc
BuildRequires: clang
BuildRequires: clang-devel
BuildRequires: clang < 7
BuildRequires: clang-devel < 7
BuildRequires: cmake
BuildRequires: libboost_headers-devel
BuildRequires: libtool
@ -44,7 +45,7 @@ BuildRequires: uthash-devel
BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(hwloc)
Requires: clang4
Requires: clang < 7
Requires: gcc
Requires: libstdc++-devel
Requires: libut2
@ -67,10 +68,22 @@ can generate multi-work-item work-group functions that exploit various types of
parallel hardware resources, such as VLIW, superscalar, SIMD, SIMT, multicore
and multithread.
%package -n libpocl2
Summary: Shared Library part of pocl
Group: System/Libraries
%description -n libpocl2
Portable Computing Language (pocl) is an implementation of the OpenCL standard
which can be adapted for new targets and devices, both for homogeneous CPU and
heterogenous GPUs/accelerators.
This subpackage contains the share library part of pocl.
%package devel
Summary: Development files for the Portable Computing Language
Group: Development/Languages/Other
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libpocl2 = %{version}-%{release}
Requires: opencl-headers
%description devel
@ -106,14 +119,17 @@ This subpackage provides the development files needed for pocl.
# FIXME - should be handled upstream
mv %{buildroot}%{_prefix}%{_libdir} %{buildroot}%{_libdir}
sed -i 's|%{_prefix}%{_prefix}/|%{_prefix}/|g' %{buildroot}%{_sysconfdir}/OpenCL/vendors/pocl.icd
# 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
# <visit0r> but you need to run the .py to generate the files under the pocl dir
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
#%%check
#cd build
#ctest
%post -n libpocl2 -p /sbin/ldconfig
%postun -n libpocl2 -p /sbin/ldconfig
%files
%doc CHANGES README doc/sphinx/source/*.rst
@ -121,17 +137,16 @@ sed -i 's|%{_prefix}%{_prefix}/|%{_prefix}/|g' %{buildroot}%{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%{_sysconfdir}/OpenCL/vendors/pocl.icd
%{_bindir}/poclcc
%{_libdir}/libpocl.so.2
%{_libdir}/libpocl.so.%{sover}
%{_libdir}/libpoclu.so.2
%{_libdir}/libpoclu.so.%{sover}
%{_libdir}/pocl/
%dir %{_libdir}/pocl/
%{_libdir}/pocl/libllvmopencl.so
%{_datadir}/pocl/
%files -n libpocl2
%{_libdir}/libpocl.so.2
%{_libdir}/libpocl.so.%{sover}
%files devel
%{_libdir}/libpoclu.so
%{_libdir}/libpocl.so
%{_libdir}/pkgconfig/pocl.pc
%{_includedir}/poclu.h
%changelog