%global hash c1d9aa1798bee961aceed8b511489ef27881f281 %global hash_short %(c=%{hash}; echo ${c:0:12}) Name: ocltoys Version: 1.0 Release: 4.%{hash_short}%{?dist} Summary: Collection of OpenCL examples focused on Computer Graphics License: GPLv3 URL: http://code.google.com/p/ocltoys/ Source0: http://ocltoys.googlecode.com/archive/%{hash}.zip BuildRequires: cmake BuildRequires: boost-devel opencl-headers freeglut-devel ocl-icd-devel Requires: pocl %description Collection of OpenCL examples focused on Computer Graphics %prep %setup -q -n %{name}-%{hash_short} mkdir build %build pushd build %cmake ../ make %{?_smp_mflags} popd %install pushd build %make_install popd %files %doc AUTHORS.txt COPYING.txt %{_bindir}/jugCLer %{_bindir}/juliagpu %{_bindir}/mandelgpu %{_bindir}/smallptgpu %{_datadir}/%{name}/ %changelog * Fri Jan 24 2014 Igor Gnatenko - 1.0-4.c1d9aa1798be - Update to latest (fix i386 build) * Wed Jan 22 2014 Igor Gnatenko - 1.0-3.01c034b3c7b9 - Update to latest (drop all patches) * Mon Jan 20 2014 Igor Gnatenko - 1.0-2.39c5bb1b3c2a - Add patch for fix sse, sse2 CPPFLAGS * Sun Jan 19 2014 Vitaly Sulimov - 1.0-1.39c5bb1b3c2a - Initial import