Name: ocaml Version: 3.01 Release: 2 Summary: The Objective Caml compiler and programming environment Source0: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01.tar.gz Source1: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01-refman.html.tar.gz Source2: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01-refman.ps.gz Source3: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01-refman.info.tar.gz Copyright: Open Source Group: Development/Languages BuildRoot: /var/tmp/ocaml-buildroot Vendor: INRIA Rocquencourt URL: http://caml.inria.fr/ %description Objective Caml is a high-level, strongly-typed, functional and object-oriented programming language from the ML family of languages. This package comprises two batch compilers (a fast bytecode compiler and an optimizing native-code compiler), an interactive toplevel system, Lex&Yacc tools, a replay debugger, and a comprehensive library. %prep %setup -T -b 0 %setup -T -D -a 1 %setup -T -D -a 3 cp ../../SOURCES/ocaml-3.01-refman.ps.gz refman.ps.gz %build ./configure -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/man/man1 make world opt ocamlc.opt ocamlopt.opt %install rm -rf ${RPM_BUILD_ROOT}/usr/lib/ocaml make install BINDIR=${RPM_BUILD_ROOT}/usr/bin LIBDIR=${RPM_BUILD_ROOT}/usr/lib/ocaml MANDIR=${RPM_BUILD_ROOT}/usr/man/man1 (cd emacs; make install BINDIR=${RPM_BUILD_ROOT}/usr/bin EMACSDIR=${RPM_BUILD_ROOT}/usr/lib/emacs/site-lisp) (mkdir -p ${RPM_BUILD_ROOT}/usr/info; cd infoman; cp ocaml*.gz ${RPM_BUILD_ROOT}/usr/info) # Disable build root strip policy, executables generated by ocamlc -custom # MUST NOT BE STRIPPED %define __spec_install_post /usr/lib/rpm/brp-compress %files /usr/bin/* /usr/man/man1/* /usr/lib/ocaml /usr/lib/emacs/site-lisp/* /usr/info/* %doc refman.ps.gz htmlman