]>
Commit | Line | Data |
---|---|---|
9d7feded 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 | ||
10 | Summary: Jane Street header files | |
11 | Summary(pl.UTF-8): Pliki nagłówkowe Jane Street | |
12 | Name: ocaml-jane-street-headers | |
13 | Version: 0.14.0 | |
14 | Release: 1 | |
15 | License: MIT | |
16 | Group: Libraries | |
17 | #Source0Download: https://github.com/janestreet/jane-street-headers/tags | |
18 | Source0: https://github.com/janestreet/jane-street-headers/archive/v%{version}/jane-street-headers-%{version}.tar.gz | |
19 | # Source0-md5: e9c5476e0748d0f4476ad534a51fc677 | |
20 | URL: https://github.com/janestreet/jane-street-headers | |
21 | BuildRequires: ocaml >= 1:4.04.2 | |
22 | BuildRequires: ocaml-dune >= 2.0.0 | |
23 | %requires_eq ocaml-runtime | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define debug_package %{nil} | |
27 | ||
28 | %description | |
29 | C header files shared between the various Jane Street packages. | |
30 | ||
31 | This package contains files needed to run bytecode executables using | |
32 | jane-street-headers library. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Pliki nagłówkowe C współdzielone między różnymi pakietami Jane Street. | |
36 | ||
37 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów | |
38 | używających biblioteki jane-street-headers. | |
39 | ||
40 | %package devel | |
41 | Summary: Jane Street header files - development part | |
249f68f8 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe Jane Street - część programistyczna |
9d7feded JB |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | %requires_eq ocaml | |
46 | ||
47 | %description devel | |
48 | This package contains files needed to develop OCaml programs using | |
49 | jane-street-headers library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pakiet ten zawiera pliki niezbędne do tworzenia programów w OCamlu | |
53 | używających biblioteki jane-street-headers. | |
54 | ||
55 | %prep | |
56 | %setup -q -n jane-street-headers-%{version} | |
57 | ||
58 | %build | |
59 | dune build --verbose | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | dune install --destdir=$RPM_BUILD_ROOT | |
65 | ||
66 | # sources | |
67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/jane-street-headers/*.ml | |
68 | # packaged as %doc | |
69 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/jane-street-headers | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc LICENSE.md README.org | |
77 | %dir %{_libdir}/ocaml/jane-street-headers | |
78 | %{_libdir}/ocaml/jane-street-headers/META | |
79 | %{_libdir}/ocaml/jane-street-headers/*.cma | |
80 | %if %{with ocaml_opt} | |
81 | %attr(755,root,root) %{_libdir}/ocaml/jane-street-headers/*.cmxs | |
82 | %endif | |
83 | ||
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
86 | %{_libdir}/ocaml/jane-street-headers/*.cmi | |
87 | %{_libdir}/ocaml/jane-street-headers/*.cmt | |
88 | %{_libdir}/ocaml/jane-street-headers/*.h | |
89 | %if %{with ocaml_opt} | |
90 | %{_libdir}/ocaml/jane-street-headers/jane_street_headers.a | |
91 | %{_libdir}/ocaml/jane-street-headers/*.cmx | |
92 | %{_libdir}/ocaml/jane-street-headers/*.cmxa | |
93 | %endif | |
94 | %{_libdir}/ocaml/jane-street-headers/dune-package | |
95 | %{_libdir}/ocaml/jane-street-headers/opam |