2016-05-24 14:03:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-parmap
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: ocaml-parmap
|
|
|
|
Version: 0
|
|
|
|
%{ocaml_preserve_bytecode}
|
|
|
|
Release: 0
|
|
|
|
License: LGPL-2.0
|
|
|
|
Summary: Eploit multicore architectures for OCaml programs with minimal modifications
|
|
|
|
Url: http://rdicosmo.github.io/parmap/
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-ocamlbuild
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-05-25 08:53:21 +02:00
|
|
|
# ocaml autodep start for pkg: ocaml-parmap
|
|
|
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
Requires: ocaml-runtime
|
|
|
|
%endif
|
|
|
|
# ocaml autodep end for pkg: ocaml-parmap
|
2016-05-24 14:03:01 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
If you want to use your many cores to accelerate an operation
|
|
|
|
which happens to be a map, fold or map/fold (map-reduce), just use
|
|
|
|
Parmap's parmap, parfold and parmapfold primitives in place of the
|
|
|
|
standard List.map and friends; you can specify the number of
|
|
|
|
subprocesses to use with the optional parameter ncores, and the
|
|
|
|
size of granularity of the parallel computation with the optional
|
|
|
|
parameter chunksize.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi -I m4
|
|
|
|
%configure
|
|
|
|
o=
|
|
|
|
make \
|
|
|
|
LIBDIR=${o}%{_libdir}/ocaml \
|
|
|
|
BINDIR=${o}%{_bindir} \
|
|
|
|
MANDIR=${o}%{_mandir}/man3 \
|
|
|
|
%{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
o=%{buildroot}
|
|
|
|
env \
|
|
|
|
make \
|
|
|
|
install \
|
|
|
|
LIBDIR=${o}%{_libdir}/ocaml \
|
|
|
|
BINDIR=${o}%{_bindir} \
|
|
|
|
MANDIR=${o}%{_mandir}/man3 \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
%{?_smp_mflags}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%dir %{_libdir}/ocaml/*
|
2016-05-25 10:03:51 +02:00
|
|
|
%{_libdir}/ocaml/*/*.so
|
|
|
|
%{_libdir}/ocaml/*/*.so.owner
|
2016-05-24 14:03:01 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2016-05-25 10:03:51 +02:00
|
|
|
%{_mandir}/*/*
|
2016-05-24 14:18:19 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-25 10:03:51 +02:00
|
|
|
%{_libdir}/ocaml/*/*.a
|
2016-05-24 14:03:01 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cmx
|
|
|
|
%{_libdir}/ocaml/*/*.cmxa
|
|
|
|
%{_libdir}/ocaml/*/*.cmxs
|
|
|
|
%endif
|
2016-05-25 10:03:51 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cma
|
|
|
|
%{_libdir}/ocaml/*/*.cmi
|
2016-05-24 14:03:01 +02:00
|
|
|
%{_libdir}/ocaml/*/*.mli
|
2016-05-25 10:03:51 +02:00
|
|
|
%{_libdir}/ocaml/*/META
|
2016-05-24 14:03:01 +02:00
|
|
|
|
|
|
|
%changelog
|