summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuelian Bai <xuelian.bai@samsung.com>2022-01-05 11:42:59 +0800
committerJoonbum Ko <joonbum.ko@samsung.com>2022-03-11 12:00:32 +0900
commit39738c2bf28e99349d225a0daa575073fad2215d (patch)
treec344bb0b0e61272b9446b107e704308fe69ba9c2
parent59ac4dc2f282286d8db83143686cfe37ec658b84 (diff)
downloadOpenCL-Headers-accepted/tizen_unified.tar.gz
OpenCL-Headers-accepted/tizen_unified.tar.bz2
OpenCL-Headers-accepted/tizen_unified.zip
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
-rw-r--r--packaging/opencl-headers.manifest5
-rw-r--r--packaging/opencl-headers.spec53
2 files changed, 58 insertions, 0 deletions
diff --git a/packaging/opencl-headers.manifest b/packaging/opencl-headers.manifest
new file mode 100644
index 0000000..75b0fa5
--- /dev/null
+++ b/packaging/opencl-headers.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/opencl-headers.spec b/packaging/opencl-headers.spec
new file mode 100644
index 0000000..d5a923e
--- /dev/null
+++ b/packaging/opencl-headers.spec
@@ -0,0 +1,53 @@
+Name: opencl-headers
+Version: v2022.01.04
+Release: 0
+Summary: Khronos OpenCL Headers
+Group: Graphics & OpenCL
+License: Apache License 2.0
+Source: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+BuildRequires: cmake
+BuildRequires: pkg-config
+
+
+%define BUILD_TYPE Debug
+
+%description
+Khronos OpenCL Headers
+
+%package devel
+Summary: Khronos OpenCL Headers
+Group: System/Libraries
+
+%description devel
+Khronos OpenCL Headers
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+
+# build OpenCL headers
+%cmake . -DDOCUMENTATION_FORMAT=man \
+ -DCMAKE_C_FLAGS="%{optflags} -fPIC" \
+ -DCMAKE_EXE_LINKER_FLAGS=" -pie"
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+%make_install DESTDIR=%{buildroot}
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%defattr(-,root,root,-)
+%{_includedir}/CL/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/CL/*
+
+%define _unpackaged_files_terminate_build 0