From d5582103fa2d1c09484de52d8912b25ea1f86ca9 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 08:05:41 +0100 Subject: [PATCH] package created by autospec [release 2.2.3-1mamba;Mon Apr 27 2015] --- README.md | 3 +++ ocl-icd.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 ocl-icd.spec diff --git a/README.md b/README.md index 0576c27..5b01701 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # ocl-icd +OpenCL implementations are provided as ICD (Installable Client Driver). +An OpenCL program can use several ICD thanks to the use of an ICD Loader as provided by this project. +This free ICD Loader can load any (free or non free) ICD. diff --git a/ocl-icd.spec b/ocl-icd.spec new file mode 100644 index 0000000..5cc2ef2 --- /dev/null +++ b/ocl-icd.spec @@ -0,0 +1,72 @@ +Name: ocl-icd +Version: 2.2.3 +Release: 1mamba +Summary: OpenCL ICD Loader +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: https://forge.imag.fr/projects/ocl-icd/ +Source: https://forge.imag.fr/frs/download.php/598/ocl-icd-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 ocl-icd' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: opencl-headers +BuildRequires: ruby +Provides: opencl-icd-loader +Conflicts: libFreeOCL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +OpenCL implementations are provided as ICD (Installable Client Driver). +An OpenCL program can use several ICD thanks to the use of an ICD Loader as provided by this project. +This free ICD Loader can load any (free or non free) ICD. + +## remove the following two blocks if there's no devel files +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure + #--enable-update-database +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +rm -f %{buildroot}%{_libdir}/libOpenCL.la +rm -rf %{buildroot}%{_defaultdocdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/libOpenCL.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/ocl_icd.h +%{_libdir}/libOpenCL.so +%{_libdir}/pkgconfig/OpenCL.pc +%{_libdir}/pkgconfig/ocl-icd.pc +%{_mandir}/man7/libOpenCL.so.7* +%{_mandir}/man7/libOpenCL.7* +%doc NEWS README ocl_icd_loader_gen.map ocl_icd_bindings.c + +%changelog +* Mon Apr 27 2015 Davide Madrisan 2.2.3-1mamba +- package created by autospec