]>
Commit | Line | Data |
---|---|---|
a6fe2595 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: Compatibility package for OCaml's standard iterator type starting from 4.07 | |
11 | Summary(pl.UTF-8): Pakiet zgodności ze typem standardowego iteratora z OCamla >= 4.07 | |
12 | Name: ocaml-seq | |
13 | Version: 0.2.2 | |
14 | Release: 1 | |
15 | License: LGPL v2.1 with linking exception | |
16 | Group: Libraries | |
17 | #Source0Download: https://github.com/c-cube/seq/releases | |
18 | Source0: https://github.com/c-cube/seq/archive/%{version}/seq-%{version}.tar.gz | |
19 | # Source0-md5: 9033e02283aa3bde9f97f24e632902e3 | |
20 | URL: https://github.com/c-cube/seq | |
21 | BuildRequires: ocaml >= 1:4.00 | |
22 | BuildRequires: ocaml-dune >= 1.1.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 | Compatibility package for OCaml's standard iterator type starting from | |
30 | 4.07. | |
31 | ||
32 | This package contains files needed to run bytecode executables using | |
33 | OCaml seq library. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Pakiet zgodności ze typem standardowego iteratora z OCamla >= 4.07. | |
37 | ||
38 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów | |
39 | używających biblioteki OCamla seq. | |
40 | ||
41 | %package devel | |
42 | Summary: Compatibility package for OCaml's standard iterator type starting from 4.07 - development part | |
88f9a9ca | 43 | Summary(pl.UTF-8): Pakiet zgodności ze typem standardowego iteratora z OCamla >= 4.07 - część programistyczna |
a6fe2595 JB |
44 | Group: Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
46 | %requires_eq ocaml | |
47 | ||
48 | %description devel | |
49 | This package contains files needed to develop OCaml programs using | |
50 | seq library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pakiet ten zawiera pliki niezbędne do tworzenia programów używających | |
54 | biblioteki seq. | |
55 | ||
56 | %prep | |
57 | %setup -q -n seq-%{version} | |
58 | ||
59 | %build | |
60 | dune build --verbose | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | dune install --destdir=$RPM_BUILD_ROOT | |
66 | ||
67 | # sources | |
68 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/seq/*.ml | |
69 | # packaged as %doc | |
70 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/seq | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc LICENSE README.md | |
78 | %dir %{_libdir}/ocaml/seq | |
79 | %{_libdir}/ocaml/seq/META | |
80 | %{_libdir}/ocaml/seq/*.cma | |
81 | %if %{with ocaml_opt} | |
82 | %attr(755,root,root) %{_libdir}/ocaml/seq/*.cmxs | |
83 | %endif | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %{_libdir}/ocaml/seq/*.cmi | |
88 | %{_libdir}/ocaml/seq/*.cmt | |
89 | %{_libdir}/ocaml/seq/*.cmti | |
90 | %{_libdir}/ocaml/seq/*.mli | |
91 | %if %{with ocaml_opt} | |
92 | %{_libdir}/ocaml/seq/*.a | |
93 | %{_libdir}/ocaml/seq/*.cmx | |
94 | %{_libdir}/ocaml/seq/*.cmxa | |
95 | %endif | |
96 | %{_libdir}/ocaml/seq/dune-package | |
97 | %{_libdir}/ocaml/seq/opam |