/[packages]/cauldron/ocaml-rope/current/SPECS/ocaml-rope.spec
ViewVC logotype

Contents of /cauldron/ocaml-rope/current/SPECS/ocaml-rope.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1915807 - (show annotations) (download)
Sat Dec 3 01:54:18 2022 UTC (2 years, 1 month ago) by danf
File size: 1786 byte(s)
SILENT: Switch URLs to https:
1 Name: ocaml-rope
2 Version: 0.5
3 Release: %mkrel 6
4 Summary: Ropes ("heavyweight strings")
5 License: LGPL-2.1 with OCaml linking exception
6 Group: Development/OCaml
7 URL: http://rope.forge.ocamlcore.org/
8 Source0: https://download.ocamlcore.org/rope/rope/%{version}/rope-%{version}.tar.gz
9 BuildRequires: ocaml-findlib
10 BuildRequires: ocaml-benchmark-devel
11
12 %description
13 Ropes are a scalable string implementation: they are designed for efficient
14 operation that involve the string as a whole such as concatenation and
15 substring. This library implements ropes for OCaml (it is rich enough to
16 replace strings).
17
18 %package devel
19 Summary: Development files for %{name}
20 Group: Development/OCaml
21 Requires: %{name} = %{version}-%{release}
22
23 %description devel
24 This package contains the development modules you need to use %{name} in
25 your programs.
26
27 %prep
28 %setup -q -n rope-%{version}
29
30 %build
31 ocaml setup.ml -configure \
32 --prefix %{_prefix} \
33 --libdir %{_libdir} \
34 --libexecdir %{_libexecdir} \
35 --exec-prefix %{_exec_prefix} \
36 --bindir %{_bindir} \
37 --sbindir %{_sbindir} \
38 --mandir %{_mandir} \
39 --datadir %{_datadir} \
40 --localstatedir %{_localstatedir} \
41 --docdir %{_docdir}/%{name}-devel/ \
42 --destdir %{buildroot}
43
44 make
45 make doc
46
47 %install
48 export DESTDIR=%{buildroot}
49 export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
50 mkdir -p $OCAMLFIND_DESTDIR/rope
51 make install
52
53 %files
54 %doc README.txt LICENSE AUTHORS.txt
55 %dir %{_libdir}/ocaml/rope
56 %{_libdir}/ocaml/rope/META
57 %{_libdir}/ocaml/rope/*.cmi
58 %{_libdir}/ocaml/rope/*.cma
59 %{_libdir}/ocaml/rope/*.cmxs
60
61 %files devel
62 %doc bench/
63 %{_docdir}/%{name}-devel
64 %{_libdir}/ocaml/rope/*.a
65 %{_libdir}/ocaml/rope/*.cmxa
66 %{_libdir}/ocaml/rope/*.cmx
67 %{_libdir}/ocaml/rope/*.mli

  ViewVC Help
Powered by ViewVC 1.1.30