summaryrefslogtreecommitdiff
path: root/tools/ocaml.spec
blob: e57ec0a6a07ec6a89eb1100c835c08fa442ec68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Name: ocaml
Version: 2.02
Release: 2
Summary: The Objective Caml compiler and programming environment
Source0: ftp://ftp.inria.fr/lang/caml-light/ocaml-2.02.tar.gz
Source1: ftp://ftp.inria.fr/lang/caml-light/ocaml-2.02-refman.html.tar.gz
Source2: ftp://ftp.inria.fr/lang/caml-light/ocaml-2.02-refman.ps.gz
Source3: ftp://ftp.inria.fr/lang/caml-light/ocamltk41-R200.tar.gz
Patch0: ftp://ftp.inria.fr/lang/caml-light/ocaml-2.02-patch1.diffs
Copyright: freely redistributable
Group: Development/Languages
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
%patch0 -p1 
mv ocamltk41 otherlibs/ocamltk41
cp ../../SOURCES/ocaml-2.02-refman.ps.gz refman.ps.gz

%build
./configure -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/man/man1
cat > otherlibs/ocamltk41/site.config.redhat << 'EOF'
OCAMLLIBDIR=/usr/lib/ocaml
CPPFLAGS=-I/usr/X11R6/include
INSTALLDIR=/usr/lib/ocaml/camltk
EOF
(cd otherlibs/ocamltk41; ./configure --with-config=site.config.redhat)
make world opt ocamlc.opt ocamlopt.opt
rm -rf /usr/lib/ocaml
make install
cd otherlibs/ocamltk41
make all opt
make install installopt
rm /usr/lib/ocaml/camltk/ocamltktop

%install
(cd emacs; make install EMACSDIR=/usr/lib/emacs/site-lisp)

%files
/usr/bin/ocaml
/usr/bin/ocamlc
/usr/bin/ocamlcp
/usr/bin/ocamldebug
/usr/bin/ocamldep
/usr/bin/ocamllex
/usr/bin/ocamlmktop
/usr/bin/ocamlopt
/usr/bin/ocamlprof
/usr/bin/ocamlrun
/usr/bin/ocamlyacc
/usr/bin/ocamlc.opt
/usr/bin/ocamlopt.opt
/usr/lib/ocaml
/usr/man/man1/ocaml.1
/usr/man/man1/ocamlc.1
/usr/man/man1/ocamlcp.1
/usr/man/man1/ocamldep.1
/usr/man/man1/ocamllex.1
/usr/man/man1/ocamlopt.1
/usr/man/man1/ocamlprof.1
/usr/man/man1/ocamlrun.1
/usr/man/man1/ocamlyacc.1
/usr/man/man1/ocamlmktop.1
/usr/man/man1/ocamlc.opt.1
/usr/man/man1/ocamlopt.opt.1
/usr/lib/emacs/site-lisp/caml-font.el
/usr/lib/emacs/site-lisp/caml-hilit.el
/usr/lib/emacs/site-lisp/caml.el
/usr/lib/emacs/site-lisp/camldebug.el
/usr/lib/emacs/site-lisp/inf-caml.el
%doc refman.ps.gz htmlman