# # spec file for package libclc # # Copyright (c) 2015 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+git20151006.6d78407 Release: 0 Summary: OpenCL C programming language library License: BSD-2-Clause Group: Development/Libraries/C and C++ Url: http://libclc.llvm.org/ Source0: %{name}-%{version}.tar.xz BuildRequires: gcc BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: llvm-clang-devel BuildRequires: llvm-devel >= 3.7 BuildRequires: ncurses-devel BuildRequires: pkg-config 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}" export CXXFLAGS="%{optflags}" export CC=clang export 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 DESTDIR=%{buildroot} install %{?_smp_mflags} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_includedir}/clc %{_libdir}/clc %{_libdir}/pkgconfig/libclc.pc %changelog