]> git.pld-linux.org Git - packages/ocaml-ppx_sexp_value.git/blame - ocaml-ppx_sexp_value.spec
- typo
[packages/ocaml-ppx_sexp_value.git] / ocaml-ppx_sexp_value.spec
CommitLineData
a90b4fe0
JB
1#
2# Conditional build:
3%bcond_without ocaml_opt # native optimized binaries (bytecode is always built)
4
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
8%endif
9
10Summary: A ppx rewriter that simplifies building S-expressions from OCaml values
11Summary(pl.UTF-8): Moduł przepisujący ppx upraszczający budowanie S-wyrażeń z wartości w OCamlu
12Name: ocaml-ppx_sexp_value
13Version: 0.14.0
14Release: 1
15License: MIT
16Group: Libraries
17#Source0Download: https://github.com/janestreet/ppx_sexp_value/tags
18Source0: https://github.com/janestreet/ppx_sexp_value/archive/v%{version}/ppx_sexp_value-%{version}.tar.gz
19# Source0-md5: ef47fa8e25308e645552ad7bf5c06d28
20URL: https://github.com/janestreet/ppx_sexp_value
21BuildRequires: ocaml >= 1:4.04.2
22BuildRequires: ocaml-base-devel >= 0.14
23BuildRequires: ocaml-base-devel < 0.15
24BuildRequires: ocaml-dune >= 2.0.0
25BuildRequires: ocaml-ppx_here-devel >= 0.14
26BuildRequires: ocaml-ppx_here-devel < 0.15
27BuildRequires: ocaml-ppx_sexp_conv-devel >= 0.14
28BuildRequires: ocaml-ppx_sexp_conv-devel < 0.15
29BuildRequires: ocaml-ppxlib-devel >= 0.11.0
30%requires_eq ocaml-runtime
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%define debug_package %{nil}
34
35%description
36A ppx rewriter that simplifies building S-expressions from OCaml
37values.
38
39This package contains files needed to run bytecode executables using
40ppx_sexp_value library.
41
42%description -l pl.UTF-8
43Moduł przepisujący ppx upraszczający budowanie S-wyrażeń z wartości w
44OCamlu.
45
46Pakiet ten zawiera binaria potrzebne do uruchamiania programów
47używających biblioteki ppx_sexp_value.
48
49%package devel
50Summary: A ppx rewriter that simplifies building S-expressions from OCaml values - development part
4c6e0860 51Summary(pl.UTF-8): Moduł przepisujący ppx upraszczający budowanie S-wyrażeń z wartości w OCamlu - część programistyczna
a90b4fe0
JB
52Group: Development/Libraries
53Requires: %{name} = %{version}-%{release}
54%requires_eq ocaml
55Requires: ocaml-base-devel >= 0.14
56Requires: ocaml-ppx_here-devel >= 0.14
57Requires: ocaml-ppx_sexp_conv-devel >= 0.14
58Requires: ocaml-ppxlib-devel >= 0.11.0
59
60%description devel
61This package contains files needed to develop OCaml programs using
62ppx_sexp_value library.
63
64%description devel -l pl.UTF-8
65Pakiet ten zawiera pliki niezbędne do tworzenia programów w OCamlu
66używających biblioteki ppx_sexp_value.
67
68%prep
69%setup -q -n ppx_sexp_value-%{version}
70
71%build
72dune build --verbose
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
77dune install --destdir=$RPM_BUILD_ROOT
78
79# sources
80%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/ppx_sexp_value/*.ml
81# packaged as %doc
82%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/ppx_sexp_value
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%files
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
94%if %{with ocaml_opt}
95%attr(755,root,root) %{_libdir}/ocaml/ppx_sexp_value/*.cmxs
96%endif
97
98%files devel
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
108%endif
109%{_libdir}/ocaml/ppx_sexp_value/dune-package
110%{_libdir}/ocaml/ppx_sexp_value/opam
This page took 0.064426 seconds and 4 git commands to generate.