5 # --without x11 (implies --without tk)
7 %{?_without_x11:%define _without_tk 1}
9 Summary: The Objective Caml compiler and programming environment
10 Summary(pl): Kompilator Objektowego Caml oraz ¶rodowisko programistyczne
14 License: distributable
15 Vendor: Group of implementors <caml-light@inria.fr>
16 Group: Development/Languages
17 Source0: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}.tar.gz
18 Source1: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.info.tar.gz
19 Source2: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.html.tar.gz
20 Source3: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.ps.gz
21 Source4: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{version}-refman.html.tar.gz
22 Source5: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{version}-refman.ps.gz
23 Source6: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{version}-tutorial.html.tar.gz
24 Source7: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{version}-tutorial.ps.gz
25 Patch0: %{name}-build.patch
26 Patch1: %{name}-DESTDIR.patch
27 Patch2: %{name}-manlinks.patch
28 Patch3: %{name}-db3.patch
29 URL: http://caml.inria.fr/
30 BuildRequires: db3-devel
31 %{!?_without_tk:BuildRequires: tk-devel}
32 %{!?_without_x11:BuildRequires: XFree86-devel}
33 %{!?_without_emacs:BuildRequires: xemacs-common}
34 %{!?_without_emacs:BuildRequires: xemacs-fsf-compat-pkg}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Objective Caml is a high-level, strongly-typed, functional and
39 object-oriented programming language from the ML family of languages.
41 This package comprises two batch compilers (a fast bytecode compiler
42 and an optimizing native-code compiler), an interactive toplevel
43 system, Lex&Yacc tools, a replay debugger, and a comprehensive
47 Objektowy Caml jest funkcjonalnym, obiektowo zorientowanym jêzykiem
48 wysokiego poziomu z rodziny jêzyków ML.
50 Ten pakiet zawiera dwa kompilatory (szybki kompilator bytecode oraz
51 zoptymalizowany natywny kompilator), interaktywny g³ówny system,
52 narzêdzia Lex&Yacc, odpluskwiacz i biblioteki.
55 Summary: PostScript documentation for OCaml
56 Summary(pl): Dokumentacja dla OCaml-a w formacie PostSript
57 Group: Development/Tools
58 Requires: %{name} = %{version}
61 PostScript documentation for OCaml
63 %description doc-ps -l pl
64 Dokumentacja dla OCaml-a w formacie PostSript
67 Summary: HTML documentation for OCaml
68 Summary(pl): Dokumentacja dla OCaml-a w formacie HTML
69 Group: Development/Tools
70 Requires: %{name} = %{version}
73 HTML documentation for OCaml
75 %description doc-html -l pl
76 Dokumentacja dla OCaml-a w formacie HTML
79 Summary: Emacs mode for OCaml
80 Summary(pl): Tryb Emacsa dla OCaml
81 Group: Development/Tools
82 Requires: %{name} = %{version}
85 Emacs mode files for Objective Caml language
87 %description emacs -l pl
88 Pliki trybu Emacsa dla jêzyka Objektowego Caml
91 Summary: LabelTk library for OCaml
92 Summary(pl): Biblioteka LablTk dla OCamla
93 Group: Development/Libraries
94 Requires: %{name} = %{version}
97 LablTk gives OCaml program access to Tcl/Tk GUI widgets.
99 %description labltk -l pl
100 Biblioteka LablTk daje programom napisanym w OCamlu dostêp do widgetów
104 Summary: X11 graphic output for OCaml
105 Summary(pl): Iksowe wyj¶cie graficzne dla OCamla
106 Group: Development/Libraries
107 Requires: %{name} = %{version}
109 %description x11graphics
110 This package gives OCaml program access to drawing in X11 windows.
112 %description x11graphics -l pl
113 Ten pakiet daje programom napisanym w OCamlu dostêp do rysowania po
117 Summary: Objective Caml Preprocessor
118 Summary(pl): Preprocesor Ocamla
119 Group: Development/Languages
120 Requires: %{name} = %{version}
121 Provides: camlp4 = %{version}
125 Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
126 tools for syntax (grammars) and the ability to modify the concrete
127 syntax of the language (quotations, syntax extensions).
129 Camlp4 can parse normal Ocaml concrete syntax or any other
130 user-definable syntax. As an example, an alternative syntax is
131 provided, named revised, because it tries to fix some small problems
132 of the normal syntax.
134 Camlp4 can pretty print the normal Ocaml concrete syntax or the
135 revised one. It is therefore always possible to have a version of your
136 sources compilable by the compiler Objective Caml without
139 %description camlp4 -l pl
140 Camlp4 jest preprocesorem dla Ocamla. Oferuje narzêdzia do sk³adni
141 (gramatyki) oraz umiejêtno¶æ modyfikowania konkretnej sk³adni jêzyka
142 (cytowania, rozszerzenia).
144 Camlp4 mo¿e sparsowaæ normaln± sk³adniê Ocamla lub inn± dowoln±
145 definiowaln± przez u¿ytkownika. Jako przyk³ad jest podana alternatywna
146 sk³adnia, nazwana "poprawiona", poniewa¿ próbuje poprawiæ drobne
147 problemy ze zwyk³± sk³adni±.
149 Camlp4 umie ³adnie wypisaæ normaln± sk³adniê Camla lub "poprawion±".
150 Dziêki temu jest mo¿liwe posiadanie wersji swoich ¼róde³
151 kompilowalnych przez kompilatora Ocamla bez preprocesingu.
157 # order mess with docs somewhat
160 mv htmlman docs/html/ocaml
161 cp %{SOURCE3} docs/ocaml.ps.gz
163 mv camlp4-%{version}-refman.html docs/html/camlp4
164 cp %{SOURCE5} docs/camlp4.ps.gz
166 mv camlp4-%{version}-tutorial.html docs/html/camlp4-tutorial
167 cp %{SOURCE7} docs/camlp4-tutorial.ps.gz
176 -cc "%{__cc} %{rpmcflags}" \
178 -libdir %{_libdir}/%{name} \
179 -mandir %{_mandir}/man1 \
181 %{?_without_tk:-notk} \
184 # this is crude hack (works in addition to ocaml-db3.patch)
185 cp config/Makefile config/Makefile.tmp
186 sed -e 's|-ldb1|-ldb|; s|-I%{_includedir}/db1||' < config/Makefile.tmp > config/Makefile
188 %{__make} world bootstrap opt ocamlc.opt ocamlopt.opt
190 %{__make} -C camlp4 optp4
193 # hack info pages to contain dir entry
194 cat <<EOF >infoman/ocaml.info
195 INFO-DIR-SECTION Programming Languages:
197 * Ocaml: (ocaml). The Ocaml language
200 zcat infoman/ocaml.info.gz >> infoman/ocaml.info
202 gzip -9nf infoman/ocaml.info
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT%{_infodir}
208 %{__make} install DESTDIR=$RPM_BUILD_ROOT
210 %if %{!?_without_emacs:1}%{?_without_emacs:0}
211 %{__make} -C emacs DESTDIR=$RPM_BUILD_ROOT install \
212 EMACS="`if [ -x %{_bindir}/emacs ]; then echo emacs; \
213 else echo xemacs; fi`" \
214 EMACSDIR="%{_libdir}/emacs/site-lisp"
217 cp -p {parsing/{location,longident,parsetree},typing/typecore}.{cm,ml}i \
218 $RPM_BUILD_ROOT%{_libdir}/%{name}
220 for f in ocamlc ocamlopt camlp4o camlp4r; do
221 if test -f $RPM_BUILD_ROOT%{_bindir}/$f.opt; then
222 mv -f $RPM_BUILD_ROOT%{_bindir}/$f \
223 $RPM_BUILD_ROOT%{_bindir}/$f.byte
224 ln -sf %{_bindir}/$f.opt $RPM_BUILD_ROOT%{_bindir}/$f
228 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
229 ln -sf %{_libdir}/%{name}/{scrape,add}labels $RPM_BUILD_ROOT%{_bindir}
231 install infoman/*info* $RPM_BUILD_ROOT%{_infodir}
233 gzip -9nf LICENSE Changes README Upgrading
236 rm -rf $RPM_BUILD_ROOT
239 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
242 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
246 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_bindir}/ocaml
249 %attr(755,root,root) %{_bindir}/ocaml[cmdlopry]*
250 %attr(755,root,root) %{_bindir}/*labels
251 %{_libdir}/%{name}/caml
252 %{_libdir}/%{name}/threads
253 %{_libdir}/%{name}/[abefhimnopqrstuw]*.*
254 %{_libdir}/%{name}/callback.*
255 %{_libdir}/%{name}/char.*
256 %{_libdir}/%{name}/condition.*
257 %{_libdir}/%{name}/dbm.*
258 %{_libdir}/%{name}/digest.*
259 %attr(755,root,root) %{_libdir}/%{name}/dll[bmnstu]*.so
260 %{_libdir}/%{name}/g[ce]*.*
261 %{_libdir}/%{name}/l*.cm*
262 %{_libdir}/%{name}/l*.mli
263 %{_libdir}/%{name}/lib[abc]*.a
264 %{_libdir}/%{name}/libmldbm.a
265 %{_libdir}/%{name}/lib[nstu]*.a
266 %{_libdir}/%{name}/ld.conf
267 %attr(755,root,root) %{_libdir}/%{name}/expunge
268 %attr(755,root,root) %{_libdir}/%{name}/extract_crc
269 %{_libdir}/%{name}/camlheader
270 %{_libdir}/%{name}/camlheader_ur
271 %attr(755,root,root) %{_libdir}/%{name}/*labels
272 %{_mandir}/man*/*ocaml*
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_bindir}/*camlp4*
278 %attr(755,root,root) %{_bindir}/ocpp
279 %attr(755,root,root) %{_bindir}/odyl
280 %{_libdir}/%{name}/camlp4
281 %{_mandir}/man*/*camlp4*
282 %{_mandir}/man*/*ocpp*
284 %if %{!?_without_tk:1}%{?_without_tk:0}
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_bindir}/labltk
288 %attr(755,root,root) %{_bindir}/ocamlbrowser
289 %dir %{_libdir}/%{name}/labltk
290 %{_libdir}/%{name}/labltk/*.cm*
291 %{_libdir}/%{name}/labltk/*.a
292 %{_libdir}/%{name}/labltk/*.mli
293 %attr(755,root,root) %{_libdir}/%{name}/labltk/*.so
294 %attr(755,root,root) %{_libdir}/%{name}/labltk/labltktop
295 %attr(755,root,root) %{_libdir}/%{name}/labltk/tkcompiler
298 %if %{!?_without_x11:1}%{?_without_x11:0}
300 %defattr(644,root,root,755)
301 %{_libdir}/%{name}/graphics*
302 %{_libdir}/%{name}/libgraphics.a
303 %attr(755,root,root) %{_libdir}/%{name}/dllgraphics.so
306 %if %{!?_without_emacs:1}%{?_without_emacs:0}
308 %defattr(644,root,root,755)
309 %{_libdir}/emacs/site-lisp/*.el
313 %defattr(644,root,root,755)
317 %defattr(644,root,root,755)