forked from intel/opencl-clang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora.spec
56 lines (41 loc) · 1.09 KB
/
fedora.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name: intel-opencl-clang
Version: 1.0
Release: 1%{?dist}
Summary: Intel(R) OpenCL(TM) Clang
Group: System Environment/Libraries
License: MIT
URL: https://github.com/ArturHarasimiuk/opencl-clang
Source0: https://github.com/intel/opencl-clang/archive/master/opencl-clang-master.tar.gz
Source1: https://github.com/llvm-mirror/llvm/archive/release_40/llvm-40.tar.gz
Source2: https://github.com/llvm-mirror/clang/archive/release_40/clang-40.tar.gz
BuildRequires: cmake clang gcc-c++ ninja-build
# Requires:
%description
%prep
echo $RPM_BUILD_DIR
echo $RPM_SOURCE_DIR
# %setup -q
%build
echo "==== BUILD ===="
rm -rf *
tar xzf $RPM_SOURCE_DIR/opencl-clang-master.tar.gz
tar xzf $RPM_SOURCE_DIR/llvm-40.tar.gz
tar xzf $RPM_SOURCE_DIR/clang-40.tar.gz
mv llvm-release_40 llvm_source
mv clang-release_40 clang_source
mkdir build
cd build
cmake -G Ninja ../intel-opencl-clang-1.0 -DCMAKE_BUILD_TYPE=Release
cmake --build . --target cclang
find -name libopencl_clang.so
find -name libcommon_clang.so
nproc
free
%install
# %make_install
echo "==== INSTALL ===="
pwd
# %files
# %doc
# %changelog
echo "==== DONE ===="