oasis
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-parmap?expand=0&rev=12
This commit is contained in:
parent
2fc39199af
commit
dc91a1e2f2
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:ff88f440acb3209c06c58d882ba328e526753cfd8e9609c10d4505331599594d
|
oid sha256:269c8a02b9d99297e5f9cbe196718a6f29a17f1826ab3db9d929eaedcec18456
|
||||||
size 62412
|
size 62428
|
||||||
|
@ -24,15 +24,14 @@ Summary: Exploit multicore architectures for OCaml programs with minimal
|
|||||||
Url: http://rdicosmo.github.io/parmap/
|
Url: http://rdicosmo.github.io/parmap/
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-findlib
|
BuildRequires: ocaml-oasis
|
||||||
BuildRequires: ocaml-ocamlbuild
|
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
BuildRequires: ocaml-rpm-macros >= 4.03
|
||||||
BuildRequires: ocamlfind(bigarray)
|
BuildRequires: ocamlfind(bigarray)
|
||||||
|
BuildRequires: ocamlfind(graphics)
|
||||||
BuildRequires: ocamlfind(unix)
|
BuildRequires: ocamlfind(unix)
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# ocaml autodep start for pkg: ocaml-parmap
|
# ocaml autodep start for pkg: ocaml-parmap
|
||||||
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
||||||
@ -64,29 +63,61 @@ developing applications that use %{name}.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi -I m4
|
echo -n > config.h
|
||||||
%configure
|
if grep -w sched_setaffinity /usr/include/sched.h
|
||||||
o=
|
then
|
||||||
make \
|
tee -a config.h <<_EOF_
|
||||||
LIBDIR=${o}%{_libdir}/ocaml \
|
#define HAVE_DECL_SCHED_SETAFFINITY 1
|
||||||
BINDIR=${o}%{_bindir} \
|
_EOF_
|
||||||
MANDIR=${o}%{_mandir}/man3 \
|
fi
|
||||||
%{?_smp_mflags}
|
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: 20160605.10e2437
|
||||||
|
Synopsis: library to exploit multicore architectures (parallel programming)
|
||||||
|
Authors: Marco Danelutto and Roberto Di Cosmo
|
||||||
|
License: LGPL-2
|
||||||
|
LicenseFile: LICENSE
|
||||||
|
Plugins: META(`oasis version`)
|
||||||
|
BuildTools: ocamlbuild
|
||||||
|
|
||||||
|
Library parmap
|
||||||
|
Path: .
|
||||||
|
Install: true
|
||||||
|
Modules: Parmap
|
||||||
|
CSources: bytearray_stubs.c, setcore_stubs.c, config.h
|
||||||
|
CCOpt: -Wall -O2 -g -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
|
||||||
|
|
||||||
%install
|
%install
|
||||||
o=%{buildroot}
|
%ocaml_oasis_findlib_install
|
||||||
env \
|
|
||||||
make \
|
|
||||||
install \
|
|
||||||
LIBDIR=${o}%{_libdir}/ocaml \
|
|
||||||
BINDIR=${o}%{_bindir} \
|
|
||||||
MANDIR=${o}%{_mandir}/man3 \
|
|
||||||
DESTDIR=%{buildroot} \
|
|
||||||
%{?_smp_mflags}
|
|
||||||
#
|
#
|
||||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
||||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
||||||
%{_libdir}/ocaml/stublibs
|
%{_libdir}/ocaml/parmap
|
||||||
_EOF_
|
_EOF_
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -98,25 +129,29 @@ _EOF_
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.md LICENSE
|
%doc README.md LICENSE
|
||||||
/etc/ld.so.conf.d/*.conf
|
/etc/ld.so.conf.d/*.conf
|
||||||
|
%{_bindir}/*
|
||||||
%dir %{_libdir}/ocaml
|
%dir %{_libdir}/ocaml
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
|
%if %{ocaml_native_compiler}
|
||||||
|
%{_libdir}/ocaml/*/*.cmxs
|
||||||
|
%endif
|
||||||
%{_libdir}/ocaml/*/*.so
|
%{_libdir}/ocaml/*/*.so
|
||||||
%{_libdir}/ocaml/*/*.so.owner
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_mandir}/*/*
|
%{oasis_docdir_html}
|
||||||
%dir %{_libdir}/ocaml
|
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
%{_libdir}/ocaml/*/*.a
|
%{_libdir}/ocaml/*/*.a
|
||||||
%if %{ocaml_native_compiler}
|
%if %{ocaml_native_compiler}
|
||||||
%{_libdir}/ocaml/*/*.cmx
|
%{_libdir}/ocaml/*/*.cmx
|
||||||
%{_libdir}/ocaml/*/*.cmxa
|
%{_libdir}/ocaml/*/*.cmxa
|
||||||
%{_libdir}/ocaml/*/*.cmxs
|
|
||||||
%endif
|
%endif
|
||||||
|
%{_libdir}/ocaml/*/*.annot
|
||||||
%{_libdir}/ocaml/*/*.cma
|
%{_libdir}/ocaml/*/*.cma
|
||||||
%{_libdir}/ocaml/*/*.cmi
|
%{_libdir}/ocaml/*/*.cmi
|
||||||
|
%{_libdir}/ocaml/*/*.cmt
|
||||||
|
%{_libdir}/ocaml/*/*.cmti
|
||||||
%{_libdir}/ocaml/*/*.mli
|
%{_libdir}/ocaml/*/*.mli
|
||||||
%{_libdir}/ocaml/*/META
|
%{_libdir}/ocaml/*/META
|
||||||
|
|
||||||
|
@ -24,15 +24,14 @@ Summary: Exploit multicore architectures for OCaml programs with minimal
|
|||||||
Url: http://rdicosmo.github.io/parmap/
|
Url: http://rdicosmo.github.io/parmap/
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-findlib
|
BuildRequires: ocaml-oasis
|
||||||
BuildRequires: ocaml-ocamlbuild
|
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
BuildRequires: ocaml-rpm-macros >= 4.03
|
||||||
BuildRequires: ocamlfind(bigarray)
|
BuildRequires: ocamlfind(bigarray)
|
||||||
|
BuildRequires: ocamlfind(graphics)
|
||||||
BuildRequires: ocamlfind(unix)
|
BuildRequires: ocamlfind(unix)
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# ocaml autodep start for pkg: ocaml-parmap
|
# ocaml autodep start for pkg: ocaml-parmap
|
||||||
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
||||||
@ -64,29 +63,61 @@ developing applications that use %{name}.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi -I m4
|
echo -n > config.h
|
||||||
%configure
|
if grep -w sched_setaffinity /usr/include/sched.h
|
||||||
o=
|
then
|
||||||
make \
|
tee -a config.h <<_EOF_
|
||||||
LIBDIR=${o}%{_libdir}/ocaml \
|
#define HAVE_DECL_SCHED_SETAFFINITY 1
|
||||||
BINDIR=${o}%{_bindir} \
|
_EOF_
|
||||||
MANDIR=${o}%{_mandir}/man3 \
|
fi
|
||||||
%{?_smp_mflags}
|
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: 20160605.10e2437
|
||||||
|
Synopsis: library to exploit multicore architectures (parallel programming)
|
||||||
|
Authors: Marco Danelutto and Roberto Di Cosmo
|
||||||
|
License: LGPL-2
|
||||||
|
LicenseFile: LICENSE
|
||||||
|
Plugins: META(`oasis version`)
|
||||||
|
BuildTools: ocamlbuild
|
||||||
|
|
||||||
|
Library parmap
|
||||||
|
Path: .
|
||||||
|
Install: true
|
||||||
|
Modules: Parmap
|
||||||
|
CSources: bytearray_stubs.c, setcore_stubs.c, config.h
|
||||||
|
CCOpt: -Wall -O2 -g -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
|
||||||
|
|
||||||
%install
|
%install
|
||||||
o=%{buildroot}
|
%ocaml_oasis_findlib_install
|
||||||
env \
|
|
||||||
make \
|
|
||||||
install \
|
|
||||||
LIBDIR=${o}%{_libdir}/ocaml \
|
|
||||||
BINDIR=${o}%{_bindir} \
|
|
||||||
MANDIR=${o}%{_mandir}/man3 \
|
|
||||||
DESTDIR=%{buildroot} \
|
|
||||||
%{?_smp_mflags}
|
|
||||||
#
|
#
|
||||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
||||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
||||||
%{_libdir}/ocaml/stublibs
|
%{_libdir}/ocaml/parmap
|
||||||
_EOF_
|
_EOF_
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -98,25 +129,29 @@ _EOF_
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.md LICENSE
|
%doc README.md LICENSE
|
||||||
/etc/ld.so.conf.d/*.conf
|
/etc/ld.so.conf.d/*.conf
|
||||||
|
%{_bindir}/*
|
||||||
%dir %{_libdir}/ocaml
|
%dir %{_libdir}/ocaml
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
|
%if %{ocaml_native_compiler}
|
||||||
|
%{_libdir}/ocaml/*/*.cmxs
|
||||||
|
%endif
|
||||||
%{_libdir}/ocaml/*/*.so
|
%{_libdir}/ocaml/*/*.so
|
||||||
%{_libdir}/ocaml/*/*.so.owner
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_mandir}/*/*
|
%{oasis_docdir_html}
|
||||||
%dir %{_libdir}/ocaml
|
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
%{_libdir}/ocaml/*/*.a
|
%{_libdir}/ocaml/*/*.a
|
||||||
%if %{ocaml_native_compiler}
|
%if %{ocaml_native_compiler}
|
||||||
%{_libdir}/ocaml/*/*.cmx
|
%{_libdir}/ocaml/*/*.cmx
|
||||||
%{_libdir}/ocaml/*/*.cmxa
|
%{_libdir}/ocaml/*/*.cmxa
|
||||||
%{_libdir}/ocaml/*/*.cmxs
|
|
||||||
%endif
|
%endif
|
||||||
|
%{_libdir}/ocaml/*/*.annot
|
||||||
%{_libdir}/ocaml/*/*.cma
|
%{_libdir}/ocaml/*/*.cma
|
||||||
%{_libdir}/ocaml/*/*.cmi
|
%{_libdir}/ocaml/*/*.cmi
|
||||||
|
%{_libdir}/ocaml/*/*.cmt
|
||||||
|
%{_libdir}/ocaml/*/*.cmti
|
||||||
%{_libdir}/ocaml/*/*.mli
|
%{_libdir}/ocaml/*/*.mli
|
||||||
%{_libdir}/ocaml/*/META
|
%{_libdir}/ocaml/*/META
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user