forked from pool/libclc
60cd8ba9ca
- Update to version 0.2.0+git.20170920: * generic: add missing get_work_dim include * add __kernel_exec macros * configure.py: Make python3 friendly * configure.py: Drop explicit import of int builtin * amdgcn: Implement {read_,write_,}mem_fence builtin * amdgcn: rewrite barrier() using fence and clang __builtin_amdgcn_s_barrier * Add halfN types and enable fp16 when generating builtin declarations * relational: Implement shuffle builtin * relational: Implement shuffle2 builtin * Fixup clc.h comment * r600: Cleanup barrier implementation. * amdgcn,waitcnt: Add datalayout info * configure.py: Simplify compatibility sources * vstore: Cleanup and add vstore(half) * Implement vload_half{,n} and vload(half) * integer: Add popcount implementation using ctpop intrinsic * Add native_recip(x) as ((1)/(x)) * Add travis CI configuration file * Implement cl_khr_int64_base_atomics builtins * Implement cl_khr_int64_extended_atomics builtins OBS-URL: https://build.opensuse.org/request/show/527633 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=17
70 lines
1.9 KiB
RPMSpec
70 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package libclc
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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: libclc
|
|
Version: 0.2.0+git.20170920
|
|
Release: 0
|
|
Summary: OpenCL C programming language library
|
|
License: BSD-3-Clause or MIT
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://libclc.llvm.org/
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: %{name}-rpmlintrc
|
|
BuildRequires: gcc
|
|
BuildRequires: libstdc++-devel >= 3.9
|
|
BuildRequires: llvm-clang-devel >= 4.0
|
|
BuildRequires: llvm-devel >= 4.0
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python
|
|
BuildRequires: zlib-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Library requirements of the OpenCL C programming language.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export \
|
|
CFLAGS="%{optflags}" \
|
|
CXXFLAGS="%{optflags}" \
|
|
CC=clang \
|
|
CXX=clang++
|
|
./configure.py \
|
|
--prefix=%{_prefix} \
|
|
--with-llvm-config=%{_bindir}/llvm-config \
|
|
--with-cxx-compiler=${CXX} \
|
|
--enable-runtime-subnormal \
|
|
--pkgconfigdir=%{_libdir}/pkgconfig/ \
|
|
--libexecdir=%{_libdir}/clc/
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.TXT
|
|
%{_includedir}/clc
|
|
%{_libdir}/clc
|
|
%{_libdir}/pkgconfig/libclc.pc
|
|
|
|
%changelog
|