Accepting request 264591 from home:mlatimer:td
Minor spec file cleanup for bytecode OBS-URL: https://build.opensuse.org/request/show/264591 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-curses?expand=0&rev=3
This commit is contained in:
parent
27500842ee
commit
fa692c8589
@ -34,6 +34,7 @@ BuildRequires: ncurses-devel
|
||||
BuildRequires: ocaml >= 4.00.1
|
||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
|
||||
BuildRequires: ocaml(ocaml.opt)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -60,8 +61,9 @@ autoreconf
|
||||
|
||||
|
||||
%build
|
||||
# Parallel builds don't work (with bytecode)
|
||||
%configure --enable-widec
|
||||
make %{?_smp_mflags} all opt
|
||||
make all opt
|
||||
|
||||
|
||||
%install
|
||||
@ -69,7 +71,11 @@ make %{?_smp_mflags} all opt
|
||||
export DESTDIR=%{buildroot}
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
|
||||
export OCAMLFILES="curses META *.cmi *.cma *.so *.mli"
|
||||
%if %{ocaml_native_compiler}
|
||||
export OCAMLFILES="$OCAMLFILES *.cmx *.cmxa *.a"
|
||||
%endif
|
||||
ocamlfind install $OCAMLFILES
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user