]>
Commit | Line | Data |
---|---|---|
3105856a JB |
1 | # |
2 | # Conditional build: | |
b552f088 JB |
3 | %bcond_without emacs # without emacs subpackage |
4 | %bcond_without x # without X11 support | |
5 | %bcond_without tk # without Tcl/Tk support | |
ed19172f | 6 | # |
f4710e3c | 7 | # --without x11 implies --without tk |
1b2eae14 | 8 | %{!?with_x:%undefine with_tk} |
4797676b | 9 | |
6e71517f | 10 | %define p4ver 3.06 |
42946d4f | 11 | %define sver 3.11 |
db184753 | 12 | |
65fbc6c7 | 13 | Summary: The Objective Caml compiler and programming environment |
6e95eae7 | 14 | Summary(pl.UTF-8): Kompilator OCamla (Objective Caml) oraz środowisko programistyczne |
65fbc6c7 | 15 | Name: ocaml |
42946d4f | 16 | Version: 3.11.0 |
7d1b8310 | 17 | Release: 1 |
4694cc06 | 18 | Epoch: 1 |
a13fc47d | 19 | License: distributable |
65fbc6c7 | 20 | Group: Development/Languages |
7845a5c9 | 21 | Source0: http://caml.inria.fr/distrib/%{name}-%{sver}/%{name}-%{version}.tar.bz2 |
42946d4f | 22 | # Source0-md5: 6ed1c3ed660a15408362242fa8fa4668 |
307e1de8 | 23 | Source1: http://caml.inria.fr/distrib/%{name}-%{sver}/%{name}-%{sver}-refman.html.tar.gz |
42946d4f | 24 | # Source1-md5: bfb4ed960974159f4224014a979baf6d |
307e1de8 | 25 | Source2: http://caml.inria.fr/distrib/%{name}-%{sver}/%{name}-%{sver}-refman.ps.gz |
42946d4f | 26 | # Source2-md5: d01adeb1ab5ef0905f8656947f928b03 |
db184753 | 27 | Source3: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{p4ver}-manual.html.tar.gz |
79b42dbe | 28 | # Source3-md5: 21370bae4e7f6435b38aeb21db7ce8bb |
db184753 | 29 | Source4: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{p4ver}-manual.dvi.gz |
79b42dbe | 30 | # Source4-md5: 035915d1a530aa7ec9b194d9a7d258eb |
db184753 | 31 | Source5: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{p4ver}-tutorial.html.tar.gz |
79b42dbe | 32 | # Source5-md5: 96d8eb4ca5abd58c9a280ba59f73b192 |
db184753 | 33 | Source6: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{p4ver}-tutorial.dvi.gz |
79b42dbe | 34 | # Source6-md5: fcd87c235109364242a0c9ccf176dff8 |
3a1adca1 JB |
35 | Source7: http://www.ocaml.info/ocaml_sources/pure-fun-1.0.6.tar.bz2 |
36 | # Source7-md5: 94eac3fa1ac51b8ada344b04839cb43c | |
7db52553 | 37 | Source8: http://www.ocaml.info/ocaml_sources/ds-contrib.tar.gz |
79b42dbe | 38 | # Source8-md5: 77fa1da7375dea1393cc0b6cd802d7e1 |
69735a4b | 39 | Source9: http://caml.inria.fr/distrib/%{name}-%{sver}/%{name}-%{sver}-refman.info.tar.gz |
42946d4f JR |
40 | # Source9-md5: 50fc2a3e3a38db78bd03d169379155de |
41 | Patch0: %{name}-db3.patch | |
42 | Patch1: %{name}-objinfo.patch | |
43 | Patch2: %{name}-CFLAGS.patch | |
44 | Patch3: %{name}-as_needed.patch | |
8b0de54e | 45 | URL: http://caml.inria.fr/ |
3a1adca1 | 46 | BuildRequires: db-devel >= 4.1 |
6e71517f | 47 | %{?with_tk:BuildRequires: tk-devel} |
3232e3f5 | 48 | %{?with_x:BuildRequires: xorg-lib-libX11-devel} |
f4710e3c | 49 | %if %{with emacs} |
69735a4b | 50 | BuildRequires: sed >= 4.0 |
f4710e3c MM |
51 | BuildRequires: xemacs |
52 | BuildRequires: xemacs-common | |
53 | BuildRequires: xemacs-fsf-compat-pkg | |
54 | %endif | |
4e386054 | 55 | Requires: %{name}-runtime = %{epoch}:%{version}-%{release} |
5a1e52bf PG |
56 | Provides: ocaml-ocamldoc |
57 | Obsoletes: ocaml-ocamldoc | |
151fbae6 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65fbc6c7 | 59 | |
0053154a PS |
60 | %define specflags -fno-strict-aliasing |
61 | ||
65fbc6c7 AM |
62 | %description |
63 | Objective Caml is a high-level, strongly-typed, functional and | |
64 | object-oriented programming language from the ML family of languages. | |
65 | ||
66 | This package comprises two batch compilers (a fast bytecode compiler | |
5ca6b9fb MP |
67 | and an optimizing native-code compiler), an interactive toplevel |
68 | system, Lex&Yacc tools, a replay debugger, and a comprehensive | |
69 | library. | |
65fbc6c7 | 70 | |
3f556f71 JR |
71 | %description -l pl.UTF-8 |
72 | OCaml (Objective Caml) jest funkcyjnym, obiektowo zorientowanym językiem | |
73 | wysokiego poziomu z silnym typowaniem. Należy do rodziny języków ML. | |
65fbc6c7 | 74 | |
8151bf1e | 75 | Ten pakiet zawiera dwa kompilatory (szybki kompilator do bajtkodu |
3f556f71 JR |
76 | oraz optymalizujący kompilator do kodu natywnego), interaktywne środowisko |
77 | pracy, narzędzia do tworzenia analizatorów leksykalnych oraz składniowych | |
8151bf1e | 78 | (ocamllex, ocamlyacc), odpluskwiacz (ocamldebug) i biblioteki. |
65fbc6c7 | 79 | |
79502218 JB |
80 | %package runtime |
81 | Summary: Runtime system for OCaml | |
6e95eae7 | 82 | Summary(pl.UTF-8): Środowisko uruchomieniowe dla OCamla |
79502218 JB |
83 | Group: Libraries |
84 | ||
85 | %description runtime | |
86 | This package contains binaries needed to run bytecode OCaml programs: | |
87 | ocamlrun bytecode interpreter, and basic dynamic link libraries. | |
88 | ||
3f556f71 JR |
89 | %description runtime -l pl.UTF-8 |
90 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów w | |
79502218 JB |
91 | OCamlu skompilowanych do bajtkodu: interpreter bajtkodu (ocamlrun) oraz |
92 | podstawowe biblioteki linkowane dynamicznie. | |
93 | ||
94 | %package lib-source | |
95 | Summary: Sources of OCaml standard library | |
6e95eae7 | 96 | Summary(pl.UTF-8): Źródła biblioteki standardowej OCamla |
79502218 JB |
97 | Group: Development/Languages |
98 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
99 | ||
100 | %description lib-source | |
101 | This sources come helpful during debugging of user programs with ocamldebug. | |
102 | ||
3f556f71 JR |
103 | %description lib-source -l pl.UTF-8 |
104 | Źródła te są przydatne przy odpluskwianiu programów użytkownika | |
105 | z użyciem ocamldebug. | |
79502218 | 106 | |
69735a4b | 107 | %package doc-html |
108 | Summary: HTML documentation for OCaml | |
6e95eae7 | 109 | Summary(pl.UTF-8): Dokumentacja dla OCamla w formacie HTML |
69735a4b | 110 | Group: Development/Tools |
111 | ||
112 | %description doc-html | |
113 | HTML documentation for OCaml. | |
114 | ||
3f556f71 | 115 | %description doc-html -l pl.UTF-8 |
69735a4b | 116 | Dokumentacja dla OCamla w formacie HTML. |
117 | ||
13b509d1 | 118 | %package doc-ps |
4797676b | 119 | Summary: PostScript documentation for OCaml |
6e95eae7 | 120 | Summary(pl.UTF-8): Dokumentacja dla OCamla w formacie PostScript |
4797676b | 121 | Group: Development/Tools |
4797676b | 122 | |
13b509d1 | 123 | %description doc-ps |
69735a4b | 124 | PostScript documentation for OCaml. |
4797676b | 125 | |
3f556f71 | 126 | %description doc-ps -l pl.UTF-8 |
69735a4b | 127 | Dokumentacja dla OCamla w formacie PostScript. |
128 | ||
129 | %package doc-info | |
130 | Summary: Info documentation for OCaml | |
6e95eae7 | 131 | Summary(pl.UTF-8): Dokumentacja info dla OCamla |
69735a4b | 132 | Group: Development/Tools |
133 | ||
134 | %description doc-info | |
135 | Info documentation for OCaml. | |
136 | ||
3f556f71 | 137 | %description doc-info -l pl.UTF-8 |
69735a4b | 138 | Dokumentacja info dla OCamla. |
4797676b | 139 | |
65fbc6c7 | 140 | %package emacs |
c4a5fbda | 141 | Summary: Emacs mode for OCaml |
6e95eae7 | 142 | Summary(pl.UTF-8): Tryb OCamla dla Emacsa |
65fbc6c7 | 143 | Group: Development/Tools |
4694cc06 | 144 | Requires: %{name} = %{epoch}:%{version}-%{release} |
65fbc6c7 AM |
145 | |
146 | %description emacs | |
981ff793 | 147 | Emacs mode files for Objective Caml language. |
65fbc6c7 | 148 | |
3f556f71 | 149 | %description emacs -l pl.UTF-8 |
8151bf1e | 150 | Pliki trybu OCamla dla Emacsa. |
56260732 | 151 | |
79502218 JB |
152 | %package labltk |
153 | Summary: Runtime for LablTk library | |
6e95eae7 | 154 | Summary(pl.UTF-8): Środowisko uruchomieniowe dla biblioteki LablTk |
981ff793 | 155 | Group: Libraries |
79502218 | 156 | Requires: %{name} = %{epoch}:%{version}-%{release} |
981ff793 | 157 | |
79502218 JB |
158 | %description labltk |
159 | LablTk gives OCaml program access to Tcl/Tk GUI widgets. This package | |
160 | contains files needed to run bytecode OCaml programs using LablTk. | |
981ff793 | 161 | |
3f556f71 JR |
162 | %description labltk -l pl.UTF-8 |
163 | Biblioteka LablTk daje programom napisanym w OCamlu dostęp do widgetów | |
164 | Tcl/Tk. Pakiet ten zawiera binaria potrzebne do uruchamiania programów | |
165 | używających LablTk. | |
981ff793 MM |
166 | |
167 | %package labltk-devel | |
8151bf1e | 168 | Summary: LablTk library for OCaml |
6e95eae7 | 169 | Summary(pl.UTF-8): Biblioteka LablTk dla OCamla |
56260732 | 170 | Group: Development/Libraries |
4694cc06 | 171 | Requires: %{name}-labltk = %{epoch}:%{version}-%{release} |
981ff793 MM |
172 | |
173 | %description labltk-devel | |
174 | LablTk gives OCaml program access to Tcl/Tk GUI widgets. This package | |
175 | contains files needed to develop OCaml programs using LablTk. | |
176 | ||
3f556f71 JR |
177 | %description labltk-devel -l pl.UTF-8 |
178 | Biblioteka LablTk daje programom napisanym w OCamlu dostęp do widgetów | |
179 | Tcl/Tk. Pakiet ten zawiera pliki niezbędne do tworzenia programów | |
180 | używających LablTk. | |
981ff793 | 181 | |
79502218 JB |
182 | %package x11graphics |
183 | Summary: X11 graphic output for OCaml | |
6e95eae7 | 184 | Summary(pl.UTF-8): Dostęp do X11 dla OCamla |
79502218 | 185 | Group: Development/Libraries |
4694cc06 | 186 | Requires: %{name} = %{epoch}:%{version}-%{release} |
56260732 | 187 | |
79502218 JB |
188 | %description x11graphics |
189 | x11graphics module gives OCaml program access to drawing in X11 | |
190 | windows. This package contains files needed to run bytecode OCaml | |
191 | programs using x11graphics. | |
56260732 | 192 | |
3f556f71 JR |
193 | %description x11graphics -l pl.UTF-8 |
194 | Moduł x11graphics daje programom napisanym w OCamlu możliwość | |
79502218 | 195 | korzystania z interfejsu graficznego X11. Pakiet ten zawiera binaria |
3f556f71 | 196 | potrzebne do uruchamiania programów używających x11graphics. |
981ff793 MM |
197 | |
198 | %package x11graphics-devel | |
199 | Summary: X11 graphic output for OCaml | |
6e95eae7 | 200 | Summary(pl.UTF-8): Dostęp do X11 dla OCamla |
981ff793 | 201 | Group: Development/Libraries |
4694cc06 | 202 | Requires: %{name}-x11graphics = %{epoch}:%{version}-%{release} |
981ff793 MM |
203 | |
204 | %description x11graphics-devel | |
205 | x11graphics module gives OCaml program access to drawing in X11 | |
206 | windows. This package contains files needed to develop OCaml programs | |
207 | using x11graphics. | |
208 | ||
3f556f71 JR |
209 | %description x11graphics-devel -l pl.UTF-8 |
210 | Moduł x11graphics daje programom napisanym w OCamlu możliwość | |
8151bf1e | 211 | korzystania z interfejsu graficznego X11. Pakiet ten zawiera pliki |
3f556f71 | 212 | niezbędne do tworzenia programów używających x11graphics. |
56260732 | 213 | |
56260732 MM |
214 | %package camlp4 |
215 | Summary: Objective Caml Preprocessor | |
6e95eae7 | 216 | Summary(pl.UTF-8): Preprocesor OCamla |
56260732 | 217 | Group: Development/Languages |
4694cc06 | 218 | Requires: %{name} = %{epoch}:%{version}-%{release} |
219 | Provides: camlp4 = %{epoch}:%{version}-%{release} | |
56260732 MM |
220 | Obsoletes: camlp4 |
221 | ||
222 | %description camlp4 | |
223 | Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers | |
224 | tools for syntax (grammars) and the ability to modify the concrete | |
225 | syntax of the language (quotations, syntax extensions). | |
226 | ||
227 | Camlp4 can parse normal Ocaml concrete syntax or any other | |
228 | user-definable syntax. As an example, an alternative syntax is | |
229 | provided, named revised, because it tries to fix some small problems | |
230 | of the normal syntax. | |
231 | ||
232 | Camlp4 can pretty print the normal Ocaml concrete syntax or the | |
233 | revised one. It is therefore always possible to have a version of your | |
8151bf1e | 234 | sources compilable by the Objective Caml compiler without |
56260732 MM |
235 | preprocessing. |
236 | ||
3f556f71 JR |
237 | %description camlp4 -l pl.UTF-8 |
238 | Camlp4 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania | |
239 | składnią (gramatyki) oraz możliwość modyfikowania oryginalnej składni | |
240 | języka (cytowania, rozszerzenia). | |
56260732 | 241 | |
3f556f71 JR |
242 | Camlp4 może sparsować oryginalną składnię Ocamla lub dowolną inną |
243 | definiowalną przez użytkownika. Jako przykład podana jest alternatywna | |
244 | składnia (revised syntax), która próbuje poprawić drobne problemy | |
245 | występujące w składni oryginalnej. | |
56260732 | 246 | |
3f556f71 JR |
247 | Camlp4 umie ładnie formatować źródła zarówno w oryginalnej jak i |
248 | poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej | |
249 | składni na drugą. | |
65fbc6c7 | 250 | |
69735a4b | 251 | %package camlp4-doc-html |
252 | Summary: Objective Caml Preprocessor - HTML documentation | |
6e95eae7 | 253 | Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML |
69735a4b | 254 | Group: Development/Languages |
255 | ||
256 | %description camlp4-doc-html | |
257 | Objective Caml Preprocessor - HTML documentation. | |
258 | ||
3f556f71 | 259 | %description camlp4-doc-html -l pl.UTF-8 |
69735a4b | 260 | Preprocesor OCamla - dokumentacja HTML. |
261 | ||
6dfc0e1a | 262 | %package compiler-objects |
981ff793 | 263 | Summary: Compiled parts of OCaml compiler |
6e95eae7 | 264 | Summary(pl.UTF-8): Skompilowane części kompilatora OCamla |
981ff793 | 265 | Group: Development/Languages |
4694cc06 | 266 | Requires: %{name} = %{epoch}:%{version}-%{release} |
68076664 | 267 | Obsoletes: ocaml-devel |
6adc6dd7 | 268 | Provides: ocaml-devel |
981ff793 | 269 | |
6dfc0e1a | 270 | %description compiler-objects |
981ff793 MM |
271 | This package contains *.cmi and *.cmo files being parts of OCaml |
272 | compiler. They are needed to compile some programs. | |
273 | ||
3f556f71 JR |
274 | %description compiler-objects -l pl.UTF-8 |
275 | Pakiet ten zawiera pliki *.cmi oraz *.cmo będące częściami kompilatora | |
276 | OCamla. Są one wymagane do kompilacji niektórych programów. | |
981ff793 | 277 | |
13b509d1 MM |
278 | %package ocamldoc-devel |
279 | Summary: Files needed to develop programs using ocamldoc | |
6e95eae7 | 280 | Summary(pl.UTF-8): Pliki potrzebne do tworzenia programów używających ocamldoc |
13b509d1 | 281 | Group: Development/Languages |
4694cc06 | 282 | Requires: %{name} = %{epoch}:%{version}-%{release} |
13b509d1 MM |
283 | |
284 | %description ocamldoc-devel | |
285 | You need this package if you are going to write ocamldoc front end or | |
286 | something like that. | |
287 | ||
3f556f71 JR |
288 | %description ocamldoc-devel -l pl.UTF-8 |
289 | Będziesz potrzebować tego pakietu, jeśli zamierzasz pisać front end | |
290 | dla ocamldoc lub coś podobnego. | |
13b509d1 | 291 | |
53fbd845 MM |
292 | # maybe we'll want to add some more stuff here? |
293 | %package examples | |
294 | Summary: Example source code for OCaml | |
6e95eae7 | 295 | Summary(pl.UTF-8): Przykładowe kody źródłowe w OCamlu |
53fbd845 | 296 | Group: Development/Languages |
4694cc06 | 297 | Requires: %{name} = %{epoch}:%{version}-%{release} |
53fbd845 MM |
298 | |
299 | %description examples | |
63004413 | 300 | This packages contains sources for Okasaki's Purely Functional |
53fbd845 MM |
301 | Datastructures in OCaml, along with some contributions. |
302 | ||
3f556f71 JR |
303 | %description examples -l pl.UTF-8 |
304 | Pakiet ten zawiera źródła Czysto Funkcyjnych Struktur Danych | |
8151bf1e | 305 | autorstwa Okasaki'ego, napisane w OCamlu, wraz z dodatkami. |
53fbd845 | 306 | |
65fbc6c7 | 307 | %prep |
42946d4f | 308 | %setup -q -a1 -a3 -a5 -a9 |
19e77905 JB |
309 | mkdir examples |
310 | tar xjf %{SOURCE7} -C examples | |
311 | tar xzf %{SOURCE8} -C examples | |
56260732 | 312 | # order mess with docs somewhat |
69735a4b | 313 | mkdir -p docs/html |
56260732 | 314 | mv htmlman docs/html/ocaml |
fa4b2219 | 315 | cp %{SOURCE2} docs/ocaml.ps.gz |
db184753 | 316 | mv camlp4-%{p4ver}-manual.html docs/html/camlp4 |
fa4b2219 | 317 | cp %{SOURCE4} docs/camlp4.ps.gz |
db184753 | 318 | mv camlp4-%{p4ver}-tutorial.html docs/html/camlp4-tutorial |
fa4b2219 | 319 | cp %{SOURCE6} docs/camlp4-tutorial.ps.gz |
56260732 | 320 | %patch0 -p1 |
4c1e0f62 | 321 | %patch1 -p1 |
56260732 | 322 | %patch2 -p1 |
3a1adca1 | 323 | %patch3 -p1 |
69735a4b | 324 | |
325 | %build | |
ed19172f | 326 | cp -f /usr/share/automake/config.sub config/gnu |
65fbc6c7 | 327 | ./configure \ |
69735a4b | 328 | -cc "%{__cc}" \ |
65fbc6c7 AM |
329 | -bindir %{_bindir} \ |
330 | -libdir %{_libdir}/%{name} \ | |
331 | -mandir %{_mandir}/man1 \ | |
530dec71 | 332 | -host %{_host} \ |
f4710e3c | 333 | %{!?with_tk:-no-tk} \ |
2e6ceb74 | 334 | -with-pthread \ |
0053154a | 335 | -x11lib %{_libdir} |
65fbc6c7 | 336 | |
bf9b6da9 | 337 | %{__make} -j1 world bootstrap opt.opt CFLAGS="%{rpmcflags} -Wall" |
7ae05805 | 338 | %{__make} -C tools objinfo CFLAGS="%{rpmcflags} -Wall" -j1 |
65fbc6c7 | 339 | |
e1542d3b JB |
340 | # broken build system |
341 | sed -e 's,LIBDIR,%{_libdir},' camlp4/man/camlp4.1.tpl > camlp4/man/camlp4.1 | |
342 | ||
65fbc6c7 | 343 | %install |
5ca6b9fb | 344 | rm -rf $RPM_BUILD_ROOT |
69735a4b | 345 | install -d $RPM_BUILD_ROOT{%{_includedir},%{_infodir},%{_examplesdir}/%{name}-{labltk-,}%{version}} |
7ff0f82f | 346 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lib |
e42e1457 | 347 | |
7ae05805 | 348 | %{__make} install \ |
13b509d1 MM |
349 | BINDIR=$RPM_BUILD_ROOT%{_bindir} \ |
350 | LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name} \ | |
351 | MANDIR=$RPM_BUILD_ROOT%{_mandir} | |
352 | ||
353 | cat > $RPM_BUILD_ROOT%{_libdir}/%{name}/ld.conf <<EOF | |
354 | %{_libdir}/%{name}/stublibs | |
355 | %{_libdir}/%{name} | |
356 | EOF | |
4797676b | 357 | |
f4710e3c | 358 | %if %{with emacs} |
7ae05805 | 359 | %{__make} -C emacs DESTDIR=$RPM_BUILD_ROOT install \ |
65fbc6c7 AM |
360 | EMACS="`if [ -x %{_bindir}/emacs ]; then echo emacs; \ |
361 | else echo xemacs; fi`" \ | |
8151bf1e | 362 | EMACSDIR="$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp" |
56260732 MM |
363 | %endif |
364 | ||
981ff793 | 365 | # symlink .opt versions of compilers (if present) |
13b509d1 MM |
366 | # warning: don't do that with camlp4 (can't load extensions then) |
367 | for f in ocamlc ocamlopt ocamldoc ocamllex; do | |
067af37d MM |
368 | if test -f $RPM_BUILD_ROOT%{_bindir}/$f.opt; then |
369 | mv -f $RPM_BUILD_ROOT%{_bindir}/$f \ | |
370 | $RPM_BUILD_ROOT%{_bindir}/$f.byte | |
371 | ln -sf %{_bindir}/$f.opt $RPM_BUILD_ROOT%{_bindir}/$f | |
372 | fi | |
1511bcd5 | 373 | done |
65fbc6c7 | 374 | |
981ff793 | 375 | # move includes to the proper place |
ba35c88b | 376 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/caml $RPM_BUILD_ROOT%{_includedir}/caml |
981ff793 | 377 | # but leave compatibility symlink |
379cf672 | 378 | ln -s ../../include/caml $RPM_BUILD_ROOT%{_libdir}/%{name}/caml |
981ff793 | 379 | |
360c386d MM |
380 | # compiled sources of compiler, needed by some programs |
381 | for f in {asm,byte}comp parsing typing utils ; do | |
382 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/compiler/$f | |
383 | cp $f/*.{cmi,cmo,cmx,o} $RPM_BUILD_ROOT%{_libdir}/%{name}/compiler/$f | |
384 | done | |
981ff793 MM |
385 | |
386 | # this isn't installed by default, but is useful | |
387 | install tools/objinfo $RPM_BUILD_ROOT%{_bindir}/ocamlobjinfo | |
53fbd845 | 388 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
13b509d1 | 389 | cp -r otherlibs/labltk/examples* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-labltk-%{version} |
56260732 MM |
390 | ln -sf %{_libdir}/%{name}/{scrape,add}labels $RPM_BUILD_ROOT%{_bindir} |
391 | ||
13b509d1 | 392 | # shutup checkfiles |
f442d039 | 393 | rm -rf $RPM_BUILD_ROOT%{_mandir}/man3 |
13b509d1 MM |
394 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/labltk/{labltktop,pp} |
395 | ||
69735a4b | 396 | # install info pages |
397 | cp -f infoman/*.gz $RPM_BUILD_ROOT%{_infodir} | |
398 | ||
e1542d3b JB |
399 | # broken build system |
400 | install camlp4/man/camlp4.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
401 | for f in camlp4o.1 camlp4r.1 mkcamlp4.1 camlp4o.opt.1 camlp4r.opt.1 ; do | |
402 | echo '.so camlp4.1' >$RPM_BUILD_ROOT%{_mandir}/man1/$f | |
403 | done | |
404 | ||
65fbc6c7 AM |
405 | %clean |
406 | rm -rf $RPM_BUILD_ROOT | |
407 | ||
4a452533 ER |
408 | %post doc-info -p /sbin/postshell |
409 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
69735a4b | 410 | |
4a452533 ER |
411 | %postun doc-info -p /sbin/postshell |
412 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
69735a4b | 413 | |
65fbc6c7 AM |
414 | %files |
415 | %defattr(644,root,root,755) | |
f1920819 | 416 | %doc LICENSE Changes README Upgrading |
13b509d1 | 417 | %attr(755,root,root) %{_bindir}/ocaml* |
dd90c8d9 | 418 | %{?with_tk:%exclude %{_bindir}/ocamlbrowser} |
13b509d1 | 419 | %exclude %{_bindir}/ocamlrun |
73a93122 | 420 | %attr(755,root,root) %{_bindir}/*labels |
ba35c88b | 421 | %{_includedir}/caml |
530dec71 | 422 | %{_libdir}/%{name}/caml |
530dec71 | 423 | %{_libdir}/%{name}/threads |
4c1e0f62 MM |
424 | %dir %{_libdir}/%{name}/vmthreads |
425 | %dir %{_libdir}/%{name}/vmthreads/*.cm* | |
426 | %dir %{_libdir}/%{name}/vmthreads/*.a | |
13b509d1 MM |
427 | %{_libdir}/%{name}/*.a |
428 | %{_libdir}/%{name}/*.o | |
429 | %{_libdir}/%{name}/*.cm* | |
430 | %exclude %{_libdir}/%{name}/*graphics* | |
dd90c8d9 | 431 | %{_libdir}/%{name}/Makefile.config |
4251bfb1 | 432 | %{_libdir}/%{name}/ld.conf |
56260732 MM |
433 | %{_libdir}/%{name}/camlheader |
434 | %{_libdir}/%{name}/camlheader_ur | |
7ff0f82f | 435 | %{_libdir}/%{name}/ocamlbuild |
13b509d1 | 436 | %dir %{_libdir}/%{name}/ocamldoc |
13b509d1 MM |
437 | %{_libdir}/%{name}/ocamldoc/*.hva |
438 | %attr(755,root,root) %{_libdir}/%{name}/expunge | |
439 | %attr(755,root,root) %{_libdir}/%{name}/extract_crc | |
56260732 | 440 | %attr(755,root,root) %{_libdir}/%{name}/*labels |
13b509d1 MM |
441 | %{_mandir}/man1/*ocaml* |
442 | ||
79502218 JB |
443 | %files runtime |
444 | %defattr(644,root,root,755) | |
445 | %attr(755,root,root) %{_bindir}/ocamlrun | |
446 | %dir %{_libdir}/%{name} | |
7ff0f82f | 447 | %dir %{_libdir}/%{name}/site-lib |
79502218 JB |
448 | %dir %{_libdir}/%{name}/stublibs |
449 | %attr(755,root,root) %{_libdir}/%{name}/stublibs/dll*.so | |
450 | %exclude %{_libdir}/%{name}/stublibs/dllgraphics.so | |
42946d4f | 451 | %attr(755,root,root) %{_libdir}/%{name}/libcamlrun_shared.so |
79502218 JB |
452 | %if %{with tk} |
453 | %exclude %{_libdir}/%{name}/stublibs/dlllabltk.so | |
454 | %exclude %{_libdir}/%{name}/stublibs/dlltkanim.so | |
455 | %endif | |
456 | ||
13b509d1 MM |
457 | %files lib-source |
458 | %defattr(644,root,root,755) | |
459 | %{_libdir}/%{name}/*.ml | |
8151bf1e | 460 | %{_libdir}/%{name}/*.mli |
4c1e0f62 | 461 | %{_libdir}/%{name}/*/*.mli |
13b509d1 | 462 | |
79502218 | 463 | %files doc-html |
763b9075 | 464 | %defattr(644,root,root,755) |
79502218 JB |
465 | %doc docs/html/ocaml/* |
466 | ||
467 | %files doc-ps | |
468 | %defattr(644,root,root,755) | |
469 | %doc docs/*.ps.gz | |
470 | ||
471 | %files doc-info | |
472 | %defattr(644,root,root,755) | |
473 | %{_infodir}/ocaml.info* | |
53fbd845 | 474 | |
13b509d1 MM |
475 | # they are poor, html is much better |
476 | #%files manpages | |
e68873d9 | 477 | #%%{_mandir}/man3/* |
65fbc6c7 | 478 | |
79502218 JB |
479 | %if %{with emacs} |
480 | %files emacs | |
56260732 | 481 | %defattr(644,root,root,755) |
79502218 JB |
482 | %{_datadir}/emacs/site-lisp/*.el* |
483 | %endif | |
56260732 | 484 | |
79502218 JB |
485 | %if %{with tk} |
486 | %files labltk | |
69735a4b | 487 | %defattr(644,root,root,755) |
79502218 JB |
488 | %attr(755,root,root) %{_libdir}/%{name}/stublibs/dlllabltk.so |
489 | %attr(755,root,root) %{_libdir}/%{name}/stublibs/dlltkanim.so | |
69735a4b | 490 | |
981ff793 | 491 | %files labltk-devel |
56260732 | 492 | %defattr(644,root,root,755) |
73a93122 | 493 | %attr(755,root,root) %{_bindir}/labltk |
494 | %attr(755,root,root) %{_bindir}/ocamlbrowser | |
56260732 MM |
495 | %dir %{_libdir}/%{name}/labltk |
496 | %{_libdir}/%{name}/labltk/*.cm* | |
497 | %{_libdir}/%{name}/labltk/*.a | |
42946d4f | 498 | %{_libdir}/%{name}/labltk/*.o |
73a93122 | 499 | %attr(755,root,root) %{_libdir}/%{name}/labltk/tkcompiler |
ba35c88b | 500 | %{_examplesdir}/%{name}-labltk-%{version} |
56260732 MM |
501 | %endif |
502 | ||
b552f088 | 503 | %if %{with x} |
79502218 JB |
504 | %files x11graphics |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/%{name}/stublibs/dllgraphics.so | |
507 | ||
981ff793 | 508 | %files x11graphics-devel |
56260732 | 509 | %defattr(644,root,root,755) |
13b509d1 | 510 | %{_libdir}/%{name}/graphics*.cm* |
f442d039 | 511 | %{_libdir}/%{name}/graphics.a |
56260732 | 512 | %{_libdir}/%{name}/libgraphics.a |
56260732 MM |
513 | %endif |
514 | ||
79502218 | 515 | %files camlp4 |
65fbc6c7 | 516 | %defattr(644,root,root,755) |
e1542d3b JB |
517 | %attr(755,root,root) %{_bindir}/camlp4* |
518 | %attr(755,root,root) %{_bindir}/mkcamlp4 | |
79502218 | 519 | %{_libdir}/%{name}/camlp4 |
e1542d3b JB |
520 | %{_mandir}/man1/camlp4*.1* |
521 | %{_mandir}/man1/mkcamlp4.1* | |
4797676b | 522 | |
79502218 | 523 | %files camlp4-doc-html |
13b509d1 | 524 | %defattr(644,root,root,755) |
79502218 | 525 | %doc docs/html/camlp4* |
13b509d1 | 526 | |
79502218 | 527 | %files compiler-objects |
69735a4b | 528 | %defattr(644,root,root,755) |
79502218 | 529 | %{_libdir}/%{name}/compiler |
69735a4b | 530 | |
79502218 | 531 | %files ocamldoc-devel |
73a93122 | 532 | %defattr(644,root,root,755) |
79502218 JB |
533 | %{_libdir}/%{name}/ocamldoc/*.cm* |
534 | %{_libdir}/%{name}/ocamldoc/*.a | |
69735a4b | 535 | |
79502218 | 536 | %files examples |
69735a4b | 537 | %defattr(644,root,root,755) |
79502218 | 538 | %{_examplesdir}/%{name}-%{version} |