libclc/libclc.spec
Jimmy Berry 40a7402ed0 Accepting request 559571 from home:pluskalm:branches:X11:XOrg
- Update to version 0.2.0+git.20171127:
  * configure.py: Add gfx900 (Vega, Raven)
  * math: Implement minmag
  * math: Implement maxmag
  * native_powr: Switch implementation to native_exp2 and native_log2
  * native_divide: provide function implementation instead of macro
  * native_recip: provide function implementation instead of macro
  * native_rsqrt: Switch implementation to 1 / native_sqrt
  * native_tan: Switch implementation to use native_sin/native_cos
  * math: Use precomputed constant for log2(10.0)
  * native_exp10: Switch implementation to llvm intrinsic
  * native_sqrt: Switch implementation to llvm intrinsic
  * native_sin: Switch implementation to llvm intrinsic
  * native_cos: Switch implementation to llvm intrinsic
  * native_exp2: Switch implementation to llvm intrinsic
  * native_exp: Switch implementation to llvm intrinsic
  * amdgpu: Add workaround for unimplemented llvm.exp intrinsic
  * native_log10: Switch to generic native intrinsic inc file
  * native_log: Switch to generic native intrinsic inc file
  * native_log2: Switch to generic native intrinsic inc file

OBS-URL: https://build.opensuse.org/request/show/559571
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=21
2017-12-24 02:17:22 +00:00

69 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.20171127
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