From bfcd224eb78f6e150175b90ad80ee9ca4b919f1af7c7ff31c157c306a9bf5a48 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 24 May 2016 12:03:01 +0000 Subject: [PATCH] - Initial version 20160512.7598fb9 for coccinelle OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-parmap?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + _service | 14 +++ ...r_scm:ocaml-parmap-20160512.7598fb9.tar.xz | 3 + _service:set_version:ocaml-parmap.spec | 105 ++++++++++++++++++ ocaml-parmap.changes | 5 + ocaml-parmap.spec | 105 ++++++++++++++++++ 7 files changed, 256 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz create mode 100644 _service:set_version:ocaml-parmap.spec create mode 100644 ocaml-parmap.changes create mode 100644 ocaml-parmap.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..767f483 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git://github.com/rdicosmo/parmap.git + git + %cd.%h + master + ocaml-parmap + + + *.tar + xz + + + diff --git a/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz b/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz new file mode 100644 index 0000000..7c87045 --- /dev/null +++ b/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f045c9bef2dae12a25590efdbd89fd898fba1aaec985043baeef406238f7142d +size 62380 diff --git a/_service:set_version:ocaml-parmap.spec b/_service:set_version:ocaml-parmap.spec new file mode 100644 index 0000000..b813b8a --- /dev/null +++ b/_service:set_version:ocaml-parmap.spec @@ -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 diff --git a/ocaml-parmap.changes b/ocaml-parmap.changes new file mode 100644 index 0000000..ff0a081 --- /dev/null +++ b/ocaml-parmap.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 24 12:01:41 UTC 2016 - olaf@aepfle.de + +- Initial version 20160512.7598fb9 for coccinelle + diff --git a/ocaml-parmap.spec b/ocaml-parmap.spec new file mode 100644 index 0000000..6e40ef8 --- /dev/null +++ b/ocaml-parmap.spec @@ -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