/[packages]/cauldron/ocaml-async_kernel/current/SPECS/ocaml-async_kernel.spec
ViewVC logotype

Contents of /cauldron/ocaml-async_kernel/current/SPECS/ocaml-async_kernel.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1519936 - (show annotations) (download)
Fri Feb 14 13:39:55 2020 UTC (4 years, 2 months ago) by umeabot
File size: 2051 byte(s)
Mageia 8 Mass Rebuild
1 %define oname async_kernel
2
3 Name: ocaml-%{oname}
4 Epoch: 1
5 Version: 0.11.1
6 Release: %mkrel 2
7 Summary: Jane Street Capital's asynchronous execution library
8
9 Group: Development/OCaml
10 License: ASL 2.0
11 URL: https://github.com/janestreet/%{oname}
12 Source0: https://github.com/janestreet/%{oname}/archive/v%{version}.tar.gz
13
14 BuildRequires: jbuilder
15 BuildRequires: ocaml-compiler
16 BuildRequires: ocaml-findlib
17 BuildRequires: opam
18 BuildRequires: ocaml-result-devel
19
20 BuildRequires: ocaml-core_kernel >= 0.11
21 BuildRequires: ocaml-ppx_jane >= 1:0.11
22 BuildRequires: ocaml-ocaml-migrate-parsetree >= 1.0
23 BuildRequires: ocaml-ppxlib >= 0.1.0
24
25 %description
26 Monadic concurrency library
27
28 Part of Jane Street's Core library
29 The Core suite of libraries is an industrial strength alternative to
30 OCaml's standard library that was developed by Jane Street, the
31 largest industrial user of OCaml.
32
33
34 %package devel
35 Summary: Development files for %{name}
36 Group: Development/OCaml
37 Requires: %{name} = %{epoch}:%{version}-%{release}
38
39 %description devel
40 The %{name}-devel package contains libraries and signature files for
41 developing applications that use %{name}.
42
43 %prep
44 %setup -q -n %{oname}-%{version}
45
46 %build
47 jbuilder build --verbose -p %{oname} %_smp_mflags
48
49 %install
50 opam-installer --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml %{oname}.install
51 rm -rf %buildroot/usr/doc
52
53 # Makes *.cmxs executable such that they will be stripped.
54 find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
55
56 %check
57 jbuilder runtest
58
59 %files
60 %license LICENSE.txt
61 %dir %{_libdir}/ocaml/%{oname}
62 %{_libdir}/ocaml/%{oname}/META
63 %{_libdir}/ocaml/%{oname}/*.dune
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}/*.cmx
74 %{_libdir}/ocaml/%{oname}/*.ml*

  ViewVC Help
Powered by ViewVC 1.1.30