1 |
%define _enable_debug_packages %{nil} |
2 |
%define debug_package %{nil} |
3 |
|
4 |
%define oname ppx_compare |
5 |
|
6 |
Name: ocaml-%{oname} |
7 |
Epoch: 1 |
8 |
Version: 0.10.0 |
9 |
Release: %mkrel 1 |
10 |
Summary: Generation of comparison functions from types |
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-base >= 0.10 |
22 |
BuildRequires: ocaml-ppx_core >= 1:0.10 |
23 |
BuildRequires: ocaml-ppx_driver >= 1:0.10 |
24 |
BuildRequires: ocaml-ppx_metaquot >= 0.10 |
25 |
BuildRequires: ocaml-ppx_type_conv >= 1:0.10 |
26 |
BuildRequires: ocaml-migrate-parsetree >= 0.4 |
27 |
|
28 |
%description |
29 |
Generation of comparison functions from types |
30 |
|
31 |
%package devel |
32 |
Summary: Development files for %{name} |
33 |
Group: Development/OCaml |
34 |
Requires: %{name} = %{epoch}:%{version}-%{release} |
35 |
|
36 |
%description devel |
37 |
The %{name}-devel package contains libraries and signature files for |
38 |
developing applications that use %{name}. |
39 |
|
40 |
%prep |
41 |
%setup -q -n %{oname}-%{version} |
42 |
|
43 |
%build |
44 |
jbuilder build --verbose -p %{oname} %_smp_mflags |
45 |
|
46 |
%install |
47 |
opam-installer --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml %{oname}.install |
48 |
rm -rf %buildroot/usr/doc |
49 |
|
50 |
%check |
51 |
jbuilder runtest |
52 |
|
53 |
%files |
54 |
%license LICENSE.txt |
55 |
%doc README.md CHANGES.md |
56 |
%dir %{_libdir}/ocaml/%{oname} |
57 |
%{_libdir}/ocaml/%{oname}/META |
58 |
%{_libdir}/ocaml/%{oname}/*.cmi |
59 |
%{_libdir}/ocaml/%{oname}/*.cma |
60 |
%{_libdir}/ocaml/%{oname}/*.a |
61 |
%{_libdir}/ocaml/%{oname}/*.cmxa |
62 |
%{_libdir}/ocaml/%{oname}/*.cmxs |
63 |
%dir %{_libdir}/ocaml/%{oname}/*/ |
64 |
%{_libdir}/ocaml/%{oname}/*/*.cmi |
65 |
%{_libdir}/ocaml/%{oname}/*/*.cma |
66 |
%{_libdir}/ocaml/%{oname}/*/*.a |
67 |
%{_libdir}/ocaml/%{oname}/*/*.cmxa |
68 |
%{_libdir}/ocaml/%{oname}/*/*.cmxs |
69 |
|
70 |
%files devel |
71 |
%{_libdir}/ocaml/%{oname}/opam |
72 |
%{_libdir}/ocaml/%{oname}/*.cmt |
73 |
%{_libdir}/ocaml/%{oname}/*.cmti |
74 |
%{_libdir}/ocaml/%{oname}/*.cmx |
75 |
%{_libdir}/ocaml/%{oname}/*.mli |
76 |
%{_libdir}/ocaml/%{oname}/*/*.cmt |
77 |
%{_libdir}/ocaml/%{oname}/*/*.cmti |
78 |
%{_libdir}/ocaml/%{oname}/*/*.cmx |
79 |
%{_libdir}/ocaml/%{oname}/*/*.ml |
80 |
%{_libdir}/ocaml/%{oname}/*/*.mli |