3 %bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
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
10 %if %{without ocaml_opt}
11 %define _enable_debug_packages 0
14 Summary: Various signed and unsigned integer types for OCaml
19 Source0: https://github.com/ocamllabs/ocaml-integers/archive/%{version}/%{name}-%{version}.tar.gz
20 # Source0-md5: c1492352e6525048790508c57aad93c3
21 URL: https://github.com/ocamllabs/ocaml-integers
22 BuildRequires: ocaml >= 4.02
23 BuildRequires: ocaml-dune
24 %requires_eq ocaml-runtime
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The ocaml-integers library provides a number of 8-, 16-, 32- and
29 64-bit signed and unsigned integer types, together with aliases such
30 as `long` and `size_t` whose sizes depend on the host platform.
33 Summary: Development files for %{name}
34 Requires: %{name} = %{version}-%{release}
37 This package contains libraries and signature files for developing
38 applications that use %{name}.
44 dune build %{?_smp_mflags}
47 rm -rf $RPM_BUILD_ROOT
48 dune install --destdir=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc CHANGES.md README.md
56 %dir %{_libdir}/ocaml/integers
57 %dir %{_libdir}/ocaml/integers/top
58 %{_libdir}/ocaml/integers/META
59 %{_libdir}/ocaml/integers/*.cma
60 %{_libdir}/ocaml/integers/*.cmi
61 %{_libdir}/ocaml/integers/top/*.cma
62 %{_libdir}/ocaml/integers/top/*.cmi
64 %attr(755,root,root) %{_libdir}/ocaml/integers/*.cmxs
66 %{_libdir}/ocaml/stublibs/dllintegers_stubs.so
69 %defattr(644,root,root,755)
70 %{_libdir}/ocaml/integers/dune-package
71 %{_libdir}/ocaml/integers/opam
73 %{_libdir}/ocaml/integers/*.a
74 %{_libdir}/ocaml/integers/*.cmx
75 %{_libdir}/ocaml/integers/*.cmxa
77 %{_libdir}/ocaml/integers/*.cmt
78 %{_libdir}/ocaml/integers/*.cmti
79 %{_libdir}/ocaml/integers/*.h
80 %{_libdir}/ocaml/integers/*.mli
81 %{_libdir}/ocaml/integers/top/*.cmt
82 %{_libdir}/ocaml/integers/top/*.cmti
83 %{_libdir}/ocaml/integers/top/*.mli