forked from pool/opencl-cpp-headers
Accepting request 541133 from home:aaronpuchert
OpenCL is a royalty-free standard for cross-platform, parallel programming of modern processors found in personal computers, servers and handheld/embedded devices. This package provides the official C++ headers for OpenCL, which are wrappers around the C headers. OBS-URL: https://build.opensuse.org/request/show/541133 OBS-URL: https://build.opensuse.org/package/show/science/opencl-cpp-headers?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
4
opencl-cpp-headers.changes
Normal file
4
opencl-cpp-headers.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 12 22:13:09 UTC 2017 - aaronpuchert@alice-dsl.net
|
||||
|
||||
- Created package based on version 2.0.10.
|
||||
62
opencl-cpp-headers.spec
Normal file
62
opencl-cpp-headers.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# spec file for package opencl-cpp-headers
|
||||
#
|
||||
# Copyright (c) 2017 Aaron Puchert.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: opencl-cpp-headers
|
||||
Version: 2.0.10
|
||||
Release: 0
|
||||
Summary: OpenCL C++ headers
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: https://www.khronos.org/registry/OpenCL/
|
||||
Source: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v%{version}.tar.gz
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: findutils
|
||||
BuildRequires: python
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires: opencl-headers
|
||||
|
||||
%description
|
||||
OpenCL is a royalty-free standard for cross-platform, parallel programming
|
||||
of modern processors found in personal computers, servers and
|
||||
handheld/embedded devices.
|
||||
|
||||
This package provides the official C++ headers for OpenCL, which are wrappers
|
||||
around the C headers.
|
||||
|
||||
%prep
|
||||
%setup -q -n OpenCL-CLHPP-%{version}
|
||||
|
||||
%build
|
||||
# Fix line endings
|
||||
find -type f -print0 | xargs -0 dos2unix
|
||||
|
||||
# Build cl.hpp from input_cl.hpp
|
||||
./gen_cl_hpp.py
|
||||
|
||||
%install
|
||||
install -d -m 0755 %{buildroot}%{_includedir}/CL
|
||||
install -p -m 0644 cl.hpp %{buildroot}%{_includedir}/CL
|
||||
install -p -m 0644 input_cl2.hpp %{buildroot}%{_includedir}/CL/cl2.hpp
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/CL
|
||||
%{_includedir}/CL/*.hpp
|
||||
|
||||
%changelog
|
||||
3
v2.0.10.tar.gz
Normal file
3
v2.0.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa27456295c3fa534ce824eb0314190a8b3ebd3ba4d93a0b1270fc65bf378f2b
|
||||
size 129954
|
||||
Reference in New Issue
Block a user