3 %bcond_without ocaml_opt # native optimized binaries (bytecode is always built)
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
7 %undefine with_ocaml_opt
10 Summary: S-expression parsing library
11 Summary(pl.UTF-8): Biblioteka analizująca S-wyrażenia
17 #Source0Download: https://github.com/janestreet/parsexp/tags
18 Source0: https://github.com/janestreet/parsexp/archive/v%{version}/parsexp-%{version}.tar.gz
19 # Source0-md5: e6659d53f4d94de8979e05d17222b753
20 URL: https://github.com/janestreet/parsexp
21 BuildRequires: ocaml >= 1:4.04.2
22 BuildRequires: ocaml-base-devel >= 0.14
23 BuildRequires: ocaml-base-devel < 0.15
24 BuildRequires: ocaml-dune >= 2.0.0
25 BuildRequires: ocaml-sexplib0-devel >= 0.14
26 BuildRequires: ocaml-sexplib0-devel < 0.15
27 %requires_eq ocaml-runtime
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define debug_package %{nil}
33 This library provides generic parsers for parsing S-expressions from
34 strings or other medium.
36 This package contains files needed to run bytecode executables using
39 %description -l pl.UTF-8
40 Ta biblioteka zapewnia ogólne parsery do analizy S-wyrażeń z łańcuchów
43 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
44 używających biblioteki parsexp.
47 Summary: S-expression parsing library - development part
48 Summary(pl.UTF-8): Biblioteka analizująca S-wyrażenia - część programistyczna
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
52 Requires: ocaml-base-devel >= 0.14
53 Requires: ocaml-sexplib0-devel >= 0.14
56 This package contains files needed to develop OCaml programs using
59 %description devel -l pl.UTF-8
60 Pakiet ten zawiera pliki niezbędne do tworzenia programów w OCamlu
61 używających biblioteki parsexp.
64 %setup -q -n parsexp-%{version}
70 rm -rf $RPM_BUILD_ROOT
72 dune install --destdir=$RPM_BUILD_ROOT
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/parsexp/*.ml
77 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/parsexp
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %doc CHANGES.md LICENSE.md README.org
85 %dir %{_libdir}/ocaml/parsexp
86 %{_libdir}/ocaml/parsexp/META
87 %{_libdir}/ocaml/parsexp/*.cma
89 %attr(755,root,root) %{_libdir}/ocaml/parsexp/*.cmxs
93 %defattr(644,root,root,755)
94 %{_libdir}/ocaml/parsexp/*.cmi
95 %{_libdir}/ocaml/parsexp/*.cmt
96 %{_libdir}/ocaml/parsexp/*.cmti
97 %{_libdir}/ocaml/parsexp/*.mli
99 %{_libdir}/ocaml/parsexp/parsexp.a
100 %{_libdir}/ocaml/parsexp/*.cmx
101 %{_libdir}/ocaml/parsexp/*.cmxa
103 %{_libdir}/ocaml/parsexp/dune-package
104 %{_libdir}/ocaml/parsexp/opam