]> git.pld-linux.org Git - packages/camlp5.git/blame - camlp5.spec
- replaced ocaml-4.02.2 patch by real ocaml 4.02.2 support from camlp5 git
[packages/camlp5.git] / camlp5.spec
CommitLineData
170a6c18
JR
1Summary: Objective Caml Preprocessor
2Summary(pl.UTF-8): Preprocesor OCamla
3Name: camlp5
62e5c235 4Version: 6.12
1aebc93e 5Release: 2
170a6c18
JR
6License: distributable
7Group: Development/Languages
8Source0: http://pauillac.inria.fr/~ddr/camlp5/distrib/src/%{name}-%{version}.tgz
62e5c235 9# Source0-md5: d49d30b62396b7285f3d609ac90c3fe5
f95747ae
JR
10#Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-%{version}.pdf
11Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-6.00.pdf
12# Source1-md5: b241eabfeb48f22b0fbd3e497198a76a
07f7ea50 13Patch0: ocaml-4.02.2.patch
170a6c18
JR
14URL: http://caml.inria.fr/
15BuildRequires: db-devel >= 4.1
f95747ae 16BuildRequires: ocaml
62e5c235 17%requires_eq ocaml-runtime
170a6c18
JR
18Requires: %{name} = %{epoch}:%{version}-%{release}
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
1aebc93e 22Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
170a6c18
JR
23tools for syntax (grammars) and the ability to modify the concrete
24syntax of the language (quotations, syntax extensions).
25
1aebc93e 26Camlp5 can parse normal Ocaml concrete syntax or any other
170a6c18
JR
27user-definable syntax. As an example, an alternative syntax is
28provided, named revised, because it tries to fix some small problems
29of the normal syntax.
30
1aebc93e 31Camlp5 can pretty print the normal Ocaml concrete syntax or the
170a6c18
JR
32revised one. It is therefore always possible to have a version of your
33sources compilable by the Objective Caml compiler without
34preprocessing.
35
36%description -l pl.UTF-8
1aebc93e 37Camlp5 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania
170a6c18
JR
38składnią (gramatyki) oraz możliwość modyfikowania oryginalnej składni
39języka (cytowania, rozszerzenia).
40
1aebc93e 41Camlp5 może sparsować oryginalną składnię Ocamla lub dowolną inną
170a6c18
JR
42definiowalną przez użytkownika. Jako przykład podana jest alternatywna
43składnia (revised syntax), która próbuje poprawić drobne problemy
44występujące w składni oryginalnej.
45
1aebc93e 46Camlp5 umie ładnie formatować źródła zarówno w oryginalnej jak i
170a6c18
JR
47poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej
48składni na drugą.
49
50%package doc-html
51Summary: Objective Caml Preprocessor - HTML documentation
52Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML
53Group: Development/Languages
54
55%description doc-html
56Objective Caml Preprocessor - HTML documentation.
57
58%description doc-html -l pl.UTF-8
59Preprocesor OCamla - dokumentacja HTML.
60
61%prep
62%setup -q
1aebc93e
JB
63%patch0 -p1
64
6b574e5a 65cp %{SOURCE1} doc/camlp4.pdf
170a6c18 66
1aebc93e
JB
67#cp ocaml_src/lib/versdep/4.02.{1,2}.ml
68#cp -a ocaml_stuff/4.02.{1,2}
6831d506 69
170a6c18 70%build
170a6c18 71./configure \
170a6c18 72 -bindir %{_bindir} \
6b574e5a 73 -libdir %{_libdir}/ocaml \
170a6c18 74 -mandir %{_mandir}/man1 \
6b574e5a 75 -transitional
170a6c18 76
6b574e5a
JR
77%{__make} -j1 world.opt
78%{__make} -j1 -C doc/htmlp
170a6c18
JR
79
80%install
81rm -rf $RPM_BUILD_ROOT
170a6c18
JR
82
83%{__make} install \
84 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
6b574e5a 85 LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
170a6c18
JR
86 MANDIR=$RPM_BUILD_ROOT%{_mandir}
87
170a6c18 88# broken build system
6b574e5a
JR
89for f in camlp5o.opt.1 camlp5r.opt.1 mkcamlp5.1 ocpp5.1 \
90 camlp5o.1 camlp5r.1 camlp5sch.1 mkcamlp5.opt.1 ; do
91 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/$f
92 echo '.so camlp5.1' >$RPM_BUILD_ROOT%{_mandir}/man1/$f
170a6c18
JR
93done
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%files
99%defattr(644,root,root,755)
fd602860 100%doc CHANGES DEVEL ICHANGES MODE README UPGRADING doc/camlp4.pdf
1aebc93e
JB
101%attr(755,root,root) %{_bindir}/camlp5*
102%attr(755,root,root) %{_bindir}/mkcamlp5*
103%attr(755,root,root) %{_bindir}/ocpp5
6b574e5a 104%{_libdir}/ocaml/%{name}
1aebc93e
JB
105%{_mandir}/man1/camlp5*.1*
106%{_mandir}/man1/mkcamlp5*.1*
107%{_mandir}/man1/ocpp5.1*
170a6c18
JR
108
109%files doc-html
110%defattr(644,root,root,755)
6b574e5a 111%doc doc/html/*
This page took 0.09397 seconds and 4 git commands to generate.