]>
Commit | Line | Data |
---|---|---|
f14f25d1 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | # | |
5 | Summary: Cilk compiler | |
b2c6c4fb | 6 | Summary(pl.UTF-8): Kompilator Cilka |
f14f25d1 | 7 | Name: cilk |
8 | Version: 5.4.2.2 | |
9 | %define _rev 1708 | |
10 | Release: 0.1 | |
11 | License: GPL v2 and LGPL | |
12 | Group: Development/Languages | |
13 | Source0: http://bradley.csail.mit.edu/~bradley/cilk/downloads/%{name}-%{version}_%{_rev}.tar.bz2 | |
14 | # Source0-md5: 1046f684ac72076106574fcc8326e612 | |
15 | URL: http://supertech.lcs.mit.edu/cilk/ | |
7fb666bf | 16 | Patch0: %{name}-update.patch |
d6f1d0f5 | 17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
4d29a260 | 19 | BuildRequires: bison |
f14f25d1 | 20 | BuildRequires: flex |
d6f1d0f5 | 21 | BuildRequires: libtool |
f14f25d1 | 22 | Requires: gcc |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Cilk is a language for multithreaded parallel programming based on | |
27 | ANSI C. Cilk is designed for general-purpose parallel programming, but | |
28 | it is especially effective for exploiting dynamic, highly asynchronous | |
29 | parallelism, which can be difficult to write in data-parallel or | |
30 | message-passing style. | |
31 | ||
1301247d JR |
32 | %description -l pl.UTF-8 |
33 | Clik to język to wielowątkowego, równoległego programowania oparty na | |
34 | ANSI C. Cilk został zaprojektowany do programowania równoległego | |
35 | ogólnego przeznaczenia, ale jest szczególnie efektywny do | |
36 | wykorzystywania dynamicznej, wysoce asynchronicznej równoległości, | |
37 | kiedy może być trudno pisać w stylu z równoległymi danymi lub | |
38 | przekazywaniem komunikatów. | |
f14f25d1 | 39 | |
40 | %package static | |
41 | Summary: Static cilk libraries | |
b2c6c4fb | 42 | Summary(pl.UTF-8): Statyczne biblioteki cilka |
f14f25d1 | 43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static cilk libraries. | |
48 | ||
1301247d | 49 | %description static -l pl.UTF-8 |
d1d99c07 | 50 | Statyczne biblioteki cilka. |
f14f25d1 | 51 | |
52 | %prep | |
53 | %setup -q -n %{version} | |
7fb666bf | 54 | %patch0 -p1 |
f14f25d1 | 55 | %{!?with_tests:sed 's/ examples / /' -i Makefile.in} |
56 | ||
57 | %build | |
c7f50b33 | 58 | %{__libtoolize} |
59 | %{__aclocal} -I m4dir | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
f14f25d1 | 63 | |
64 | %configure | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc AUTHORS ChangeLog NEWS README THANKS | |
82 | %attr(755,root,root) %{_bindir}/* | |
83 | %attr(755,root,root) %{_libdir}/*.so.*.*.* | |
f14f25d1 | 84 | %attr(755,root,root) %{_libdir}/*.so |
85 | %{_libdir}/*.la | |
86 | # contains libcilkrt0*.a | |
87 | %{_libdir}/%{name} | |
62c539ed | 88 | %{_includedir}/%{name} |
f14f25d1 | 89 | |
90 | %files static | |
91 | %defattr(644,root,root,755) | |
92 | %{_libdir}/*.a |