]>
Commit | Line | Data |
---|---|---|
344107f5 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) | |
4 | ||
61475ba8 | 5 | # not yet available on x32 (ocaml 4.02.1), update when upstream will support it |
efeeaf0e | 6 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 |
344107f5 JR |
7 | %undefine with_ocaml_opt |
8 | %endif | |
9 | ||
25d8f314 JR |
10 | %define _enable_debug_packages 0 |
11 | ||
5142b5dc JB |
12 | Summary: Camomile - comprehensive Unicode library for OCaml |
13 | Summary(pl.UTF-8): Camomile - obszerna biblioteka unikodowa dla OCamla | |
14 | Name: ocaml-camomile | |
4df8a93b JR |
15 | Version: 1.0.2 |
16 | Release: 0.1 | |
5142b5dc JB |
17 | License: LGPL v2+ with linking exception |
18 | Group: Libraries | |
4df8a93b JR |
19 | Source0: https://github.com/yoriyuki/Camomile/releases/download/%{version}/camomile-%{version}.tbz |
20 | # Source0-md5: 1a193d43a112bf69eba1bc581d7f4a77 | |
efeeaf0e | 21 | URL: https://github.com/yoriyuki/Camomile |
4df8a93b | 22 | BuildRequires: ocaml >= 1:4.02.3 |
5142b5dc | 23 | BuildRequires: ocaml-camlp4 |
4df8a93b | 24 | BuildRequires: ocaml-dune |
5142b5dc JB |
25 | %requires_eq ocaml-runtime |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Camomile is a comprehensive Unicode library for OCaml. Camomile | |
30 | provides Unicode character type, UTF-8, UTF-16, UTF-32 strings, | |
31 | conversion to/from about 200 encodings, collation and locale-sensitive | |
32 | case mappings, and more. | |
33 | ||
34 | This package contains database files needed to run executables using | |
35 | Camomile library. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Camomilw to obszerna biblioteka unikodowa dla OCamla. Camomile | |
39 | udostępnia typ znaku unikodowego, łańcuchy UTF-8, UTF-16, UTF-32, | |
40 | konwersję z/do około 200 kodowań, tablice sortowania oraz wielkości | |
41 | liter zależne od lokalizacji itd. | |
42 | ||
43 | Ten pakiet zawiera pliki baz danych potrzebne do uruchamiania | |
44 | programów wykorzystujących bibliotekę Camomile. | |
45 | ||
46 | %package devel | |
47 | Summary: Camomile Unicode library for OCaml - development part | |
48 | Summary(pl.UTF-8): Biblioteka unikodowa Camomile dla OCamla - cześć programistyczna | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
25d8f314 | 51 | %requires_eq ocaml |
5142b5dc JB |
52 | |
53 | %description devel | |
54 | This package contains files needed to develop OCaml programs using | |
55 | Camomile library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pakiet ten zawiera pliki niezbędne do tworzenia programów używających | |
59 | biblioteki Camomile. | |
60 | ||
61 | %prep | |
62 | %setup -q -n camomile-%{version} | |
63 | ||
64 | %build | |
4df8a93b | 65 | dune build --verbose --profile release |
5142b5dc JB |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
5142b5dc | 69 | |
4df8a93b JR |
70 | dune install \ |
71 | --verbose \ | |
72 | --destdir $RPM_BUILD_ROOT | |
5142b5dc JB |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
4df8a93b | 79 | %doc CHANGES.md README.md |
25d8f314 JR |
80 | %dir %{_libdir}/ocaml/camomile |
81 | %{_libdir}/ocaml/camomile/META | |
82 | %dir %{_libdir}/ocaml/camomile/default_config | |
83 | %dir %{_libdir}/ocaml/camomile/dyn | |
84 | %dir %{_libdir}/ocaml/camomile/lib_default | |
85 | %dir %{_libdir}/ocaml/camomile/library | |
86 | %if %{with ocaml_opt} | |
87 | %attr(755,root,root) %{_libdir}/ocaml/camomile/*.cmxs | |
88 | %attr(755,root,root) %{_libdir}/ocaml/camomile/default_config/*.cmxs | |
89 | %attr(755,root,root) %{_libdir}/ocaml/camomile/dyn/*.cmxs | |
90 | %attr(755,root,root) %{_libdir}/ocaml/camomile/lib_default/*.cmxs | |
91 | %attr(755,root,root) %{_libdir}/ocaml/camomile/library/*.cmxs | |
92 | %endif | |
93 | #%{_libdir}/ocaml/camomile/library/ | |
5142b5dc JB |
94 | %{_datadir}/camomile |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
25d8f314 JR |
98 | %{_libdir}/ocaml/camomile/*.cmi |
99 | %{_libdir}/ocaml/camomile/*.cmt | |
100 | %{_libdir}/ocaml/camomile/default_config/*.cmi | |
101 | %{_libdir}/ocaml/camomile/default_config/*.cmt | |
102 | %{_libdir}/ocaml/camomile/dyn/*.cmi | |
103 | %{_libdir}/ocaml/camomile/dyn/*.cmt | |
104 | %{_libdir}/ocaml/camomile/lib_default/*.cmi | |
105 | %{_libdir}/ocaml/camomile/lib_default/*.cmt | |
106 | %{_libdir}/ocaml/camomile/library/*.cmi | |
107 | %{_libdir}/ocaml/camomile/library/*.cmt | |
108 | %{_libdir}/ocaml/camomile/library/*.cmti | |
109 | %{_libdir}/ocaml/camomile/library/*.mli | |
344107f5 | 110 | %if %{with ocaml_opt} |
4df8a93b JR |
111 | %{_libdir}/ocaml/camomile/*.a |
112 | %{_libdir}/ocaml/camomile/*.cmx | |
113 | %{_libdir}/ocaml/camomile/*.cmxa | |
25d8f314 JR |
114 | %{_libdir}/ocaml/camomile/default_config/*.a |
115 | %{_libdir}/ocaml/camomile/default_config/*.cma | |
116 | %{_libdir}/ocaml/camomile/default_config/*.cmx | |
117 | %{_libdir}/ocaml/camomile/default_config/*.cmxa | |
118 | %{_libdir}/ocaml/camomile/dyn/*.a | |
119 | %{_libdir}/ocaml/camomile/dyn/*.cma | |
120 | %{_libdir}/ocaml/camomile/dyn/*.cmx | |
121 | %{_libdir}/ocaml/camomile/dyn/*.cmxa | |
122 | %{_libdir}/ocaml/camomile/lib_default/*.a | |
123 | %{_libdir}/ocaml/camomile/lib_default/*.cma | |
124 | %{_libdir}/ocaml/camomile/lib_default/*.cmx | |
125 | %{_libdir}/ocaml/camomile/lib_default/*.cmxa | |
126 | %{_libdir}/ocaml/camomile/library/*.a | |
127 | %{_libdir}/ocaml/camomile/library/*.cma | |
128 | %{_libdir}/ocaml/camomile/library/*.cmx | |
129 | %{_libdir}/ocaml/camomile/library/*.cmxa | |
701c278d | 130 | %endif |
4df8a93b JR |
131 | %{_libdir}/ocaml/camomile/*.cma |
132 | %{_libdir}/ocaml/camomile/*.cmi | |
25d8f314 JR |
133 | %{_libdir}/ocaml/camomile/dune-package |
134 | %{_libdir}/ocaml/camomile/opam |