libclc/libclc.spec

69 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libclc
#
Accepting request 641350 from home:boombatower:branches:X11:XOrg - Update to version 0.2.0+git.20180915: * configure: Rework support for gfx9+ devices that were added post LLVM 3.9 * .travis: Add llvm-7 build * .travis: Use source whitelist alias for llvm-6 repository * amdgcn: Use __constant AS for amdgcn builtins. * atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,extended}_atomics * atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics implementation * atomic: Provide function implementation of atomic_{dec,inc} * atom: Consolidate cl_khr_int64_{base,extended}_atomics declarations * atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics declarations * atomic: Cleanup atomic_cmpxchg header * atomic: Move define cleanup to shared include * Update copyright year to 2018. * r600/fmin: Flush denormals before calling builtin. * r600/fmax: Flush denormals before calling builtin. * math/fma: Add fp32 software implementation * Add initial support for half precision builtins * rootn: Use denormal path only * remquo: Flush denormals if not supported * remquo: Port from amd builtins * math: Add helper function to flush denormals if not supported. * clc_sqrt: Reuse unary_decl.inc * relational/select: Condition types for half are short/ushort, not char/uchar * log10: Use sw implementation from amd builtins * powr: Use denormal path only * pown: Use denormal path only * pow: Use denormal path only * amdgcn/fmin: Fix typos that reduced precision * exp10: Port from amd builtins * hypot: Port from amd builtins OBS-URL: https://build.opensuse.org/request/show/641350 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=23
2018-10-12 04:06:33 +02:00
# Copyright (c) 2018 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
Accepting request 641350 from home:boombatower:branches:X11:XOrg - Update to version 0.2.0+git.20180915: * configure: Rework support for gfx9+ devices that were added post LLVM 3.9 * .travis: Add llvm-7 build * .travis: Use source whitelist alias for llvm-6 repository * amdgcn: Use __constant AS for amdgcn builtins. * atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,extended}_atomics * atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics implementation * atomic: Provide function implementation of atomic_{dec,inc} * atom: Consolidate cl_khr_int64_{base,extended}_atomics declarations * atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics declarations * atomic: Cleanup atomic_cmpxchg header * atomic: Move define cleanup to shared include * Update copyright year to 2018. * r600/fmin: Flush denormals before calling builtin. * r600/fmax: Flush denormals before calling builtin. * math/fma: Add fp32 software implementation * Add initial support for half precision builtins * rootn: Use denormal path only * remquo: Flush denormals if not supported * remquo: Port from amd builtins * math: Add helper function to flush denormals if not supported. * clc_sqrt: Reuse unary_decl.inc * relational/select: Condition types for half are short/ushort, not char/uchar * log10: Use sw implementation from amd builtins * powr: Use denormal path only * pown: Use denormal path only * pow: Use denormal path only * amdgcn/fmin: Fix typos that reduced precision * exp10: Port from amd builtins * hypot: Port from amd builtins OBS-URL: https://build.opensuse.org/request/show/641350 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=23
2018-10-12 04:06:33 +02:00
Version: 0.2.0+git.20180915
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 >= 4.0
BuildRequires: llvm-clang-devel >= 4.0
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: zlib-devel
%description
Library requirements of the OpenCL C programming language.
%prep
%setup -q
%build
sed -i "s|python|python3|g" configure.py
export \
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
CC=clang \
CXX=clang++
python3 ./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
%doc LICENSE.TXT
%{_includedir}/clc
%{_libdir}/clc
%{_libdir}/pkgconfig/libclc.pc
%changelog