1 Summary: The Objective Caml compiler and programming environment
2 Summary(pl): Kompilator Objektowego Caml oraz ¶rodowisko programistyczne
7 Vendor: Group of implementors <caml-light@inria.fr>
8 Group: Development/Languages
9 Group(de): Entwicklung/Sprachen
10 Group(pl): Programowanie/Jêzyki
11 Source0: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}.tar.gz
12 Source1: ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.info.tar.gz
13 URL: http://pauillac.inria.fr/caml/
14 BuildRequires: tcl-devel
15 BuildRequires: tk-devel
16 BuildRequires: xemacs-common
17 BuildRequires: xemacs-fsf-compat-pkg
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define no_install_post_strip 1
23 Objective Caml is a high-level, strongly-typed, functional and
24 object-oriented programming language from the ML family of languages.
26 This package comprises two batch compilers (a fast bytecode compiler
27 and an optimizing native-code compiler), an interactive toplevel
28 system, Lex&Yacc tools, a replay debugger, and a comprehensive
32 Objektowy Caml jest funkcjonalnym, obiektowo zorientowanym jêzykiem
33 wysokiego poziomu rodziny jêzyków ML.
35 Ten pakiet zawiera dwa kompilatory (szybki kompilator bytecode oraz
36 zoptymalizowany natywny kompilator), interaktywny g³ówny system,
37 narzêdzia Lex&Yacc, odpluskwiacz i biblioteki.
40 Summary: Emacs mode for OCaml
41 Summary(pl): Tryb Emacsa dla OCaml
42 Group: Development/Tools
43 Group(de): Entwicklung/Werkzeuge
44 Group(fr): Development/Outils
45 Group(pl): Programowanie/Narzêdzia
46 Requires: %{name} = %{version}
47 # xemacs doesn't have Provide emacs ?
51 Emacs mode files for Objective Caml language
53 %description -l pl emacs
54 Pliki trybu Emacsa dla jêzyka Objektowego Caml
64 -libdir %{_libdir}/%{name} \
65 -mandir %{_mandir}/man1 \
69 %{__make} world bootstrap opt ocamlc.opt ocamlopt.opt \
70 BYTECCCOMPOPTS="%{rpmcflags}"
72 # hack info pages to contain dir entry
73 cat <<EOF >infoman/ocaml.info
74 INFO-DIR-SECTION Programming Languages:
76 * Ocaml: (ocaml). The Ocaml language
79 zcat infoman/ocaml.info.gz >> infoman/ocaml.info
80 gzip -9nf infoman/ocaml.info
83 rm -rf $RPM_BUILD_ROOT
86 echo BINDIR=$RPM_BUILD_ROOT%{_bindir} >> config/Makefile
87 echo LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name} >> config/Makefile
88 echo MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 >> config/Makefile
91 %{__make} -C emacs install \
92 EMACS="`if [ -x %{_bindir}/emacs ]; then echo emacs; \
93 else echo xemacs; fi`" \
94 EMACSDIR="$RPM_BUILD_ROOT%{_libdir}/emacs/site-lisp"
95 cp -p {parsing/{location,longident,parsetree},typing/typecore}.{cm,ml}i \
96 $RPM_BUILD_ROOT%{_libdir}/%{name}
98 mv -f $RPM_BUILD_ROOT%{_bindir}/ocamlc $RPM_BUILD_ROOT%{_bindir}/ocamlc.byte
99 ln -sf %{_bindir}/ocamlc.opt $RPM_BUILD_ROOT%{_bindir}/ocamlc
100 mv -f $RPM_BUILD_ROOT%{_bindir}/ocamlopt $RPM_BUILD_ROOT%{_bindir}/ocamlopt.byte
101 ln -sf %{_bindir}/ocamlopt.opt $RPM_BUILD_ROOT%{_bindir}/ocamlopt
102 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
104 install -d $RPM_BUILD_ROOT%{_infodir}
105 install infoman/*info* $RPM_BUILD_ROOT%{_infodir}
107 gzip -9nf LICENSE Changes README
110 rm -rf $RPM_BUILD_ROOT
113 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
116 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
120 %defattr(644,root,root,755)
122 %attr(755, root, root) %{_bindir}/*
123 %{_libdir}/%{name}/caml
124 %{_libdir}/%{name}/labltk
125 %{_libdir}/%{name}/threads
126 %{_libdir}/%{name}/*.*
127 %attr(755,root,root) %{_libdir}/%{name}/expunge
128 %attr(755,root,root) %{_libdir}/%{name}/extract_crc
129 %attr(755,root,root) %{_libdir}/%{name}/camlheader
130 %attr(755,root,root) %{_libdir}/%{name}/camlheader_ur
135 %defattr(644,root,root,755)
136 %{_libdir}/emacs/site-lisp/*.el