diff options
author | Xuelian Bai <xuelian.bai@samsung.com> | 2022-01-05 11:42:59 +0800 |
---|---|---|
committer | Joonbum Ko <joonbum.ko@samsung.com> | 2022-03-11 12:00:32 +0900 |
commit | 39738c2bf28e99349d225a0daa575073fad2215d (patch) | |
tree | c344bb0b0e61272b9446b107e704308fe69ba9c2 | |
parent | 59ac4dc2f282286d8db83143686cfe37ec658b84 (diff) | |
download | OpenCL-Headers-accepted/tizen_8.0_unified.tar.gz OpenCL-Headers-accepted/tizen_8.0_unified.tar.bz2 OpenCL-Headers-accepted/tizen_8.0_unified.zip |
Add spec file for Tizentizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220315.071947accepted/tizen/unified/20220315.205503accepted/tizen/9.0/unified/20241030.232221accepted/tizen/8.0/unified/20231005.094558accepted/tizen/7.0/unified/hotfix/20221116.110541accepted/tizen/7.0/unified/20221110.060459tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0tizenaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
-rw-r--r-- | packaging/opencl-headers.manifest | 5 | ||||
-rw-r--r-- | packaging/opencl-headers.spec | 53 |
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 |