Accepting request 749848 from devel:languages:ocaml
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/749848 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-parmap?expand=0&rev=7
This commit is contained in:
commit
875af31a97
15
_constraints
Normal file
15
_constraints
Normal file
@ -0,0 +1,15 @@
|
||||
<constraints>
|
||||
<overwrite>
|
||||
<conditions>
|
||||
<arch>aarch64</arch>
|
||||
<arch>ppc64le</arch>
|
||||
<arch>s390x</arch>
|
||||
<arch>x86_64</arch>
|
||||
</conditions>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">8</size>
|
||||
</memory>
|
||||
</hardware>
|
||||
</overwrite>
|
||||
</constraints>
|
8
_service
8
_service
@ -1,10 +1,10 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">git://github.com/rdicosmo/parmap.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="versionformat">%cd.%h</param>
|
||||
<param name="revision">803edbb03aedda79b0c681b4f14ea9a2f10b1514</param>
|
||||
<param name="filename">ocaml-parmap</param>
|
||||
<param name="revision">dune-wip</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/olafhering/ocaml-parmap.git</param>
|
||||
<param name="versionformat">%cd.%h</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67c9fbefe2cfc319e0a741f072efec60404383a40866b99a3f15cd7e4df33808
|
||||
size 63512
|
3
ocaml-parmap-20191021.1b17a5d.tar.xz
Normal file
3
ocaml-parmap-20191021.1b17a5d.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0a433c605c2845a0e1d07af83e14384f59d01b3f646cabaaa8e56aa7d515d262
|
||||
size 31620
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
|
||||
|
||||
- Require current dune macros
|
||||
- Update to 20191021.1b17a5d from dune branch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 9 05:48:16 UTC 2019 - ohering@suse.de
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: ocaml-parmap
|
||||
Version: 20191002.803edbb
|
||||
Version: 20191021.1b17a5d
|
||||
Release: 0
|
||||
%{?ocaml_preserve_bytecode}
|
||||
Summary: Multicore architecture exploitation for OCaml programs with minimal modifications
|
||||
@ -26,14 +26,13 @@ Group: Development/Languages/OCaml
|
||||
URL: http://rdicosmo.github.io/parmap/
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-oasis
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-rpm-macros >= 20191009
|
||||
BuildRequires: ocaml-dune
|
||||
BuildRequires: ocaml-rpm-macros >= 20191101
|
||||
BuildRequires: ocamlfind(bigarray)
|
||||
BuildRequires: ocamlfind(dune.configurator)
|
||||
BuildRequires: ocamlfind(graphics)
|
||||
BuildRequires: ocamlfind(unix)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
If you want to use your many cores to accelerate an operation
|
||||
@ -58,70 +57,27 @@ developing applications that use %{name}.
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
echo -n > config.h
|
||||
if grep -w sched_setaffinity /usr/include/sched.h
|
||||
then
|
||||
tee -a config.h <<_EOF_
|
||||
#define HAVE_DECL_SCHED_SETAFFINITY 1
|
||||
_EOF_
|
||||
fi
|
||||
ocaml_version="$(ocamlc -version)"
|
||||
case "${ocaml_version}" in
|
||||
4.03.*|4.04.*|4.05.*)
|
||||
echo 'let map_file = Bigarray.Genarray.map_file' >>parmap_compat.ml
|
||||
;;
|
||||
*)
|
||||
echo 'let map_file = Unix.map_file' >>parmap_compat.ml
|
||||
;;
|
||||
esac
|
||||
rm -fv setup.ml myocamlbuild.ml META* _* */_*
|
||||
# obs service changes every ^Version line ...
|
||||
sh -c "sed 's/^Version.*/Version: %{version}/' | tee _oasis" <<_EOF_
|
||||
OASISFormat: 0.4
|
||||
Name: parmap
|
||||
Version: 0
|
||||
Synopsis: library to exploit multicore architectures (parallel programming)
|
||||
Authors: Marco Danelutto and Roberto Di Cosmo
|
||||
License: WTFPL
|
||||
LicenseFile: LICENSE
|
||||
Plugins: META(`oasis version`)
|
||||
BuildTools: ocamlbuild
|
||||
|
||||
Library parmap
|
||||
Path: .
|
||||
Install: true
|
||||
Modules: Parmap, Parmap_compat
|
||||
CSources: bytearray_stubs.c, setcore_stubs.c, config.h
|
||||
CCOpt: %{optflags} -I$PWD -Werror -D_GNU_SOURCE
|
||||
|
||||
Document parmap
|
||||
Title: API reference for parmap
|
||||
Type: ocamlbuild
|
||||
BuildTools+: ocamldoc
|
||||
InstallDir: \$htmldir
|
||||
Install: true
|
||||
XOCamlbuildPath: .
|
||||
XOCamlbuildLibraries: parmap
|
||||
|
||||
Executable "%{name}-mandels"
|
||||
Install: true
|
||||
Path: example
|
||||
MainIs: mandels.ml
|
||||
CompiledObject: best
|
||||
BuildDepends: parmap, graphics, unix, bigarray
|
||||
_EOF_
|
||||
%oasis_setup
|
||||
%ocaml_oasis_configure --enable-docs
|
||||
%ocaml_oasis_build
|
||||
%ocaml_oasis_doc
|
||||
dune_release_pkgs='parmap'
|
||||
%ocaml_dune_setup
|
||||
%ocaml_dune_build
|
||||
|
||||
%install
|
||||
%ocaml_oasis_findlib_install
|
||||
%ocaml_dune_install
|
||||
%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
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc README.md
|
||||
%{_bindir}/*
|
||||
|
||||
%files devel -f %{name}.files.devel
|
||||
%{oasis_docdir_html}
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user