3 %bcond_without apidocs # do not build and package API docs
5 Summary: OpenCL C programming language library implementation
6 Summary(pl.UTF-8): Implementacja biblioteki języka programowania OpenCL C
11 License: BSD-like or MIT
13 # https://github.com/llvm/llvm-project/tree/master/libclc
14 Source0: libclc-%{snap}.tar.xz
15 # Source0-md5: ea25d81625b12e7659881509aa7546cb
17 URL: http://libclc.llvm.org/
18 BuildRequires: clang >= 3.9
19 BuildRequires: llvm-devel >= 3.9
20 BuildRequires: python >= 1:2.7
21 BuildRequires: rpmbuild(macros) >= 1.446
22 Requires: llvm-libs >= 3.9
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 libclc is an open source, BSD licensed implementation of the library
27 requirements of the OpenCL C programming language, as specified by the
28 OpenCL 1.1 Specification. The following sections of the specification
29 impose library requirements:
31 * 6.1: Supported Data Types
32 * 6.2.3: Explicit Conversions
33 * 6.2.4.2: Reinterpreting Types Using as_type() and as_typen()
34 * 6.9: Preprocessor Directives and Macros
35 * 6.11: Built-in Functions
36 * 9.3: Double Precision Floating-Point
38 * 9.5: Writing to 3D image memory objects
39 * 9.6: Half Precision Floating-Point
41 libclc is intended to be used with the Clang compiler's OpenCL
44 %description -l pl.UTF-8
45 libclc to mająca otwarte źródła, wydana na licencji BSD implementacja
46 wymagań bibliotecznych języka programowania OpenCL C zgodna ze
47 specyfikacją OpenCL 1.1. Wymagania biblioteczne wynikają z
48 następujących sekcji specyfikacji:
50 * 6.1: obsługiwane typy danych
51 * 6.2.3: jawne konwersje
52 * 6.2.4.2: reinterpretacja typów przy użyciu as_type() i as_typen()
53 * 6.9: dyrektywy i makra preprocesora
54 * 6.11: funkcje wbudowane
55 * 9.3: arytmetyka zmiennoprzecinkowa podwójnej precyzji
56 * 9.4: 64-bitowe operacje atomowe
57 * 9.5: zapis do biektów obrazów 3D w pamięci
58 * 9.6: arytmetyka zmiennoprzecinkowa połówkowej precyzji
60 libclc jest przeznaczona do używania z frontendem OpenCL kompilatora
70 --libexecdir=%{_datadir}/clc \
71 --pkgconfigdir=%{_npkgconfigdir} \
72 --with-llvm-config=/usr/bin/llvm-config
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc CREDITS.TXT LICENSE.TXT README.TXT www/index.html
91 %{_npkgconfigdir}/libclc.pc