1 |
%define _enable_debug_packages %{nil} |
2 |
%define debug_package %{nil} |
3 |
|
4 |
%define oname ppx_type_conv |
5 |
|
6 |
Name: ocaml-%{oname} |
7 |
Epoch: 1 |
8 |
Version: 0.10.0 |
9 |
Release: %mkrel 1 |
10 |
Summary: Support Library for type-driven code generators |
11 |
Group: Development/OCaml |
12 |
License: ASL 2.0 |
13 |
URL: https://github.com/janestreet/%{oname} |
14 |
Source0: https://github.com/janestreet/%{oname}/archive/v%{version}.tar.gz |
15 |
|
16 |
BuildRequires: jbuilder |
17 |
BuildRequires: ocaml-compiler |
18 |
BuildRequires: ocaml-findlib |
19 |
BuildRequires: opam |
20 |
|
21 |
BuildRequires: ocaml-ppx_core >= 1:0.10 |
22 |
BuildRequires: ocaml-ppx_derivers |
23 |
BuildRequires: ocaml-ppx_driver >= 1:0.10 |
24 |
BuildRequires: ocaml-ppx_metaquot >= 0.10 |
25 |
BuildRequires: ocaml-migrate-parsetree >= 0.4 |
26 |
|
27 |
%description |
28 |
Support Library for type-driven code generators |
29 |
|
30 |
%package devel |
31 |
Summary: Development files for %{name} |
32 |
Group: Development/OCaml |
33 |
Requires: %{name} = %{epoch}:%{version}-%{release} |
34 |
|
35 |
%description devel |
36 |
The %{name}-devel package contains libraries and signature files for |
37 |
developing applications that use %{name}. |
38 |
|
39 |
%prep |
40 |
%setup -q -n %{oname}-%{version} |
41 |
|
42 |
%build |
43 |
jbuilder build --verbose -p %{oname} %_smp_mflags |
44 |
|
45 |
%install |
46 |
opam-installer --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml %{oname}.install |
47 |
rm -rf %buildroot/usr/doc |
48 |
|
49 |
%check |
50 |
jbuilder runtest |
51 |
|
52 |
%files |
53 |
%license LICENSE.txt |
54 |
%doc README.md CHANGES.md |
55 |
%dir %{_libdir}/ocaml/%{oname} |
56 |
%{_libdir}/ocaml/%{oname}/META |
57 |
%{_libdir}/ocaml/%{oname}/*.cmi |
58 |
%{_libdir}/ocaml/%{oname}/*.cma |
59 |
%{_libdir}/ocaml/%{oname}/*.a |
60 |
%{_libdir}/ocaml/%{oname}/*.cmxa |
61 |
%{_libdir}/ocaml/%{oname}/*.cmxs |
62 |
|
63 |
%files devel |
64 |
%{_libdir}/ocaml/%{oname}/opam |
65 |
%{_libdir}/ocaml/%{oname}/*.cmt |
66 |
%{_libdir}/ocaml/%{oname}/*.cmti |
67 |
%{_libdir}/ocaml/%{oname}/*.cmx |
68 |
%{_libdir}/ocaml/%{oname}/*.ml |
69 |
%{_libdir}/ocaml/%{oname}/*.ml-gen |
70 |
%{_libdir}/ocaml/%{oname}/*.mli |