]>
Commit | Line | Data |
---|---|---|
e4f66911 JR |
1 | # |
2 | # Conditional build: | |
56b9a253 | 3 | %bcond_without ocaml_opt # native optimized binaries (bytecode is always built) |
e4f66911 JR |
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 | %if %{without ocaml_opt} | |
11 | %define _enable_debug_packages 0 | |
12 | %endif | |
13 | ||
14 | Summary: Various signed and unsigned integer types for OCaml | |
56b9a253 | 15 | Summary(pl.UTF-8): Różne typy całkowite ze znakiem i bez dla OCamla |
e4f66911 | 16 | Name: ocaml-integers |
56b9a253 | 17 | Version: 0.5.1 |
e4f66911 JR |
18 | Release: 1 |
19 | License: MIT | |
56b9a253 JB |
20 | Group: Libraries |
21 | #Source0Download: https://github.com/ocamllabs/ocaml-integers/releases | |
e4f66911 | 22 | Source0: https://github.com/ocamllabs/ocaml-integers/archive/%{version}/%{name}-%{version}.tar.gz |
56b9a253 | 23 | # Source0-md5: 24d629966763b4956edfb7e64d6c5427 |
e4f66911 | 24 | URL: https://github.com/ocamllabs/ocaml-integers |
56b9a253 | 25 | BuildRequires: ocaml >= 1:4.02 |
e4f66911 JR |
26 | BuildRequires: ocaml-dune |
27 | %requires_eq ocaml-runtime | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | The ocaml-integers library provides a number of 8-, 16-, 32- and | |
32 | 64-bit signed and unsigned integer types, together with aliases such | |
56b9a253 | 33 | as "long" and "size_t" whose sizes depend on the host platform. |
e4f66911 | 34 | |
56b9a253 JB |
35 | %description -l pl.UTF-8 |
36 | Biblioteka ocaml-integers dostarcza wiele typów całkowitych, 8-, 16-, | |
37 | 32- i 64-bitowych, ze znakiem i bez, oraz aliasy, takie jak "long" czy | |
38 | "size_t", których rozmiary zależą od platformy. | |
39 | ||
40 | %package devel | |
41 | Summary: Development files for OCaml integers library | |
42 | Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla integers | |
43 | Group: Development/Libraries | |
e4f66911 | 44 | Requires: %{name} = %{version}-%{release} |
56b9a253 | 45 | %requires_eq ocaml |
e4f66911 | 46 | |
56b9a253 | 47 | %description devel |
e4f66911 | 48 | This package contains libraries and signature files for developing |
56b9a253 JB |
49 | applications that use OCaml integers library. |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji | |
53 | wykorzystujących bibliotekę OCamla integers. | |
e4f66911 JR |
54 | |
55 | %prep | |
56 | %setup -q | |
57 | ||
58 | %build | |
56b9a253 | 59 | dune build %{?_smp_mflags} --display=verbose |
e4f66911 JR |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
56b9a253 | 63 | |
e4f66911 JR |
64 | dune install --destdir=$RPM_BUILD_ROOT |
65 | ||
56b9a253 JB |
66 | # sources |
67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/integers{,/top}/*.ml | |
68 | # packaged as %doc | |
69 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/integers | |
70 | ||
e4f66911 JR |
71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
56b9a253 | 76 | %doc CHANGES.md LICENSE.md README.md |
e4f66911 JR |
77 | %dir %{_libdir}/ocaml/integers |
78 | %dir %{_libdir}/ocaml/integers/top | |
79 | %{_libdir}/ocaml/integers/META | |
80 | %{_libdir}/ocaml/integers/*.cma | |
e4f66911 | 81 | %{_libdir}/ocaml/integers/top/*.cma |
e4f66911 JR |
82 | %if %{with ocaml_opt} |
83 | %attr(755,root,root) %{_libdir}/ocaml/integers/*.cmxs | |
84 | %endif | |
56b9a253 | 85 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllintegers_stubs.so |
e4f66911 JR |
86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %{_libdir}/ocaml/integers/dune-package | |
90 | %{_libdir}/ocaml/integers/opam | |
e4f66911 | 91 | %{_libdir}/ocaml/integers/*.a |
56b9a253 | 92 | %{_libdir}/ocaml/integers/*.cmi |
e4f66911 JR |
93 | %{_libdir}/ocaml/integers/*.cmt |
94 | %{_libdir}/ocaml/integers/*.cmti | |
95 | %{_libdir}/ocaml/integers/*.h | |
96 | %{_libdir}/ocaml/integers/*.mli | |
56b9a253 JB |
97 | %if %{with ocaml_opt} |
98 | %{_libdir}/ocaml/integers/*.cmx | |
99 | %{_libdir}/ocaml/integers/*.cmxa | |
100 | %endif | |
101 | %{_libdir}/ocaml/integers/top/*.cmi | |
e4f66911 JR |
102 | %{_libdir}/ocaml/integers/top/*.cmt |
103 | %{_libdir}/ocaml/integers/top/*.cmti | |
104 | %{_libdir}/ocaml/integers/top/*.mli |