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
189 %{__make} -C camlp4 optp4
191 # hack info pages to contain dir entry
192 cat <<EOF >infoman/ocaml.info
193 INFO-DIR-SECTION Programming Languages:
195 * Ocaml: (ocaml). The Ocaml language
198 zcat infoman/ocaml.info.gz >> infoman/ocaml.info
200 gzip -9nf infoman/ocaml.info
203 rm -rf $RPM_BUILD_ROOT
204 install -d $RPM_BUILD_ROOT%{_infodir}
206 %{__make} install DESTDIR=$RPM_BUILD_ROOT
208 %if %{!?_without_emacs:1}%{?_without_emacs:0}
209 %{__make} -C emacs DESTDIR=$RPM_BUILD_ROOT install \
210 EMACS="`if [ -x %{_bindir}/emacs ]; then echo emacs; \
211 else echo xemacs; fi`" \
212 EMACSDIR="%{_libdir}/emacs/site-lisp"
215 cp -p {parsing/{location,longident,parsetree},typing/typecore}.{cm,ml}i \
216 $RPM_BUILD_ROOT%{_libdir}/%{name}
218 for f in ocamlc ocamlopt camlp4o camlp4r; do
219 mv -f $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT%{_bindir}/$f.byte
220 ln -sf %{_bindir}/$f.opt $RPM_BUILD_ROOT%{_bindir}/$f
223 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
224 ln -sf %{_libdir}/%{name}/{scrape,add}labels $RPM_BUILD_ROOT%{_bindir}
226 install infoman/*info* $RPM_BUILD_ROOT%{_infodir}
228 gzip -9nf LICENSE Changes README Upgrading
231 rm -rf $RPM_BUILD_ROOT
234 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
237 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
241 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_bindir}/ocaml
244 %attr(755,root,root) %{_bindir}/ocaml[cmdlopry]*
245 %attr(755,root,root) %{_bindir}/*labels
246 %{_libdir}/%{name}/caml
247 %{_libdir}/%{name}/threads
248 %{_libdir}/%{name}/[abefhimnopqrstuw]*.*
249 %{_libdir}/%{name}/callback.*
250 %{_libdir}/%{name}/char.*
251 %{_libdir}/%{name}/condition.*
252 %{_libdir}/%{name}/dbm.*
253 %{_libdir}/%{name}/digest.*
254 %attr(755,root,root) %{_libdir}/%{name}/dll[bmnstu]*.so
255 %{_libdir}/%{name}/g[ce]*.*
256 %{_libdir}/%{name}/l*.cm*
257 %{_libdir}/%{name}/l*.mli
258 %{_libdir}/%{name}/lib[abc]*.a
259 %{_libdir}/%{name}/libmldbm.a
260 %{_libdir}/%{name}/lib[nstu]*.a
261 %{_libdir}/%{name}/ld.conf
262 %attr(755,root,root) %{_libdir}/%{name}/expunge
263 %attr(755,root,root) %{_libdir}/%{name}/extract_crc
264 %{_libdir}/%{name}/camlheader
265 %{_libdir}/%{name}/camlheader_ur
266 %attr(755,root,root) %{_libdir}/%{name}/*labels
267 %{_mandir}/man*/*ocaml*
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_bindir}/*camlp4*
273 %attr(755,root,root) %{_bindir}/ocpp
274 %attr(755,root,root) %{_bindir}/odyl
275 %{_libdir}/%{name}/camlp4
276 %{_mandir}/man*/*camlp4*
277 %{_mandir}/man*/*ocpp*
279 %if %{!?_without_tk:1}%{?_without_tk:0}
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_bindir}/labltk
283 %attr(755,root,root) %{_bindir}/ocamlbrowser
284 %dir %{_libdir}/%{name}/labltk
285 %{_libdir}/%{name}/labltk/*.cm*
286 %{_libdir}/%{name}/labltk/*.a
287 %{_libdir}/%{name}/labltk/*.mli
288 %attr(755,root,root) %{_libdir}/%{name}/labltk/*.so
289 %attr(755,root,root) %{_libdir}/%{name}/labltk/labltktop
290 %attr(755,root,root) %{_libdir}/%{name}/labltk/tkcompiler
293 %if %{!?_without_x11:1}%{?_without_x11:0}
295 %defattr(644,root,root,755)
296 %{_libdir}/%{name}/graphics*
297 %{_libdir}/%{name}/libgraphics.a
298 %attr(755,root,root) %{_libdir}/%{name}/dllgraphics.so
301 %if %{!?_without_emacs:1}%{?_without_emacs:0}
303 %defattr(644,root,root,755)
304 %{_libdir}/emacs/site-lisp/*.el
308 %defattr(644,root,root,755)
312 %defattr(644,root,root,755)