summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorXuelian Bai/Visual Experience Platform Lab /SRC-Nanjing/Staff Engineer/Samsung Electronics <xuelian.bai@samsung.com>2022-01-05 14:49:48 +0800
committerJoonbum Ko <joonbum.ko@samsung.com>2022-03-11 13:25:24 +0900
commit9c3fd0b15fbe7ce6ba9b1863aa81f04459bcaef2 (patch)
treeaff039932f65819aed98835a0e94828e84a001b9 /packaging
parent169f05d026e65948b30cfe2200595fda92198cf7 (diff)
downloadOpenCL-ICD-Loader-accepted/tizen_unified.tar.gz
OpenCL-ICD-Loader-accepted/tizen_unified.tar.bz2
OpenCL-ICD-Loader-accepted/tizen_unified.zip
Change-Id: I68d77d5783d79f7178a4919bd8e9999fec931f95 Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/opencl-icd-loader.manifest5
-rw-r--r--packaging/opencl-icd-loader.spec51
2 files changed, 56 insertions, 0 deletions
diff --git a/packaging/opencl-icd-loader.manifest b/packaging/opencl-icd-loader.manifest
new file mode 100644
index 0000000..75b0fa5
--- /dev/null
+++ b/packaging/opencl-icd-loader.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/opencl-icd-loader.spec b/packaging/opencl-icd-loader.spec
new file mode 100644
index 0000000..15dfeb6
--- /dev/null
+++ b/packaging/opencl-icd-loader.spec
@@ -0,0 +1,51 @@
+Name: opencl-icd-loader
+Version: v2022.01.04
+Release: 0
+License: Apache License 2.0
+Summary: an Open Source alternative to vendor specific OpenCL ICD loaders.
+Url: https://github.com/OCL-dev/ocl-icd
+Group: Graphics & UI Framework/Hardware Adaptation
+Source: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+BuildRequires: cmake
+BuildRequires: pkgconfig
+BuildRequires: opencl-headers
+
+%description
+This repo contains the source code and tests for the Khronos official OpenCL ICD Loader.
+
+%package devel
+Summary: Development files for OpenCL
+Group: Graphics
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This repo contains the source code and tests for the Khronos official OpenCL ICD Loader.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+cp %{SOURCE1001} .
+%{?asan:/usr/bin/gcc-unforce-options}
+%cmake .
+make %{?_smp_mflags}
+
+%install
+%make_install DESTDIR=%{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%define _unpackaged_files_terminate_build 0
+%defattr(-,root,root)
+%{_libdir}/libOpenCL*
+%license LICENSE
+%manifest %{name}.manifest
+
+%files devel
+%defattr(-,root,root,-)
+
+