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