/[packages]/cauldron/camlmix/current/SPECS/camlmix.spec
ViewVC logotype

Annotation of /cauldron/camlmix/current/SPECS/camlmix.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2180060 - (hide annotations) (download)
Tue Apr 29 21:38:49 2025 UTC (2 months, 2 weeks ago) by pterjan
File size: 1282 byte(s)
Fix build with OCaml 5
1 pterjan 2180060 %ifnarch %{ocaml_native_compiler}
2     %global debug_package %{nil}
3     %endif
4    
5 blue_prawn 262994 Name: camlmix
6 blue_prawn 484886 Version: 1.3.1
7 pterjan 2180060 Release: %mkrel 14
8 blue_prawn 262994 Summary: A generic preprocessor for text with embedded OCaml
9     License: BSD
10 blue_prawn 300501 Group: Development/OCaml
11 danf 1937722 URL: https://github.com/mjambon/camlmix
12     Source0: https://github.com/mjambon/camlmix/archive/refs/tags/v%{version}.tar.gz#/camlmix-%{version}.tar.gz
13 daviddavid 1160046 Patch0: camlmix-1.3.1-enable-debugging-information.patch
14 pterjan 2180060 # Debian patch to make use of camlp-streams
15     Patch1: 0002-Add-dependency-to-camlp-streams.patch
16 malo 275537 BuildRequires: ocaml-compiler
17 pterjan 2180060 BuildRequires: ocaml-camlp-streams-devel
18     BuildRequires: ocaml-findlib
19 malo 275537 # for architectures without native code compilation we will need
20     # Requires: ocaml-compiler
21 malo 208299
22     %description
23 blue_prawn 262994 Camlmix is a generic preprocessor which converts text with embedded OCaml
24     into an OCaml program with embedded text. It produces text documents from
25     one or several templates.
26 malo 208299
27 blue_prawn 262994 (Camlmix is not a Camlp4 syntax extension.)
28    
29 malo 208299 %prep
30     %setup -q
31 daviddavid 1160046 %autopatch -p1
32 malo 208299
33     %build
34 pterjan 2180060 %ifarch %{ocaml_native_compiler}
35     make native
36     %else
37     make byte
38     %endif
39 malo 208299
40 pterjan 2180060
41 malo 208299 %install
42     mkdir -p %{buildroot}%{_bindir}
43 blue_prawn 262994 make install PREFIX=%{buildroot}/usr
44 malo 208299
45     %files
46 blue_prawn 484886 %doc LICENSE README.md
47 blue_prawn 262994 %doc examples/
48     %{_bindir}/camlmix

  ViewVC Help
Powered by ViewVC 1.1.30