Add spec file for Tizen (#1) accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.060246 accepted/tizen/7.0/unified/hotfix/20221116.110543 accepted/tizen/8.0/unified/20231005.094600 accepted/tizen/unified/20220315.205456 submit/tizen/20220315.071947 tizen_7.0_m2_release tizen_8.0_m2_release
authorXuelian Bai/Visual Experience Platform Lab /SRC-Nanjing/Staff Engineer/Samsung Electronics <xuelian.bai@samsung.com>
Wed, 5 Jan 2022 06:49:48 +0000 (14:49 +0800)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 11 Mar 2022 04:25:24 +0000 (13:25 +0900)
Change-Id: I68d77d5783d79f7178a4919bd8e9999fec931f95
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
packaging/opencl-icd-loader.manifest [new file with mode: 0644]
packaging/opencl-icd-loader.spec [new file with mode: 0644]

diff --git a/packaging/opencl-icd-loader.manifest b/packaging/opencl-icd-loader.manifest
new file mode 100644 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -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 (file)
index 0000000..15dfeb6
--- /dev/null
@@ -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,-)
+
+