- Initial version 20160512.7598fb9 for coccinelle

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-parmap?expand=0&rev=1
This commit is contained in:
Olaf Hering 2016-05-24 12:03:01 +00:00 committed by Git OBS Bridge
commit bfcd224eb7
7 changed files with 256 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm">
<param name="url">git://github.com/rdicosmo/parmap.git</param>
<param name="scm">git</param>
<param name="versionformat">%cd.%h</param>
<param name="revision">master</param>
<param name="filename">ocaml-parmap</param>
</service>
<service name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version"/>
</services>

View File

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

View File

@ -0,0 +1,105 @@
#
# 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: 20160512.7598fb9
%{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
%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/*
%{_libdir}/ocaml/*/META
%if %{ocaml_native_compiler}
#{_libdir}/ocaml/*/*.o
%endif
%{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
#{_libdir}/ocaml/*/*.cmo
%{_libdir}/ocaml/*/*.so*
%files devel
%defattr(-,root,root,-)
%doc LICENSE
%{_mandir}/*
%dir %{_libdir}/ocaml/*
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmxs
%endif
%{_libdir}/ocaml/*/*.mli
%changelog

5
ocaml-parmap.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue May 24 12:01:41 UTC 2016 - olaf@aepfle.de
- Initial version 20160512.7598fb9 for coccinelle

105
ocaml-parmap.spec Normal file
View File

@ -0,0 +1,105 @@
#
# 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
%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/*
%{_libdir}/ocaml/*/META
%if %{ocaml_native_compiler}
#{_libdir}/ocaml/*/*.o
%endif
%{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
#{_libdir}/ocaml/*/*.cmo
%{_libdir}/ocaml/*/*.so*
%files devel
%defattr(-,root,root,-)
%doc LICENSE
%{_mandir}/*
%dir %{_libdir}/ocaml/*
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmxs
%endif
%{_libdir}/ocaml/*/*.mli
%changelog