]>
Commit | Line | Data |
---|---|---|
99ac37b6 JR |
1 | # |
2 | # Conditional build: | |
e5594bbe | 3 | %bcond_without ocaml_opt # native optimized binaries (bytecode is always built) |
99ac37b6 | 4 | |
e5594bbe JB |
5 | # not yet available on x32 (ocaml 4.02.1), update when upstream will support it |
6 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 | |
99ac37b6 JR |
7 | %undefine with_ocaml_opt |
8 | %endif | |
9 | ||
2cade4ab | 10 | Summary: Lexer generator for Unicode and OCaml |
371fa7e8 | 11 | Summary(pl.UTF-8): Lexer dla OCamla i Unicode |
2cade4ab | 12 | Name: ocaml-ulex |
d62b9b48 | 13 | Version: 1.1 |
e5594bbe | 14 | Release: 6 |
2cade4ab JR |
15 | License: MIT |
16 | Group: Development/Tools | |
17 | Source0: http://www.cduce.org/download/ulex-%{version}.tar.gz | |
d62b9b48 | 18 | # Source0-md5: ce49a013bc4a0e085977a9fe157017bf |
e5594bbe JB |
19 | Patch0: %{name}-fix-bytes.patch |
20 | URL: http://www.cduce.org/ulex/ | |
21 | BuildRequires: ocaml >= 1:3.10.0 | |
2cade4ab | 22 | BuildRequires: ocaml-findlib-devel |
4ca31c7e | 23 | %requires_eq ocaml-runtime |
2cade4ab JR |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
bd9b453d | 27 | ulex is a lexer generator for Unicode and OCaml. |
2cade4ab | 28 | |
dd8750b8 | 29 | %description -l pl.UTF-8 |
bd9b453d | 30 | ulex jest lexerem dla OCamla i Unicode. |
2cade4ab JR |
31 | |
32 | %prep | |
33 | %setup -q -n ulex-%{version} | |
e5594bbe | 34 | %patch0 -p1 |
2cade4ab JR |
35 | |
36 | %build | |
e5594bbe | 37 | %{__make} -j1 all %{?with_ocaml_opt:all.opt} |
2cade4ab JR |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
a655361c | 41 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ulex |
2cade4ab JR |
42 | |
43 | %{__make} install \ | |
44 | OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
e5594bbe | 51 | %doc CHANGES LICENSE README |
2cade4ab | 52 | %dir %{_libdir}/ocaml/ulex |
e5594bbe | 53 | %{_libdir}/ocaml/ulex/META |
99ac37b6 | 54 | %{_libdir}/ocaml/ulex/*.cma |
e5594bbe | 55 | %{_libdir}/ocaml/ulex/*.cmi |
99ac37b6 | 56 | %if %{with ocaml_opt} |
4ca31c7e | 57 | %{_libdir}/ocaml/ulex/ulexing.a |
e5594bbe | 58 | %{_libdir}/ocaml/ulex/*.cmx |
99ac37b6 JR |
59 | %{_libdir}/ocaml/ulex/*.cmxa |
60 | %endif | |
4ca31c7e JR |
61 | %{_libdir}/ocaml/ulex/ulexing.mli |
62 | %{_libdir}/ocaml/ulex/utf8.mli |