]>
Commit | Line | Data |
---|---|---|
33729bf8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without osl # OpenScop support | |
4 | # | |
0628f0f4 | 5 | %define isl_ver 0.13 |
748bb20d JB |
6 | Summary: The Chunky Loop Generator |
7 | Summary(pl.UTF-8): Chunky Loop Generator - generator pętli cząstkowych | |
8 | Name: cloog-isl | |
2aa1cad6 | 9 | Version: 0.18.2 |
2768d28a | 10 | Release: 3 |
748bb20d JB |
11 | License: LGPL v2.1+ |
12 | Group: Development/Tools | |
13 | Source0: http://www.bastoul.net/cloog/pages/download/cloog-%{version}.tar.gz | |
2aa1cad6 JB |
14 | # Source0-md5: 69116aa6cd5e73f6b688d871875e1292 |
15 | Patch0: cloog-missing.patch | |
0628f0f4 | 16 | Patch1: cloog-isl-git.patch |
748bb20d JB |
17 | URL: http://www.cloog.org/ |
18 | BuildRequires: autoconf >= 2.13 | |
19 | BuildRequires: automake | |
20 | BuildRequires: gmp-devel >= 5.0.2 | |
21 | BuildRequires: gmp-c++-devel >= 5.0.2 | |
2aa1cad6 | 22 | BuildRequires: isl-devel >= %{isl_ver} |
16fd4dbc | 23 | BuildRequires: libtool |
33729bf8 | 24 | %{?with_osl:BuildRequires: osl-devel} |
16fd4dbc | 25 | BuildRequires: texinfo-texi2dvi |
748bb20d JB |
26 | Requires: %{name}-libs = %{version}-%{release} |
27 | Provides: cloog = %{version} | |
28 | Obsoletes: cloog | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | CLooG is a software which generates loops for scanning Z-polyhedra. | |
33 | That is, CLooG finds the code or pseudo-code where each integral point | |
34 | of one or more parametrized polyhedron or parametrized polyhedra union | |
35 | is reached. CLooG is designed to avoid control overhead and to produce | |
36 | a very efficient code. | |
37 | ||
38 | This version is based on isl. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | CLooG to oprogramowanie generujące pętle do przeszukiwania | |
42 | Z-wielościanów (Z-polyhedra). Oznacza to, że CLooG znajduje kod lub | |
43 | pseudokod osiągający każdy punkt całkowity jednego lub większej liczby | |
44 | sparametryzowanych wielościanów lub sum sparametryzowanych | |
45 | wielościanów. CLooG jest zaprojektowany z myślą o zapobieganiu | |
46 | narzutowi na sterowaniu oraz generowaniu bardzo wydajnego kodu. | |
47 | ||
48 | Ta wersja jest oparta na bibliotece isl. | |
49 | ||
50 | %package libs | |
51 | Summary: Chunky Loop Generator shared library - isl based version | |
52 | Summary(pl.UTF-8): Biblioteka współdzielona Chunky Loop Generatora - wersja oparta na isl | |
53 | Group: Libraries | |
2aa1cad6 | 54 | Requires: isl >= %{isl_ver} |
748bb20d JB |
55 | |
56 | %description libs | |
57 | Chunky Loop Generator shared library - isl based version. | |
58 | ||
59 | %description libs -l pl.UTF-8 | |
60 | Biblioteka współdzielona Chunky Loop Generatora - wersja oparta na | |
61 | isl. | |
62 | ||
63 | %package devel | |
64 | Summary: Header files for the isl based version of Chunky Loop Generator | |
65 | Summary(pl.UTF-8): Pliki nagłówkowe opartej na isl wersji Chunky Loop Generatora | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-libs = %{version}-%{release} | |
68 | Requires: gmp-devel >= 5.0.2 | |
69 | Requires: gmp-c++-devel >= 5.0.2 | |
2aa1cad6 | 70 | Requires: isl-devel >= %{isl_ver} |
33729bf8 | 71 | %{?with_osl:Requires: osl-devel} |
748bb20d JB |
72 | Provides: cloog-devel = %{version} |
73 | ||
74 | %description devel | |
75 | The header files for Chunky Loop Generator library. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe biblioteki Chunky Loop Generatora. | |
79 | ||
80 | %package static | |
81 | Summary: Static library of isl based version of Chunky Loop Generator | |
82 | Summary(pl.UTF-8): Statyczna biblioteka opartej na isl wersji Chunky Loop Generatora | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static library of isl based version of Chunky Loop Generator. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczna biblioteka opartej na isl wersji Chunky Loop Generatora. | |
91 | ||
92 | %prep | |
93 | %setup -q -n cloog-%{version} | |
2aa1cad6 | 94 | %patch0 -p1 |
0628f0f4 | 95 | %patch1 -p1 |
748bb20d JB |
96 | |
97 | %build | |
33729bf8 | 98 | # with_gmp_exec_prefix=yes avoids adding -L/lib to LDFLAGS |
748bb20d JB |
99 | %configure \ |
100 | --disable-silent-rules \ | |
33729bf8 JB |
101 | --with-gmp-exec-prefix \ |
102 | --with-isl=system \ | |
103 | %{?with_osl:--with-osl=system} | |
748bb20d JB |
104 | |
105 | %{__make} | |
106 | ||
16fd4dbc JB |
107 | %{__make} -C doc cloog.pdf |
108 | ||
748bb20d JB |
109 | %install |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post libs -p /sbin/ldconfig | |
119 | %postun libs -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_bindir}/cloog | |
124 | ||
125 | %files libs | |
126 | %defattr(644,root,root,755) | |
127 | %doc ChangeLog README | |
128 | %attr(755,root,root) %{_libdir}/libcloog-isl.so.*.*.* | |
16fd4dbc | 129 | %attr(755,root,root) %ghost %{_libdir}/libcloog-isl.so.4 |
748bb20d JB |
130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %doc doc/cloog.pdf | |
134 | %attr(755,root,root) %{_libdir}/libcloog-isl.so | |
135 | %{_libdir}/libcloog-isl.la | |
136 | %dir %{_includedir}/cloog | |
137 | %{_includedir}/cloog/*.h | |
138 | %{_includedir}/cloog/isl | |
139 | %{_includedir}/cloog/matrix | |
920340c1 JB |
140 | %dir %{_libdir}/cloog-isl |
141 | %{_libdir}/cloog-isl/cloog-isl-config.cmake | |
142 | %dir %{_libdir}/isl | |
143 | %{_libdir}/isl/isl-config.cmake | |
748bb20d JB |
144 | %{_pkgconfigdir}/cloog-isl.pc |
145 | ||
146 | %files static | |
147 | %defattr(644,root,root,755) | |
148 | %{_libdir}/libcloog-isl.a |