Name: libFreeOCL Version: 0.3.6 Release: 1mamba Summary: Multi-platform implementation of OpenCL 1.2 targeting CPUs Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: https://code.google.com/p/freeocl/ Source: https://freeocl.googlecode.com/files/FreeOCL-%{version}-src.tar.gz Patch0: FreeOCL-0.3.6-_mm_pause_undeclared_in_scope.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libgomp-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libatomic_ops-devel Provides: opencl = 1.2.0 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description FreeOCL is an implementation of OpenCL 1.2 specifications targeting CPUs. Instead of using a built-in or dedicated compiler, it relies on an external C++ compiler. It aims to provide a debugging tool and a reliable platform which can run everywhere. %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: opencl-devel = 1.2.0 %description devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q -n FreeOCL-%{version}-Source %patch -p1 %build %cmake -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %ifarch x86_64 mv %{buildroot}/usr/lib %{buildroot}%{_libdir} %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libFreeOCL.so %{_libdir}/libOpenCL.so.* %config(noreplace) %{_sysconfdir}/OpenCL/vendors/freeocl.icd %doc AUTHORS COPYING COPYING.LESSER %files devel %defattr(-,root,root) %{_includedir}/FreeOCL/*.h %{_libdir}/libOpenCL.so %doc README TODO %changelog * Fri Mar 13 2015 Davide Madrisan src-1mamba - package created by autospec