From 9c3fd0b15fbe7ce6ba9b1863aa81f04459bcaef2 Mon Sep 17 00:00:00 2001 From: Xuelian Bai/Visual Experience Platform Lab /SRC-Nanjing/Staff Engineer/Samsung Electronics Date: Wed, 5 Jan 2022 14:49:48 +0800 Subject: Add spec file for Tizen (#1) Change-Id: I68d77d5783d79f7178a4919bd8e9999fec931f95 Signed-off-by: Xuelian Bai --- packaging/opencl-icd-loader.manifest | 5 ++++ packaging/opencl-icd-loader.spec | 51 ++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 packaging/opencl-icd-loader.manifest create mode 100644 packaging/opencl-icd-loader.spec 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 @@ + + + + + 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,-) + + -- cgit v1.2.3