1 Summary: Objective Caml Preprocessor
2 Summary(pl.UTF-8): Preprocesor OCamla
7 Group: Development/Languages
8 Source0: http://pauillac.inria.fr/~ddr/camlp5/distrib/src/%{name}-%{version}.tgz
9 # Source0-md5: b495bf26355451186c6725ee01add0da
10 #Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-%{version}.pdf
11 Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-6.00.pdf
12 # Source1-md5: b241eabfeb48f22b0fbd3e497198a76a
13 URL: http://caml.inria.fr/
14 BuildRequires: db-devel >= 4.1
16 Requires: %{name} = %{epoch}:%{version}-%{release}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
21 tools for syntax (grammars) and the ability to modify the concrete
22 syntax of the language (quotations, syntax extensions).
24 Camlp4 can parse normal Ocaml concrete syntax or any other
25 user-definable syntax. As an example, an alternative syntax is
26 provided, named revised, because it tries to fix some small problems
29 Camlp4 can pretty print the normal Ocaml concrete syntax or the
30 revised one. It is therefore always possible to have a version of your
31 sources compilable by the Objective Caml compiler without
34 %description -l pl.UTF-8
35 Camlp4 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania
36 składnią (gramatyki) oraz możliwość modyfikowania oryginalnej składni
37 języka (cytowania, rozszerzenia).
39 Camlp4 może sparsować oryginalną składnię Ocamla lub dowolną inną
40 definiowalną przez użytkownika. Jako przykład podana jest alternatywna
41 składnia (revised syntax), która próbuje poprawić drobne problemy
42 występujące w składni oryginalnej.
44 Camlp4 umie ładnie formatować źródła zarówno w oryginalnej jak i
45 poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej
49 Summary: Objective Caml Preprocessor - HTML documentation
50 Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML
51 Group: Development/Languages
54 Objective Caml Preprocessor - HTML documentation.
56 %description doc-html -l pl.UTF-8
57 Preprocesor OCamla - dokumentacja HTML.
61 cp %{SOURCE1} doc/camlp4.pdf
66 -libdir %{_libdir}/ocaml \
67 -mandir %{_mandir}/man1 \
70 %{__make} -j1 world.opt
71 %{__make} -j1 -C doc/htmlp
74 rm -rf $RPM_BUILD_ROOT
77 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
78 LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
79 MANDIR=$RPM_BUILD_ROOT%{_mandir}
82 for f in camlp5o.opt.1 camlp5r.opt.1 mkcamlp5.1 ocpp5.1 \
83 camlp5o.1 camlp5r.1 camlp5sch.1 mkcamlp5.opt.1 ; do
84 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/$f
85 echo '.so camlp5.1' >$RPM_BUILD_ROOT%{_mandir}/man1/$f
89 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc CHANGES DEVEL ICHANGES MODE README UPGRADING doc/camlp4.pdf
94 %attr(755,root,root) %{_bindir}/*
95 %{_libdir}/ocaml/%{name}
99 %defattr(644,root,root,755)