[packages/ocaml-integers] - updated to 0.5.1

qboosh qboosh at pld-linux.org
Fri Sep 17 20:44:24 CEST 2021


commit 56b9a253c79a63ed8a944daf3680173a611caef2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 17 20:49:08 2021 +0200

    - updated to 0.5.1

 ocaml-integers.spec | 57 ++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 39 insertions(+), 18 deletions(-)
---
diff --git a/ocaml-integers.spec b/ocaml-integers.spec
index e9831b9..fb6d15e 100644
--- a/ocaml-integers.spec
+++ b/ocaml-integers.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	ocaml_opt	# skip building native optimized binaries (bytecode is always built)
+%bcond_without	ocaml_opt	# native optimized binaries (bytecode is always built)
 
 # not yet available on x32 (ocaml 4.02.1), update when upstream will support it
 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
@@ -12,14 +12,17 @@
 %endif
 
 Summary:	Various signed and unsigned integer types for OCaml
+Summary(pl.UTF-8):	Różne typy całkowite ze znakiem i bez dla OCamla
 Name:		ocaml-integers
-Version:	0.4.0
+Version:	0.5.1
 Release:	1
 License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/ocamllabs/ocaml-integers/releases
 Source0:	https://github.com/ocamllabs/ocaml-integers/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	c1492352e6525048790508c57aad93c3
+# Source0-md5:	24d629966763b4956edfb7e64d6c5427
 URL:		https://github.com/ocamllabs/ocaml-integers
-BuildRequires:	ocaml >= 4.02
+BuildRequires:	ocaml >= 1:4.02
 BuildRequires:	ocaml-dune
 %requires_eq	ocaml-runtime
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,57 +30,75 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 The ocaml-integers library provides a number of 8-, 16-, 32- and
 64-bit signed and unsigned integer types, together with aliases such
-as `long` and `size_t` whose sizes depend on the host platform.
+as "long" and "size_t" whose sizes depend on the host platform.
 
-%package        devel
-Summary:	Development files for %{name}
+%description -l pl.UTF-8
+Biblioteka ocaml-integers dostarcza wiele typów całkowitych, 8-, 16-,
+32- i 64-bitowych, ze znakiem i bez, oraz aliasy, takie jak "long" czy
+"size_t", których rozmiary zależą od platformy.
+
+%package devel
+Summary:	Development files for OCaml integers library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki OCamla integers
+Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+%requires_eq	ocaml
 
-%description    devel
+%description devel
 This package contains libraries and signature files for developing
-applications that use %{name}.
+applications that use OCaml integers library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
+wykorzystujących bibliotekę OCamla integers.
 
 %prep
 %setup -q
 
 %build
-dune build %{?_smp_mflags}
+dune build %{?_smp_mflags} --display=verbose
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 dune install --destdir=$RPM_BUILD_ROOT
 
+# sources
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/integers{,/top}/*.ml
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/integers
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES.md README.md
+%doc CHANGES.md LICENSE.md README.md
 %dir %{_libdir}/ocaml/integers
 %dir %{_libdir}/ocaml/integers/top
 %{_libdir}/ocaml/integers/META
 %{_libdir}/ocaml/integers/*.cma
-%{_libdir}/ocaml/integers/*.cmi
 %{_libdir}/ocaml/integers/top/*.cma
-%{_libdir}/ocaml/integers/top/*.cmi
 %if %{with ocaml_opt}
 %attr(755,root,root) %{_libdir}/ocaml/integers/*.cmxs
 %endif
-%{_libdir}/ocaml/stublibs/dllintegers_stubs.so
+%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllintegers_stubs.so
 
 %files devel
 %defattr(644,root,root,755)
 %{_libdir}/ocaml/integers/dune-package
 %{_libdir}/ocaml/integers/opam
 %{_libdir}/ocaml/integers/*.a
-%if %{with ocaml_opt}
-%{_libdir}/ocaml/integers/*.cmx
-%{_libdir}/ocaml/integers/*.cmxa
-%endif
+%{_libdir}/ocaml/integers/*.cmi
 %{_libdir}/ocaml/integers/*.cmt
 %{_libdir}/ocaml/integers/*.cmti
 %{_libdir}/ocaml/integers/*.h
 %{_libdir}/ocaml/integers/*.mli
+%if %{with ocaml_opt}
+%{_libdir}/ocaml/integers/*.cmx
+%{_libdir}/ocaml/integers/*.cmxa
+%endif
+%{_libdir}/ocaml/integers/top/*.cmi
 %{_libdir}/ocaml/integers/top/*.cmt
 %{_libdir}/ocaml/integers/top/*.cmti
 %{_libdir}/ocaml/integers/top/*.mli
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-integers.git/commitdiff/56b9a253c79a63ed8a944daf3680173a611caef2



More information about the pld-cvs-commit mailing list