Accepting request 888344 from devel:languages:ocaml

- Update to version 20210423.2800b78
  avoid corruption on 32bit architectures
  add support for returning results in the right order

OBS-URL: https://build.opensuse.org/request/show/888344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-parmap?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2021-04-28 23:37:39 +00:00 committed by Git OBS Bridge
commit 1368ee8df3
5 changed files with 21 additions and 13 deletions

View File

@ -1,8 +1,9 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-parmap</param>
<param name="revision">526acc4d2dd0f8949dfd53fa1ff015307c970899</param>
<param name="revision">2800b78e9e10ffffafc3cbb0ffaed646ab71cc6a</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/rdicosmo/parmap.git</param>
<param name="versionformat">%cd.%h</param>
</service>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e73a703e0293484594254ac004f78aee618dbbd13be71f6e5e8dc223c7fe2110
size 31236

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53417d9239992b4f2d6ee3f7654eb696de9f71af8e1be82963fc39e935d26e75
size 31968

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Apr 25 22:22:22 UTC 2021 - ohering@suse.de
- Update to version 20210423.2800b78
avoid corruption on 32bit architectures
add support for returning results in the right order
-------------------------------------------------------------------
Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ocaml-parmap
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,17 +17,17 @@
Name: ocaml-parmap
Version: 20200124.526acc4
Version: 20210423.2800b78
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Multicore architecture exploitation for OCaml programs with minimal modifications
License: LGPL-2.0-only
Group: Development/Languages/OCaml
URL: http://rdicosmo.github.io/parmap/
Source: %{name}-%{version}.tar.xz
URL: https://opam.ocaml.org/packages/parmap
Source0: %{name}-%{version}.tar.xz
BuildRequires: ocaml
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20200220
BuildRequires: ocaml-rpm-macros >= 20210409
BuildRequires: ocamlfind(bigarray)
BuildRequires: ocamlfind(dune.configurator)
BuildRequires: ocamlfind(graphics)
@ -57,6 +57,10 @@ developing applications that use %{name}.
%autosetup -p1
%build
sed -i~ '
s@10000000@1000000@
' tests/simplescale.ml
diff -u "$_"~ "$_" && exit 1
dune_release_pkgs='parmap'
%ocaml_dune_setup
%ocaml_dune_build
@ -66,11 +70,7 @@ dune_release_pkgs='parmap'
%ocaml_create_file_list
%check
test -x "$(type -P ocamlc.opt)" || exit 0
OCAML_DUNE_RUNTEST_ARGS="-j 1"
%if "%{_lib}" == "lib"
dune_test_tolerate_fail='dune_test_tolerate_fail Array.make'
%endif
export nData=$((1000 * 10))
export nProcs=2
%ocaml_dune_test