]> git.pld-linux.org Git - packages/clcc.git/blob - clcc.spec
- rebuild with boost 1.57.0
[packages/clcc.git] / clcc.spec
1 Summary:        CLCC - The OpenCL kernel compiler
2 Summary(pl.UTF-8):      CLCC - kompilator jąder OpenCL
3 Name:           clcc
4 Version:        0.3.0
5 Release:        2
6 License:        Boost v1.0
7 Group:          Development/Tools
8 Source0:        http://downloads.sourceforge.net/clcc/%{name}-%{version}-25-src.zip
9 # Source0-md5:  7ec003cc775d1cd06e789fb054c1d695
10 Patch0:         %{name}-shared.patch
11 Patch1:         %{name}-no-svn.patch
12 Patch2:         %{name}-opencl.patch
13 URL:            http://clcc.sourceforge.net/
14 BuildRequires:  boost-devel
15 BuildRequires:  cmake >= 2.8
16 BuildRequires:  doxygen
17 BuildRequires:  libstdc++-devel
18 Requires:       OpenCL
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 CLCC is a compiler for OpenCL kernel source files. It is intended to
23 be a tool for application developers who need to incorporate OpenCL
24 source code into their programs and who want to verify their OpenCL
25 code actually gets compiled by the driver before their program tries
26 to compile it on-demand.
27
28 %description -l pl.UTF-8
29 CLCC to kompilator plików źródłowych jąder OpenCL. Jest pomyślany jako
30 narzędzie dla programistów potrzebujących wykorzystywać we własnych
31 programach kody źródłowe OpenCL i chcących zweryfikować je przed
32 skompilowaniem przez sterownik na żądanie w przypadku użycia przez
33 program.
34
35 %prep
36 %setup -q -c
37 %patch0 -p1
38 %patch1 -p1
39 %patch2 -p1
40
41 %build
42 install -d build
43 cd build
44 %cmake .. \
45         -DBOOST_LIBRARIES=%{_libdir}
46 %{__make} all clcc_doc
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} -C build install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 # not really useful for non-clcc developers
55 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc license.txt 
63 %attr(755,root,root) %{_bindir}/clcc
This page took 0.032346 seconds and 3 git commands to generate.