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: A ppx rewriter that simplifies building S-expressions from OCaml values
11 Summary(pl.UTF-8): Moduł przepisujący ppx upraszczający budowanie S-wyrażeń z wartości w OCamlu
12 Name: ocaml-ppx_sexp_value
17 #Source0Download: https://github.com/janestreet/ppx_sexp_value/tags
18 Source0: https://github.com/janestreet/ppx_sexp_value/archive/v%{version}/ppx_sexp_value-%{version}.tar.gz
19 # Source0-md5: ef47fa8e25308e645552ad7bf5c06d28
20 URL: https://github.com/janestreet/ppx_sexp_value
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-ppx_here-devel >= 0.14
26 BuildRequires: ocaml-ppx_here-devel < 0.15
27 BuildRequires: ocaml-ppx_sexp_conv-devel >= 0.14
28 BuildRequires: ocaml-ppx_sexp_conv-devel < 0.15
29 BuildRequires: ocaml-ppxlib-devel >= 0.11.0
30 %requires_eq ocaml-runtime
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define debug_package %{nil}
36 A ppx rewriter that simplifies building S-expressions from OCaml
39 This package contains files needed to run bytecode executables using
40 ppx_sexp_value library.
42 %description -l pl.UTF-8
43 Moduł przepisujący ppx upraszczający budowanie S-wyrażeń z wartości w
46 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
47 używających biblioteki ppx_sexp_value.
50 Summary: A ppx rewriter that simplifies building S-expressions from OCaml values - development part
51 Summary(pl.UTF-8): Moduł przepisujący ppx upraszczający budowanie S-wyrażeń z wartości w OCamlu - część programistyczna
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
55 Requires: ocaml-base-devel >= 0.14
56 Requires: ocaml-ppx_here-devel >= 0.14
57 Requires: ocaml-ppx_sexp_conv-devel >= 0.14
58 Requires: ocaml-ppxlib-devel >= 0.11.0
61 This package contains files needed to develop OCaml programs using
62 ppx_sexp_value library.
64 %description devel -l pl.UTF-8
65 Pakiet ten zawiera pliki niezbędne do tworzenia programów w OCamlu
66 używających biblioteki ppx_sexp_value.
69 %setup -q -n ppx_sexp_value-%{version}
75 rm -rf $RPM_BUILD_ROOT
77 dune install --destdir=$RPM_BUILD_ROOT
80 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/ppx_sexp_value/*.ml
82 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/ppx_sexp_value
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %doc CHANGES.md LICENSE.md README.md
90 %dir %{_libdir}/ocaml/ppx_sexp_value
91 %attr(755,root,root) %{_libdir}/ocaml/ppx_sexp_value/ppx.exe
92 %{_libdir}/ocaml/ppx_sexp_value/META
93 %{_libdir}/ocaml/ppx_sexp_value/*.cma
95 %attr(755,root,root) %{_libdir}/ocaml/ppx_sexp_value/*.cmxs
99 %defattr(644,root,root,755)
100 %{_libdir}/ocaml/ppx_sexp_value/*.cmi
101 %{_libdir}/ocaml/ppx_sexp_value/*.cmt
102 %{_libdir}/ocaml/ppx_sexp_value/*.cmti
103 %{_libdir}/ocaml/ppx_sexp_value/*.mli
104 %if %{with ocaml_opt}
105 %{_libdir}/ocaml/ppx_sexp_value/ppx_sexp_value.a
106 %{_libdir}/ocaml/ppx_sexp_value/*.cmx
107 %{_libdir}/ocaml/ppx_sexp_value/*.cmxa
109 %{_libdir}/ocaml/ppx_sexp_value/dune-package
110 %{_libdir}/ocaml/ppx_sexp_value/opam