2015-12-02 16:15:58 +01:00
|
|
|
#
|
|
|
|
# spec file for package libclc
|
|
|
|
#
|
2019-01-06 04:28:51 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-12-02 16:15:58 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-06 04:28:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-02 16:15:58 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libclc
|
2019-03-13 21:48:31 +01:00
|
|
|
Version: 0.2.0+git.20190313
|
2015-12-02 16:15:58 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenCL C programming language library
|
2019-03-19 14:54:54 +01:00
|
|
|
License: (BSD-3-Clause or MIT) and Apache-2.0 WITH LLVM-exception
|
2015-12-02 16:15:58 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://libclc.llvm.org/
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2015-12-09 18:54:21 +01:00
|
|
|
Source1: %{name}-rpmlintrc
|
2015-12-02 16:15:58 +01:00
|
|
|
BuildRequires: gcc
|
2017-01-09 12:06:50 +01:00
|
|
|
BuildRequires: libstdc++-devel >= 3.9
|
2017-11-09 00:08:33 +01:00
|
|
|
BuildRequires: llvm >= 4.0
|
2017-04-12 19:50:17 +02:00
|
|
|
BuildRequires: llvm-clang-devel >= 4.0
|
2015-12-02 16:15:58 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2016-07-08 22:23:55 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-11-09 00:08:33 +01:00
|
|
|
BuildRequires: python3
|
2015-12-02 16:15:58 +01:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Library requirements of the OpenCL C programming language.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-11-09 00:08:33 +01:00
|
|
|
sed -i "s|python|python3|g" configure.py
|
2015-12-09 18:54:21 +01:00
|
|
|
export \
|
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
CXXFLAGS="%{optflags}" \
|
|
|
|
CC=clang \
|
|
|
|
CXX=clang++
|
2017-11-09 00:08:33 +01:00
|
|
|
python3 ./configure.py \
|
2015-12-09 18:54:21 +01:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--with-llvm-config=%{_bindir}/llvm-config \
|
|
|
|
--with-cxx-compiler=${CXX} \
|
|
|
|
--enable-runtime-subnormal \
|
|
|
|
--pkgconfigdir=%{_libdir}/pkgconfig/ \
|
|
|
|
--libexecdir=%{_libdir}/clc/
|
2015-12-02 16:15:58 +01:00
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
|
|
|
|
%install
|
2016-07-08 22:23:55 +02:00
|
|
|
%make_install
|
2015-12-02 16:15:58 +01:00
|
|
|
|
|
|
|
%files
|
2015-12-17 11:03:57 +01:00
|
|
|
%doc LICENSE.TXT
|
2015-12-02 16:15:58 +01:00
|
|
|
%{_includedir}/clc
|
|
|
|
%{_libdir}/clc
|
|
|
|
%{_libdir}/pkgconfig/libclc.pc
|
|
|
|
|
|
|
|
%changelog
|