]> git.pld-linux.org Git - packages/ocaml-camlp4.git/blame - ocaml-camlp4.spec
- disable parallel make
[packages/ocaml-camlp4.git] / ocaml-camlp4.spec
CommitLineData
1ddc1ab2
JB
1#
2# Conditional build:
3%bcond_without opt # build opt
4
5%define main_ver 4.02.1
6%define subver 1
7
8%define doc_ver 3.06
9
4951a3ea
JR
10%ifarch x32
11%undefine with_opt
12%endif
13
1ddc1ab2
JB
14%define module camlp4
15Summary: Objective Caml Preprocessor
16Summary(pl.UTF-8): Preprocesor OCamla
17Name: ocaml-camlp4
18Version: %{main_ver}.%{subver}
4951a3ea 19Release: 2
1ddc1ab2
JB
20Epoch: 1
21License: LGPL v2 with linking exception
22Group: Libraries
23Source0: https://github.com/ocaml/camlp4/archive/%{main_ver}+%{subver}/camlp4-%{version}.tar.gz
24# Source0-md5: 8c19bcca52b92a5496dcbcbb931a988b
25# following 4 URLs are dead, some version now available at http://pauillac.inria.fr/camlp4/
26Source1: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{doc_ver}-manual.html.tar.gz
27# Source1-md5: 21370bae4e7f6435b38aeb21db7ce8bb
28Source2: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{doc_ver}-manual.dvi.gz
29# Source2-md5: 035915d1a530aa7ec9b194d9a7d258eb
30Source3: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{doc_ver}-tutorial.html.tar.gz
31# Source3-md5: 96d8eb4ca5abd58c9a280ba59f73b192
32Source4: ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/camlp4-%{doc_ver}-tutorial.dvi.gz
33# Source4-md5: fcd87c235109364242a0c9ccf176dff8
34URL: https://github.com/ocaml/camlp4
35BuildRequires: ocaml >= 1:4.02
36%requires_eq ocaml-runtime
37Provides: camlp4 = %{epoch}:%{version}-%{release}
38Obsoletes: camlp4
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%define debug_package %{nil}
42
43%description
44Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
45tools for syntax (grammars) and the ability to modify the concrete
46syntax of the language (quotations, syntax extensions).
47
48Camlp4 can parse normal Ocaml concrete syntax or any other
49user-definable syntax. As an example, an alternative syntax is
50provided, named revised, because it tries to fix some small problems
51of the normal syntax.
52
53Camlp4 can pretty print the normal Ocaml concrete syntax or the
54revised one. It is therefore always possible to have a version of your
55sources compilable by the Objective Caml compiler without
56preprocessing.
57
58%description -l pl.UTF-8
59Camlp4 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania
60składnią (gramatyki) oraz możliwość modyfikowania oryginalnej składni
61języka (cytowania, rozszerzenia).
62
63Camlp4 potrafi analizować oryginalną składnię Ocamla lub dowolną inną
64definiowalną przez użytkownika. Jako przykład podana jest alternatywna
65składnia (revised syntax), która próbuje poprawić drobne problemy
66występujące w składni oryginalnej.
67
68Camlp4 umie ładnie formatować źródła zarówno w oryginalnej jak i
69poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej
70składni na drugą.
71
72%package doc-html
73Summary: Objective Caml Preprocessor - HTML documentation
74Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML
75Group: Documentation
76
77%description doc-html
78Objective Caml Preprocessor - HTML documentation.
79
80%description doc-html -l pl.UTF-8
81Preprocesor OCamla - dokumentacja HTML.
82
83%prep
84%setup -q -n camlp4-%{main_ver}-%{subver} -a1 -a3
85
86mkdir -p docs/html
87mv camlp4-%{doc_ver}-manual.html docs/html/camlp4
88cp %{SOURCE2} docs/camlp4.ps.gz
89mv camlp4-%{doc_ver}-tutorial.html docs/html/camlp4-tutorial
90cp %{SOURCE4} docs/camlp4-tutorial.ps.gz
91
92%build
93./configure
94
2c71b521 95%{__make} -j1 %{?with_opt:all}
1ddc1ab2
JB
96
97%install
98rm -rf $RPM_BUILD_ROOT
99
2c71b521 100%{__make} -j1 install \
1ddc1ab2
JB
101 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
102 LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%files
108%defattr(644,root,root,755)
109%doc CHANGES.md LICENSE README.md
110%attr(755,root,root) %{_bindir}/camlp4*
111%attr(755,root,root) %{_bindir}/mkcamlp4
112%{_libdir}/ocaml/camlp4
113
114%files doc-html
115%defattr(644,root,root,755)
116%doc docs/html/camlp4*
This page took 0.114349 seconds and 4 git commands to generate.