]>
Commit | Line | Data |
---|---|---|
b3a71a7e | 1 | # TODO |
af7f1118 | 2 | # - build ocaml binding as shared module |
d749bea6 | 3 | # - verify ocaml,gprolog,swipl,Yap,Ciao files locations |
b3a71a7e ER |
4 | # - help naming the subpackages properly |
5 | # - fix mess with docs packaging | |
86484c6d | 6 | # - finish xsb prolog |
a0b289eb | 7 | # - proprietary: sicstus prolog |
b3a71a7e ER |
8 | # |
9 | # Conditional build: | |
294b87ca JB |
10 | %bcond_without java # Java bindings |
11 | %bcond_without ocaml # OCaml bindings | |
5d784c73 | 12 | %bcond_with ciao # Ciao Prolog interface |
294b87ca JB |
13 | %bcond_without gprolog # GNU Pprolog interface |
14 | %bcond_without swipl # SWI-Prolog interface | |
e1bffd47 | 15 | %bcond_with yap # Yap prolog interface |
86484c6d | 16 | %bcond_with xsb # XSB prolog interface |
b3a71a7e | 17 | |
828240ff JB |
18 | %ifnarch %{ix86} %{x8664} alpha ppc64 |
19 | # GNU Prolog not available | |
b3a71a7e ER |
20 | %undefine with_gprolog |
21 | %endif | |
22 | ||
23 | Summary: The Parma Polyhedra Library: a library of numerical abstractions | |
b6b7794a | 24 | Summary(pl.UTF-8): Parma Polyhedra Library - biblioteka abstrakcji matematycznych |
b3a71a7e | 25 | Name: ppl |
3dc0db56 | 26 | Version: 0.12 |
c8a0f026 | 27 | Release: 1 |
b3a71a7e | 28 | License: GPL v3+ |
b6b7794a | 29 | Group: Libraries |
3dc0db56 JB |
30 | Source0: ftp://ftp.cs.unipr.it/pub/ppl/releases/%{version}/%{name}-%{version}.tar.xz |
31 | # Source0-md5: 7615f217b66b4ab4783c20c9fc516ff4 | |
d749bea6 | 32 | Patch0: %{name}-ciao.patch |
b6b7794a | 33 | URL: http://www.cs.unipr.it/ppl/ |
86484c6d JB |
34 | %if %{with xsb} |
35 | BuildRequires: XSB | |
36 | %endif | |
d749bea6 JB |
37 | %if %{with ciao} |
38 | BuildRequires: CiaoDE >= 1.14 | |
39 | %endif | |
435f93e6 JB |
40 | %if %{with yap} |
41 | BuildRequires: Yap >= 5.1.1 | |
42 | BuildRequires: Yap-static >= 5.1.1 | |
43 | %endif | |
d749bea6 JB |
44 | BuildRequires: autoconf >= 2.61 |
45 | BuildRequires: automake >= 1:1.11 | |
b3a71a7e ER |
46 | BuildRequires: glpk-devel >= 4.13 |
47 | BuildRequires: gmp-c++-devel >= 4.1.3 | |
48 | BuildRequires: gmp-devel >= 4.1.3 | |
3dc0db56 | 49 | BuildRequires: libstdc++-devel |
d749bea6 | 50 | BuildRequires: libtool >= 2:2.0 |
b3a71a7e | 51 | BuildRequires: m4 >= 1.4.8 |
3dc0db56 JB |
52 | BuildRequires: perl-base |
53 | BuildRequires: tar >= 1:1.22 | |
54 | BuildRequires: xz | |
294b87ca | 55 | %if %{with swipl} |
b3a71a7e | 56 | BuildRequires: pl >= 5.10.2-3 |
b3a71a7e ER |
57 | %endif |
58 | %if %{with gprolog} | |
59 | BuildRequires: gprolog >= 1.2.19 | |
60 | %endif | |
61 | %if %{with ocaml} | |
62 | BuildRequires: ocaml >= 3.09 | |
af7f1118 | 63 | BuildRequires: ocaml-gmp-devel |
b3a71a7e ER |
64 | %endif |
65 | %if %{with java} | |
66 | BuildRequires: jdk | |
67 | BuildRequires: jpackage-utils | |
68 | %endif | |
3dc0db56 | 69 | Obsoletes: ppl-pwl |
b3a71a7e ER |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
72 | %description | |
73 | The Parma Polyhedra Library (PPL) is a library for the manipulation of | |
74 | (not necessarily closed) convex polyhedra and other numerical | |
75 | abstractions. The applications of convex polyhedra include program | |
76 | analysis, optimized compilation, integer and combinatorial | |
77 | optimization and statistical data-editing. The Parma Polyhedra Library | |
78 | comes with several user friendly interfaces, is fully dynamic | |
79 | (available virtual memory is the only limitation to the dimension of | |
80 | anything), written in accordance to all the applicable standards, | |
81 | exception-safe, rather efficient, thoroughly documented, and free | |
82 | software. This package provides all what is necessary to run | |
83 | applications using the PPL through its C and C++ interfaces. | |
84 | ||
b6b7794a JB |
85 | %description -l pl.UTF-8 |
86 | Parma Polyhedra Library (PPL) to biblioteka do operacji na | |
87 | (niekoniecznie domkniętych) wielościanach wypukłych i innych | |
88 | abstrakcjach matematycznych. Zastosowania wielościanów wypukłych | |
89 | obejmują analizę programów, kompilację z optymalizacją, optymalizację | |
90 | całkowitoliczbową i kombinatoryczną oraz obróbkę danych | |
91 | statystycznych. Biblioteka PPL jest dostarczana z kilkoma przyjaznymi | |
92 | interfejsami, jest w pełni dynamiczna (jedynym ograniczeniem wymiarów | |
93 | jest dostępna pamięć wirtualna), napisana zgodnie ze wszystkimi | |
94 | mającymi zastosowanie standardami, jest bezpieczna pod kątem wyjątków, | |
95 | w miarę wydajna, dobrze udokumentowana i wolnodostępna. Ten pakiet | |
96 | zawiera wszystko, co jest potrzebne aplikacjom korzystającym z PPL | |
97 | poprzez interfejsy dla C i C++. | |
98 | ||
b3a71a7e | 99 | %package devel |
b6b7794a JB |
100 | Summary: Development files for the Parma Polyhedra Library C and C++ interfaces |
101 | Summary(pl.UTF-8): Pliki programistyczne intefejsów C i C++ biblioteki PPL | |
b3a71a7e ER |
102 | Group: Development/Libraries |
103 | Requires: %{name} = %{version}-%{release} | |
104 | Requires: gmp-devel >= 4.1.3 | |
3dc0db56 | 105 | Obsoletes: ppl-pwl-devel |
b3a71a7e ER |
106 | |
107 | %description devel | |
108 | The header files, Autoconf macro and minimal documentation for | |
109 | developing applications using the Parma Polyhedra Library through its | |
110 | C and C++ interfaces. | |
111 | ||
b6b7794a JB |
112 | %description devel -l pl.UTF-8 |
113 | Pliki nagłówkowe, makra Autoconfa oraz minimalna dokumentacja do | |
114 | tworzenia aplikacji wykorzystujących bibliotekę Parma Polyhedra | |
115 | Library poprzez interfejsy C i C++. | |
116 | ||
b3a71a7e ER |
117 | %package static |
118 | Summary: Static archives for the Parma Polyhedra Library C and C++ interfaces | |
b6b7794a | 119 | Summary(pl.UTF-8): Biblioteki statyczne interfejsów C i C++ biblioteki PPL |
b3a71a7e ER |
120 | Group: Development/Libraries |
121 | Requires: %{name}-devel = %{version}-%{release} | |
3dc0db56 | 122 | Obsoletes: ppl-pwl-static |
b3a71a7e ER |
123 | |
124 | %description static | |
125 | The static archives for the Parma Polyhedra Library C and C++ | |
126 | interfaces. | |
127 | ||
b6b7794a JB |
128 | %description static -l pl.UTF-8 |
129 | Biblioteki statyczne interfejsów C i C++ biblioteki Parma Polyhedra | |
130 | Library. | |
131 | ||
132 | %package docs | |
133 | Summary: Documentation for the Parma Polyhedra Library | |
134 | Summary(pl.UTF-8): Dokumentacja biblioteki Parma Polyhedra Library | |
135 | Group: Documentation | |
136 | Requires: %{name} = %{version}-%{release} | |
3dc0db56 | 137 | Obsoletes: ppl-pwl-docs |
b6b7794a JB |
138 | |
139 | %description docs | |
140 | This package contains all the documentations required by programmers | |
141 | using the Parma Polyhedra Library (PPL). Install this package if you | |
142 | want to program with the PPL. | |
143 | ||
144 | %description docs -l pl.UTF-8 | |
145 | Ten pakiet zawiera całą dokumentację potrzebną programistom | |
146 | korzystającym z biblioteki Parma Polyhedra Library (PPL). Warto | |
147 | zainstalować ten pakiet, aby programować z użyciem PPL. | |
148 | ||
b3a71a7e ER |
149 | %package utils |
150 | Summary: Utilities using the Parma Polyhedra Library | |
b6b7794a | 151 | Summary(pl.UTF-8): Narzędzia wykorzystujące bibliotekę PPL |
b3a71a7e ER |
152 | Group: Development/Libraries |
153 | Requires: %{name} = %{version}-%{release} | |
154 | ||
155 | %description utils | |
156 | This package contains the mixed integer linear programming solver | |
b6b7794a | 157 | ppl_lpsol, the program ppl_lcdd for vertex/facet enumeration of convex |
b3a71a7e ER |
158 | polyhedra, and the parametric integer programming solver ppl_pips. |
159 | ||
b6b7794a JB |
160 | %description utils -l pl.UTF-8 |
161 | Tan pakiet zawiera program do rozwiązywania mieszanych | |
162 | całkowitoliczbowych problemów programowania liniowego ppl_lpsol, | |
163 | program ppl_lcdd do numerowania wierzchołków i ścian wielościanów | |
164 | wypukłych oraz program do rozwiązywania parametrycznych | |
165 | całkowitoliczbowych problemów programowania liniowego ppl_pips. | |
166 | ||
d749bea6 JB |
167 | %package -n Ciao-ppl |
168 | Summary: The Ciao Prolog interface of the Parma Polyhedra Library | |
169 | Summary(pl.UTF-8): Interfejs Ciao Prologa do biblioteki Parma Polyhedra Library | |
170 | Group: Libraries | |
171 | Requires: %{name} = %{version}-%{release} | |
172 | Requires: CiaoDE >= 1.14 | |
173 | Obsoletes: ppl-gprolog | |
174 | ||
175 | %description -n Ciao-ppl | |
176 | This package adds Ciao Prolog support to the Parma Polyhedra Library | |
177 | (PPL). Install this package if you want to use the library in Ciao | |
178 | Prolog programs. | |
179 | ||
180 | %description -n Ciao-ppl -l pl.UTF-8 | |
181 | Ten pakiet dodaje obsługę Ciao Prologa do biblioteki Parma Polyhedra | |
182 | Library (PPL). Należy go zainstalować, aby móc korzystać z biblioteki | |
183 | w Ciao Prologu. | |
184 | ||
185 | %package -n Ciao-ppl-static | |
186 | Summary: The static archive for the Ciao Prolog interface of the Parma Polyhedra Library | |
187 | Summary(pl.UTF-8): Statyczna biblioteka interfejsu Ciao Prologa do biblioteki PPL | |
188 | Group: Development/Libraries | |
189 | Requires: Ciao-ppl = %{version}-%{release} | |
190 | ||
191 | %description -n Ciao-ppl-static | |
192 | This package contains the static archive for the Ciao Prolog interface | |
193 | of the Parma Polyhedra Library. | |
194 | ||
195 | %description -n Ciao-ppl-static -l pl.UTF-8 | |
196 | Statyczna biblioteka interfejsu Ciao Prologa do biblioteki Parma | |
197 | Polyhedra Library. | |
198 | ||
86484c6d JB |
199 | %package -n XSB-ppl |
200 | Summary: The XSB Prolog interface of the Parma Polyhedra Library | |
201 | Summary(pl.UTF-8): Interfejs XSB Prologa do biblioteki Parma Polyhedra Library | |
202 | Group: Libraries | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | Requires: XSBDE >= 1.14 | |
205 | Obsoletes: ppl-gprolog | |
206 | ||
207 | %description -n XSB-ppl | |
208 | This package adds XSB Prolog support to the Parma Polyhedra Library | |
209 | (PPL). Install this package if you want to use the library in XSB | |
210 | Prolog programs. | |
211 | ||
212 | %description -n XSB-ppl -l pl.UTF-8 | |
213 | Ten pakiet dodaje obsługę XSB Prologa do biblioteki Parma Polyhedra | |
214 | Library (PPL). Należy go zainstalować, aby móc korzystać z biblioteki | |
215 | w XSB Prologu. | |
216 | ||
217 | %package -n XSB-ppl-static | |
218 | Summary: The static archive for the XSB Prolog interface of the Parma Polyhedra Library | |
219 | Summary(pl.UTF-8): Statyczna biblioteka interfejsu XSB Prologa do biblioteki PPL | |
220 | Group: Development/Libraries | |
221 | Requires: XSB-ppl = %{version}-%{release} | |
222 | ||
223 | %description -n XSB-ppl-static | |
224 | This package contains the static archive for the XSB Prolog interface | |
225 | of the Parma Polyhedra Library. | |
226 | ||
227 | %description -n XSB-ppl-static -l pl.UTF-8 | |
228 | Statyczna biblioteka interfejsu XSB Prologa do biblioteki Parma | |
229 | Polyhedra Library. | |
230 | ||
828240ff | 231 | %package -n gprolog-ppl |
b3a71a7e | 232 | Summary: The GNU Prolog interface of the Parma Polyhedra Library |
b6b7794a JB |
233 | Summary(pl.UTF-8): Interfejs GNU Prologa do biblioteki Parma Polyhedra Library |
234 | Group: Libraries | |
b3a71a7e | 235 | Requires: %{name} = %{version}-%{release} |
b3a71a7e | 236 | Requires: gprolog >= 1.2.19 |
294b87ca | 237 | Obsoletes: ppl-gprolog |
b3a71a7e | 238 | |
828240ff | 239 | %description -n gprolog-ppl |
b3a71a7e ER |
240 | This package adds GNU Prolog support to the Parma Polyhedra Library |
241 | (PPL). Install this package if you want to use the library in GNU | |
242 | Prolog programs. | |
243 | ||
828240ff | 244 | %description -n gprolog-ppl -l pl.UTF-8 |
b6b7794a JB |
245 | Ten pakiet dodaje obsługę GNU Prologa do biblioteki Parma Polyhedra |
246 | Library (PPL). Należy go zainstalować, aby móc korzystać z biblioteki | |
247 | w GNU Prologu. | |
248 | ||
828240ff | 249 | %package -n gprolog-ppl-static |
b3a71a7e | 250 | Summary: The static archive for the GNU Prolog interface of the Parma Polyhedra Library |
b6b7794a | 251 | Summary(pl.UTF-8): Statyczna biblioteka interfejsu GNU Prologa do biblioteki PPL |
b3a71a7e | 252 | Group: Development/Libraries |
828240ff | 253 | Requires: gprolog-ppl = %{version}-%{release} |
294b87ca | 254 | Obsoletes: ppl-gprolog-static |
b3a71a7e | 255 | |
828240ff | 256 | %description -n gprolog-ppl-static |
b3a71a7e ER |
257 | This package contains the static archive for the GNU Prolog interface |
258 | of the Parma Polyhedra Library. | |
259 | ||
828240ff | 260 | %description -n gprolog-ppl-static -l pl.UTF-8 |
b6b7794a JB |
261 | Statyczna biblioteka interfejsu GNU Prologa do biblioteki Parma |
262 | Polyhedra Library. | |
263 | ||
294b87ca | 264 | %package -n swipl-ppl |
b3a71a7e | 265 | Summary: The SWI-Prolog interface of the Parma Polyhedra Library |
b6b7794a JB |
266 | Summary(pl.UTF-8): Interfejs SWI-Prologa do biblioteki Parma Polyhedra Library |
267 | Group: Libraries | |
b3a71a7e | 268 | Requires: %{name} = %{version}-%{release} |
b3a71a7e | 269 | Requires: pl >= 5.10.2-3 |
294b87ca | 270 | Obsoletes: ppl-swiprolog |
b3a71a7e | 271 | |
294b87ca | 272 | %description -n swipl-ppl |
b3a71a7e ER |
273 | This package adds SWI-Prolog support to the Parma Polyhedra Library. |
274 | Install this package if you want to use the library in SWI-Prolog | |
275 | programs. | |
276 | ||
294b87ca | 277 | %description -n swipl-ppl -l pl.UTF-8 |
b6b7794a JB |
278 | Ten pakiet dodaje obsługę SWI-Prologa do biblioteki Parma Polyhedra |
279 | Library (PPL). Należy go zainstalować, aby móc korzystać z biblioteki | |
280 | w SWI-Prologu. | |
281 | ||
294b87ca | 282 | %package -n swipl-ppl-static |
b3a71a7e | 283 | Summary: The static archive for the SWI-Prolog interface of the Parma Polyhedra Library |
b6b7794a | 284 | Summary(pl.UTF-8): Statyczna biblioteka interfejsu SWI-Prologa do biblioteki PPL |
b3a71a7e ER |
285 | Group: Development/Libraries |
286 | Requires: %{name}-swiprolog = %{version}-%{release} | |
294b87ca | 287 | Obsoletes: ppl-swiprolog-static |
b3a71a7e | 288 | |
294b87ca | 289 | %description -n swipl-ppl-static |
b3a71a7e ER |
290 | This package contains the static archive for the SWI-Prolog interface |
291 | of the Parma Polyhedra Library. | |
292 | ||
294b87ca | 293 | %description -n swipl-ppl-static -l pl.UTF-8 |
b6b7794a JB |
294 | Statyczna biblioteka interfejsu SWI-Prologa do biblioteki Parma |
295 | Polyhedra Library. | |
296 | ||
435f93e6 | 297 | %package -n Yap-ppl |
b3a71a7e | 298 | Summary: The YAP Prolog interface of the Parma Polyhedra Library |
b6b7794a JB |
299 | Summary(pl.UTF-8): Interfejs YAP Prologa do biblioteki Parma Polyhedra Library |
300 | Group: Libraries | |
b3a71a7e | 301 | Requires: %{name} = %{version}-%{release} |
435f93e6 JB |
302 | Requires: Yap >= 5.1.1 |
303 | Obsoletes: ppl-yap | |
b3a71a7e ER |
304 | Obsoletes: ppl-yap-static |
305 | ||
435f93e6 | 306 | %description -n Yap-ppl |
b3a71a7e ER |
307 | This package adds YAP Prolog support to the Parma Polyhedra Library |
308 | (PPL). Install this package if you want to use the library in YAP | |
309 | Prolog programs. | |
310 | ||
435f93e6 | 311 | %description -n Yap-ppl -l pl.UTF-8 |
b6b7794a JB |
312 | Ten pakiet dodaje obsługę YAP Prologa do biblioteki Parma Polyhedra |
313 | Library (PPL). Należy go zainstalować, aby móc korzystać z biblioteki | |
314 | w YAP Prologu. | |
315 | ||
b3a71a7e ER |
316 | %package -n ocaml-ppl |
317 | Summary: The OCaml interface of the Parma Polyhedra Library | |
b6b7794a JB |
318 | Summary(pl.UTF-8): Interfejs OCamla do biblioteki Parma Polyhedra Library |
319 | Group: Libraries | |
b3a71a7e | 320 | Requires: %{name} = %{version}-%{release} |
af7f1118 | 321 | Requires: ocaml-gmp |
b3a71a7e ER |
322 | |
323 | %description -n ocaml-ppl | |
324 | This package adds Objective Caml (OCaml) support to the Parma | |
325 | Polyhedra Library. Install this package if you want to use the library | |
326 | in OCaml programs. | |
327 | ||
b6b7794a JB |
328 | %description -n ocaml-ppl -l pl.UTF-8 |
329 | Ten pakiet dodaje obsługę Objective Camla (OCamla) do biblioteki Parma | |
330 | Polyhedra Library (PPL). Należy go zainstalować, aby móc korzystać z | |
331 | biblioteki w OCamlu. | |
332 | ||
b3a71a7e | 333 | %package -n ocaml-ppl-devel |
b6b7794a JB |
334 | Summary: Development files for OCaml interface of the Parma Polyhedra Library |
335 | Summary(pl.UTF-8): Pliki programistyczne interfejsu OCamla biblioteki PPL | |
b3a71a7e ER |
336 | Group: Development/Libraries |
337 | Requires: ocaml-ppl = %{version}-%{release} | |
338 | ||
339 | %description -n ocaml-ppl-devel | |
340 | This package contains libraries and signature files for developing | |
341 | applications using the OCaml interface of the Parma Polyhedra Library. | |
342 | ||
b6b7794a JB |
343 | %description -n ocaml-ppl-devel -l pl.UTF-8 |
344 | Ten pakiet zawiera pliki bibliotek i sygnatur do tworzenia aplikacji | |
345 | wykorzystujących interfejs OCamla biblioteki Parma Polyhedra Library. | |
346 | ||
b3a71a7e ER |
347 | %package -n java-ppl |
348 | Summary: The Java interface of the Parma Polyhedra Library | |
b6b7794a JB |
349 | Summary(pl.UTF-8): Interfejs Javy do biblioteki Parma Polyhedra Library |
350 | Group: Libraries | |
b3a71a7e ER |
351 | Requires: %{name} = %{version}-%{release} |
352 | Requires: jpackage-utils | |
353 | ||
354 | %description -n java-ppl | |
355 | This package adds Java support to the Parma Polyhedra Library. Install | |
356 | this package if you want to use the library in Java programs. | |
357 | ||
b6b7794a JB |
358 | %description -n java-ppl -l pl.UTF-8 |
359 | Ten pakiet dodaje obsługę Javy do biblioteki Parma Polyhedra Library. | |
360 | Należy go zainstalować, aby móc korzystać z biblioteki w Javie. | |
361 | ||
b3a71a7e ER |
362 | %package -n java-ppl-javadoc |
363 | Summary: Javadocs for java-ppl | |
b6b7794a | 364 | Summary(pl.UTF-8): Dokumentacja Javadoc do pakietu java-ppl |
b3a71a7e ER |
365 | Group: Documentation |
366 | Requires: java-ppl = %{version}-%{release} | |
367 | Requires: jpackage-utils | |
368 | ||
369 | %description -n java-ppl-javadoc | |
370 | This package contains the API documentation for Java interface of the | |
371 | Parma Polyhedra Library. | |
372 | ||
b6b7794a JB |
373 | %description -n java-ppl-javadoc -l pl.UTF-8 |
374 | Ten pakiet zawiera dokumentację API do interfejsu Javy biblioteki | |
375 | Parma Polyhedra Library. | |
b3a71a7e ER |
376 | |
377 | %prep | |
378 | %setup -q | |
d749bea6 | 379 | %patch0 -p1 |
b3a71a7e ER |
380 | |
381 | %build | |
d749bea6 JB |
382 | %{__libtoolize} |
383 | %{__aclocal} -I m4 | |
384 | %{__autoconf} | |
385 | %{__autoheader} | |
386 | %{__automake} | |
b3a71a7e ER |
387 | CPPFLAGS="-I%{_includedir}/glpk" |
388 | %if %{with gprolog} | |
389 | CPPFLAGS="$CPPFLAGS -I%{_libdir}/gprolog-`gprolog --version 2>&1 | head -1 | sed -e "s/.* \([^ ]*\)$/\1/g"`/include" | |
390 | %endif | |
294b87ca | 391 | %if %{with swipl} |
b3a71a7e ER |
392 | CPPFLAGS="$CPPFLAGS -I`swipl -dump-runtime-variables | grep PLBASE= | sed 's/PLBASE="\(.*\)";/\1/'`/include" |
393 | %endif | |
435f93e6 | 394 | %if %{with yap} |
b3a71a7e ER |
395 | CPPFLAGS="$CPPFLAGS -I%{_includedir}/Yap" |
396 | %endif | |
397 | ||
398 | %configure \ | |
b3a71a7e | 399 | --docdir=%{_docdir}/%{name}-%{version} \ |
ef727740 | 400 | %{?with_java:--with-java=%{java_home}} \ |
86484c6d | 401 | --enable-interfaces="c++ c %{?with_ocaml:ocaml} %{?with_java:java} %{?with_ciao:ciao_prolog} %{?with_gprolog:gnu_prolog} %{?with_swipl:swi_prolog} %{?with_xsb:xsb_prolog} %{?with_yap:yap_prolog}" |
b3a71a7e ER |
402 | |
403 | %{__make} | |
404 | ||
405 | %install | |
406 | rm -rf $RPM_BUILD_ROOT | |
828240ff JB |
407 | # let these dirs exist even if no bindings are build |
408 | install -d $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_datadir}/%{name}} | |
409 | ||
b3a71a7e ER |
410 | %{__make} install \ |
411 | INSTALL="%{__install} -p" \ | |
412 | DESTDIR=$RPM_BUILD_ROOT | |
413 | ||
b3a71a7e ER |
414 | %if %{with java} |
415 | # Install the Javadocs for ppl-java. | |
416 | install -d $RPM_BUILD_ROOT%{_javadocdir} | |
417 | mv \ | |
418 | $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ppl-user-java-interface-%{version}-html \ | |
419 | $RPM_BUILD_ROOT%{_javadocdir}/%{name}-java | |
420 | %endif | |
421 | ||
86484c6d | 422 | %if %{with java} || %{with ciao} || %{with gprolog} || %{with swipl} || %{with xsb} || %{with yap} |
3dc0db56 JB |
423 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
424 | %endif | |
425 | ||
426 | # common licenses | |
427 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{COPYING,fdl.*,gpl.*} | |
428 | # packaged in .pdf format | |
429 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ppl-user*-%{version}.ps.gz | |
430 | ||
b3a71a7e ER |
431 | %clean |
432 | rm -rf $RPM_BUILD_ROOT | |
433 | ||
434 | %post -p /sbin/ldconfig | |
435 | %postun -p /sbin/ldconfig | |
436 | ||
b3a71a7e ER |
437 | %files |
438 | %defattr(644,root,root,755) | |
439 | %dir %{_docdir}/%{name}-%{version} | |
440 | %doc %{_docdir}/%{name}-%{version}/BUGS | |
b3a71a7e ER |
441 | %doc %{_docdir}/%{name}-%{version}/CREDITS |
442 | %doc %{_docdir}/%{name}-%{version}/NEWS | |
443 | %doc %{_docdir}/%{name}-%{version}/README | |
444 | %doc %{_docdir}/%{name}-%{version}/README.configure | |
445 | %doc %{_docdir}/%{name}-%{version}/TODO | |
b3a71a7e | 446 | %attr(755,root,root) %{_libdir}/libppl.so.*.*.* |
3dc0db56 | 447 | %attr(755,root,root) %ghost %{_libdir}/libppl.so.10 |
b3a71a7e | 448 | %attr(755,root,root) %{_libdir}/libppl_c.so.*.*.* |
b6b7794a | 449 | %attr(755,root,root) %ghost %{_libdir}/libppl_c.so.4 |
b3a71a7e | 450 | %dir %{_libdir}/%{name} |
828240ff | 451 | %dir %{_datadir}/%{name} |
b3a71a7e ER |
452 | |
453 | %files devel | |
454 | %defattr(644,root,root,755) | |
455 | %attr(755,root,root) %{_bindir}/ppl-config | |
b6b7794a JB |
456 | %attr(755,root,root) %{_libdir}/libppl.so |
457 | %attr(755,root,root) %{_libdir}/libppl_c.so | |
3dc0db56 JB |
458 | %{_libdir}/libppl.la |
459 | %{_libdir}/libppl_c.la | |
b3a71a7e ER |
460 | %{_includedir}/ppl*.hh |
461 | %{_includedir}/ppl_c*.h | |
b3a71a7e ER |
462 | %{_mandir}/man1/ppl-config.1* |
463 | %{_mandir}/man3/libppl.3* | |
464 | %{_mandir}/man3/libppl_c.3* | |
465 | %{_aclocaldir}/ppl.m4 | |
466 | %{_aclocaldir}/ppl_c.m4 | |
467 | ||
468 | %files static | |
469 | %defattr(644,root,root,755) | |
470 | %{_libdir}/libppl.a | |
471 | %{_libdir}/libppl_c.a | |
472 | ||
473 | %files utils | |
474 | %defattr(644,root,root,755) | |
475 | %attr(755,root,root) %{_bindir}/ppl_lcdd | |
476 | %attr(755,root,root) %{_bindir}/ppl_lpsol | |
477 | %attr(755,root,root) %{_bindir}/ppl_pips | |
478 | %{_mandir}/man1/ppl_lcdd.1* | |
479 | %{_mandir}/man1/ppl_lpsol.1* | |
480 | %{_mandir}/man1/ppl_pips.1* | |
481 | ||
482 | %files docs | |
483 | %defattr(644,root,root,755) | |
484 | %doc %{_docdir}/%{name}-%{version}/ChangeLog* | |
485 | %doc %{_docdir}/%{name}-%{version}/README.doc | |
b3a71a7e ER |
486 | %doc %{_docdir}/%{name}-%{version}/ppl-user-%{version}-html/ |
487 | %doc %{_docdir}/%{name}-%{version}/ppl-user-c-interface-%{version}-html/ | |
488 | %doc %{_docdir}/%{name}-%{version}/ppl-user-c-interface-%{version}.pdf | |
b3a71a7e | 489 | %doc %{_docdir}/%{name}-%{version}/ppl-user-%{version}.pdf |
b3a71a7e | 490 | |
86484c6d | 491 | %if %{with ciao} || %{with gprolog} || %{with swipl} || %{with xsb} || %{with yap} |
b3a71a7e ER |
492 | %doc %{_docdir}/%{name}-%{version}/ppl-user-prolog-interface-%{version}-html/ |
493 | %doc %{_docdir}/%{name}-%{version}/ppl-user-prolog-interface-%{version}.pdf | |
b3a71a7e ER |
494 | %endif |
495 | ||
86484c6d JB |
496 | %if %{with xsb} |
497 | %files -n XSB-ppl | |
498 | %defattr(644,root,root,755) | |
499 | %attr(755,root,root) %{_libdir}/%{name}/libppl_xsb.so | |
500 | %{_datadir}/%{name}/ppl_xsb.xwam | |
501 | ||
502 | %files -n XSB-ppl-static | |
503 | %defattr(644,root,root,755) | |
504 | %{_libdir}/%{name}/libppl_xsb.a | |
505 | %endif | |
506 | ||
d749bea6 JB |
507 | %if %{with ciao} |
508 | %files -n Ciao-ppl | |
509 | %defattr(644,root,root,755) | |
510 | %doc interfaces/Prolog/Ciao/README.ciao | |
511 | %attr(755,root,root) %{_libdir}/%{name}/libppl_ciao.so | |
512 | %{_datadir}/%{name}/ppl_ciao.po | |
513 | ||
514 | %files -n Ciao-ppl-static | |
515 | %defattr(644,root,root,755) | |
516 | %{_libdir}/%{name}/libppl_ciao.a | |
517 | %endif | |
518 | ||
b3a71a7e | 519 | %if %{with gprolog} |
828240ff | 520 | %files -n gprolog-ppl |
b3a71a7e ER |
521 | %defattr(644,root,root,755) |
522 | %doc interfaces/Prolog/GNU/README.gprolog | |
523 | %attr(755,root,root) %{_bindir}/ppl_gprolog | |
b3a71a7e | 524 | %attr(755,root,root) %{_libdir}/%{name}/libppl_gprolog.so |
828240ff | 525 | %{_datadir}/%{name}/ppl_gprolog.pl |
b3a71a7e | 526 | |
828240ff | 527 | %files -n gprolog-ppl-static |
b3a71a7e ER |
528 | %defattr(644,root,root,755) |
529 | %{_libdir}/%{name}/libppl_gprolog.a | |
530 | %endif | |
531 | ||
294b87ca JB |
532 | %if %{with swipl} |
533 | %files -n swipl-ppl | |
b3a71a7e ER |
534 | %defattr(644,root,root,755) |
535 | %doc interfaces/Prolog/SWI/README.swiprolog | |
536 | %attr(755,root,root) %{_bindir}/ppl_pl | |
537 | %attr(755,root,root) %{_libdir}/%{name}/libppl_swiprolog.so | |
294b87ca | 538 | %{_datadir}/%{name}/ppl_swiprolog.pl |
b3a71a7e | 539 | |
294b87ca | 540 | %files -n swipl-ppl-static |
b3a71a7e ER |
541 | %defattr(644,root,root,755) |
542 | %{_libdir}/%{name}/libppl_swiprolog.a | |
543 | %endif | |
544 | ||
435f93e6 JB |
545 | %if %{with yap} |
546 | %files -n Yap-ppl | |
b3a71a7e ER |
547 | %defattr(644,root,root,755) |
548 | %doc interfaces/Prolog/YAP/README.yap | |
b3a71a7e | 549 | %attr(755,root,root) %{_libdir}/%{name}/ppl_yap.so |
435f93e6 | 550 | %{_datadir}/%{name}/ppl_yap.pl |
b3a71a7e ER |
551 | %endif |
552 | ||
553 | %if %{with ocaml} | |
554 | %files -n ocaml-ppl | |
555 | %defattr(644,root,root,755) | |
556 | %doc interfaces/OCaml/README.ocaml | |
af7f1118 | 557 | %{_libdir}/%{name}/ppl_ocaml.a |
b3a71a7e | 558 | %{_libdir}/%{name}/ppl_ocaml.cma |
af7f1118 | 559 | %{_libdir}/%{name}/ppl_ocaml.cmxa |
b3a71a7e ER |
560 | %{_libdir}/%{name}/ppl_ocaml.cmi |
561 | %{_libdir}/%{name}/ppl_ocaml_globals.cmi | |
562 | ||
563 | %files -n ocaml-ppl-devel | |
564 | %defattr(644,root,root,755) | |
b3a71a7e ER |
565 | %doc %{_docdir}/%{name}-%{version}/ppl-user-ocaml-interface-%{version}.pdf |
566 | %doc %{_docdir}/%{name}-%{version}/ppl-user-ocaml-interface-%{version}-html/ | |
567 | %{_libdir}/%{name}/libppl_ocaml.a | |
568 | %{_libdir}/%{name}/ppl_ocaml.mli | |
569 | %endif | |
570 | ||
571 | %if %{with java} | |
572 | %files -n java-ppl | |
573 | %defattr(644,root,root,755) | |
574 | %doc interfaces/Java/README.java | |
575 | %attr(755,root,root) %{_libdir}/%{name}/libppl_java.so | |
576 | %{_libdir}/%{name}/ppl_java.jar | |
577 | ||
578 | %files -n java-ppl-javadoc | |
579 | %defattr(644,root,root,755) | |
580 | %doc %{_docdir}/%{name}-%{version}/ppl-user-java-interface-%{version}.pdf | |
b3a71a7e ER |
581 | %{_javadocdir}/%{name}-java |
582 | %endif |