File ocl-icd.spec of Package ocl-icd
Summary: OpenCL ICD Bindings
Name: ocl-icd
Version: 2.1.3
Release: 1
License: BSD-2-Clause
Group: System/Libraries
URL: https://forge.imag.fr/projects/ocl-icd/
Source: https://forge.imag.fr/frs/download.php/524/ocl-icd-%{version}.tar.gz
BuildRequires: opencl-headers-1.2
BuildRequires: ruby
BuildRequires: pkg-config
%description
OpenCL is a royalty-free standard for cross-platform, parallel programming
of modern processors found in personal computers, servers and
handheld/embedded devices.
This package provides an Installable Client Driver Bindings (ICD Bindings).
The provided libOpenCL library is able to load any free or non-free installed
ICD (driver backend).
%package -n libOpenCL1
Summary: OpenCL ICD Bindings
Group: System/Libraries
%description -n libOpenCL1
OpenCL is a royalty-free standard for cross-platform, parallel programming
of modern processors found in personal computers, servers and
handheld/embedded devices.
This package provides an Installable Client Driver Bindings (ICD Bindings).
The provided libOpenCL library is able to load any free or non-free installed
ICD (driver backend).
%package devel
Summary: Development files of ocl-icd
Group: Development/Libraries/C and C++
Requires: libOpenCL1 = %version
%description devel
This package provides the files needed to build OpenCL client drivers that
use ocl-icd for ICD functionality.
%prep
%setup -q
%build
%configure
make %{?smp_mflags}
%install
rm -rf %{buildroot}
%make_install
find %{buildroot} -name '*.la'
find %{buildroot} -name '*.la' -delete
rm -rf instdocs
mv %{buildroot}%{_datadir}/doc/%{name} instdocs
%clean
rm -rf %{buildroot}
%post -n libOpenCL1
ldconfig
%postun -n libOpenCL1
ldconfig
%files -n libOpenCL1
%defattr(-, root, root)
%doc README
%{_libdir}/libOpenCL.so.*
%files devel
%defattr(-, root, root)
%doc README NEWS COPYING
%doc instdocs/*
%{_libdir}/libOpenCL.so
%{_libdir}/pkgconfig/OpenCL.pc
%{_libdir}/pkgconfig/ocl-icd.pc
%{_includedir}/ocl_icd.h
%changelog