/[packages]/cauldron/libclc/current/SPECS/libclc.spec
ViewVC logotype

Contents of /cauldron/libclc/current/SPECS/libclc.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1379306 - (show annotations) (download)
Wed Mar 20 21:58:06 2019 UTC (3 months, 1 week ago) by tv
File size: 2509 byte(s)
imported package libclc
1 %global commit 1ecb16dd7d8b8e9151027faab996f27b2ac508e3
2 %global shortcommit %(c=%{commit}; echo ${c:0:7})
3 %global checkout git%{shortcommit}
4
5 %global shortname clc
6
7 # this stop us generating an empty debuginfo
8 %global debug_package %{nil}
9
10 Name: libclc
11 Version: 0.2.0
12 Release: %mkrel 1
13 Summary: An open source implementation of the OpenCL 1.1 library requirements
14 Group: Development/C
15
16 License: BSD
17 URL: https://libclc.llvm.org
18 Source0: https://github.com/llvm-mirror/%{name}/archive/%{commit}/%{name}-%{checkout}.tar.gz
19
20 ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 %{power64} s390x
21
22 BuildRequires: clang-devel
23 BuildRequires: libedit-devel
24 BuildRequires: llvm-devel >= 3.9
25 BuildRequires: python
26 BuildRequires: zlib-devel
27
28 %description
29 libclc is an open source, BSD licensed implementation of the library
30 requirements of the OpenCL C programming language, as specified by the
31 OpenCL 1.1 Specification. The following sections of the specification
32 impose library requirements:
33
34 * 6.1: Supported Data Types
35 * 6.2.3: Explicit Conversions
36 * 6.2.4.2: Reinterpreting Types Using as_type() and as_typen()
37 * 6.9: Preprocessor Directives and Macros
38 * 6.11: Built-in Functions
39 * 9.3: Double Precision Floating-Point
40 * 9.4: 64-bit Atomics
41 * 9.5: Writing to 3D image memory objects
42 * 9.6: Half Precision Floating-Point
43
44 libclc is intended to be used with the Clang compiler's OpenCL frontend.
45
46 libclc is designed to be portable and extensible. To this end, it provides
47 generic implementations of most library requirements, allowing the target
48 to override the generic implementation at the granularity of individual
49 functions.
50
51 libclc currently only supports the PTX target, but support for more
52 targets is welcome.
53
54
55 %package devel
56 Summary: Development files for %{name}
57 Group: Development/C
58 Requires: %{name}%{?_isa} = %{version}-%{release}
59
60 %description devel
61 The %{name}-devel package contains libraries and header files for
62 developing applications that use %{name}.
63
64 %prep
65 %autosetup -n %{name}-%{commit}
66
67 %build
68 export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
69 ./configure.py --prefix=%{_prefix} --libexecdir=%{_libdir}/%{shortname}/ --pkgconfigdir=%{_libdir}/pkgconfig/
70
71 %make_build
72
73 %install
74 %make_install
75
76 %files
77 %license LICENSE.TXT
78 %doc README.TXT CREDITS.TXT
79 %dir %{_libdir}/%{shortname}
80 %{_libdir}/%{shortname}/*.bc
81 %{_includedir}/%{shortname}
82
83 %files devel
84 %{_libdir}/pkgconfig/%{name}.pc
85

  ViewVC Help
Powered by ViewVC 1.1.26