]> git.pld-linux.org Git - packages/ocaml-integers.git/blame - ocaml-integers.spec
- updated to 0.5.1
[packages/ocaml-integers.git] / ocaml-integers.spec
CommitLineData
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
14Summary: Various signed and unsigned integer types for OCaml
56b9a253 15Summary(pl.UTF-8): Różne typy całkowite ze znakiem i bez dla OCamla
e4f66911 16Name: ocaml-integers
56b9a253 17Version: 0.5.1
e4f66911
JR
18Release: 1
19License: MIT
56b9a253
JB
20Group: Libraries
21#Source0Download: https://github.com/ocamllabs/ocaml-integers/releases
e4f66911 22Source0: https://github.com/ocamllabs/ocaml-integers/archive/%{version}/%{name}-%{version}.tar.gz
56b9a253 23# Source0-md5: 24d629966763b4956edfb7e64d6c5427
e4f66911 24URL: https://github.com/ocamllabs/ocaml-integers
56b9a253 25BuildRequires: ocaml >= 1:4.02
e4f66911
JR
26BuildRequires: ocaml-dune
27%requires_eq ocaml-runtime
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31The ocaml-integers library provides a number of 8-, 16-, 32- and
3264-bit signed and unsigned integer types, together with aliases such
56b9a253 33as "long" and "size_t" whose sizes depend on the host platform.
e4f66911 34
56b9a253
JB
35%description -l pl.UTF-8
36Biblioteka ocaml-integers dostarcza wiele typów całkowitych, 8-, 16-,
3732- 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
41Summary: Development files for OCaml integers library
42Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla integers
43Group: Development/Libraries
e4f66911 44Requires: %{name} = %{version}-%{release}
56b9a253 45%requires_eq ocaml
e4f66911 46
56b9a253 47%description devel
e4f66911 48This package contains libraries and signature files for developing
56b9a253
JB
49applications that use OCaml integers library.
50
51%description devel -l pl.UTF-8
52Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
53wykorzystujących bibliotekę OCamla integers.
e4f66911
JR
54
55%prep
56%setup -q
57
58%build
56b9a253 59dune build %{?_smp_mflags} --display=verbose
e4f66911
JR
60
61%install
62rm -rf $RPM_BUILD_ROOT
56b9a253 63
e4f66911
JR
64dune 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
72rm -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
This page took 0.076003 seconds and 4 git commands to generate.