libclc/libclc.spec
Jimmy Berry 3f5f02391d Accepting request 684790 from home:boombatower:branches:X11:XOrg
- Update to version 0.2.0+git.20190313:
  * sincos: Simplify declaration headers.
  * fdim: Use binary_decl_tt.inc instead of custom inc file.
  * nextafter: Use binary_decl_tt.inc instead of custom inc file.
  * copysign: Use binary_decl_tt.inc instead of custom inc file.
  * atan2pi: Use binary_decl_tt.inc instead of custom inc file.
  * atan2: Use binary_decl_tt.inc instead of custom inc file.
  * hypot: Use binary_decl_tt.inc instead of custom inc file
  * Move unary_instrinsic.inc to private headers.
  * Move binary_intrinsic.h to private headers.
  * Move ternary_intrinsic.h to private headers.
  * trunc: Remove llvm intrinsic from the header.
  * round: Remove llvm intrinsic from the header
  * rint: Remove llvm intrinsic from the header.
  * floor: Remove llvm isntrinsic from the header.
  * fabs: Remove llvm intrinsic from the header.
  * ceil: Remove llvm intrinsic from the header.
  * sqrt: Split function generation to a shared inc file.
  * mad: Convert to standard ternary header
  * travis: Deduplicate LLVM_CONFIG variable
  * travis: Use gcc-6 for llvm-7 build
  * Adjust documentation for git migration.
  * Fix typos throughout the license files that somehow I and my reviewers all missed!
  * Update the file headers across all of the LLVM projects in the monorepo to reflect the new license.
  * Install new LLVM license structure and new developer policy.
  * Update year in license files
  * cmake: Install libraries to DATADIR from GNUInstallDirs

OBS-URL: https://build.opensuse.org/request/show/684790
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=27
2019-03-13 20:48:31 +00:00

69 lines
1.9 KiB
RPMSpec

#
# spec file for package libclc
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: libclc
Version: 0.2.0+git.20190313
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