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:
Mike Latimer 2014-12-09 21:41:08 +00:00 committed by Git OBS Bridge
parent 27500842ee
commit fa692c8589

View File

@ -34,6 +34,7 @@ BuildRequires: ncurses-devel
BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml >= 4.00.1
BuildRequires: ocaml-rpm-macros >= 4.02.1 BuildRequires: ocaml-rpm-macros >= 4.02.1
BuildRequires: ocaml-findlib-devel >= 1.3.3-3 BuildRequires: ocaml-findlib-devel >= 1.3.3-3
BuildRequires: ocaml(ocaml.opt)
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -60,8 +61,9 @@ autoreconf
%build %build
# Parallel builds don't work (with bytecode)
%configure --enable-widec %configure --enable-widec
make %{?_smp_mflags} all opt make all opt
%install %install
@ -69,7 +71,11 @@ make %{?_smp_mflags} all opt
export DESTDIR=%{buildroot} export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs 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