1 Summary: The Objective Caml compiler and programming environment
2 Summary(pl): Kompilator Objektowego Caml oraz ¶rodowisko programistyczne
6 URL: http://pauillac.inria.fr/caml/
7 Vendor: Group of implementors <caml-light@inria.fr>
8 Source0: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}.tar.gz
9 Source1: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.html.tar.gz
10 Patch0: ocaml-ext_prof.patch
11 Patch1: ocaml-opt.patch
12 Copyright: Distributable
13 Group: Development/Languages
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Objective Caml is a high-level, strongly-typed, functional and
18 object-oriented programming language from the ML family of languages.
20 This package comprises two batch compilers (a fast bytecode compiler
21 and an optimizing native-code compiler), an interactive toplevel system,
22 Lex&Yacc tools, a replay debugger, and a comprehensive library.
25 Objektowy Caml jest funkcjonalnym, objektowo zorientowanym jêzykiem
26 wysokiego poziomuz rodziny jêzyków ML.
28 Ten pakiet zawiera dwa kompilatory (szybki kompilator bytecode
29 oraz zoptymalizowany natywny kompilator), interaktywny g³ówny system,
30 narzêdzia Lex&Yacc, odpluskwiacz i biblioteki.
33 Group: Development/Tools
34 Summary: Emacs mode for OCaml
35 Summary(pl): Tryb Emacsa dla OCaml
36 Requires: %{name} = %{version}
37 # xemacs doesn't have Provide emacs ?
41 Emacs mode files for Objective Caml language
43 %description -l pl emacs
44 Pliki trybu Emacsa dla jêzyka Objektowego Caml
54 -cc "cc $RPM_OPT_FLAGS" \
56 -libdir %{_libdir}/%{name} \
57 -mandir %{_mandir}/man1 \
58 -host %{_host_alias} \
61 make world bootstrap opt ocamlc.opt ocamlopt.opt
65 rm -rf $RPM_BUILD_ROOT
66 echo BINDIR=$RPM_BUILD_ROOT%{_bindir} >> config/Makefile
67 echo LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name} >> config/Makefile
68 echo MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 >> config/Makefile
70 make -C emacs install \
71 EMACS="`if [ -x %{_bindir}/emacs ]; then echo emacs; \
72 else echo xemacs; fi`" \
73 EMACSDIR="$RPM_BUILD_ROOT%{_libdir}/emacs/site-lisp"
74 cp -p {parsing/{location,longident,parsetree},typing/typecore}.{cm,ml}i \
75 $RPM_BUILD_ROOT%{_libdir}/%{name}
77 gzip -9nf LICENSE Changes README $RPM_BUILD_ROOT%{_mandir}/man*/*
79 cd $RPM_BUILD_ROOT%{_bindir}
80 mv -f ocamlc $RPM_BUILD_ROOT%{_bindir}/ocamlc.byte
81 mv -f ocamlc.opt $RPM_BUILD_ROOT%{_bindir}/ocamlc
82 mv -f ocamlopt $RPM_BUILD_ROOT%{_bindir}/ocamlopt.byte
83 mv -f ocamlopt.opt $RPM_BUILD_ROOT%{_bindir}/ocamlopt
84 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
86 strip $RPM_BUILD_ROOT%{_bindir}/* || :
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
93 %attr(755, root, root) %{_bindir}/*
98 %defattr(644,root,root,755)
99 %{_libdir}/emacs/site-lisp/*.el