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