[packages/ocaml-num] - fix non-opt bild
baggins
baggins at pld-linux.org
Mon Mar 29 21:05:20 CEST 2021
commit bae1513a975d5963ad5cb309c57236195d69e797
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 29 21:04:43 2021 +0200
- fix non-opt bild
ocaml-num.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ocaml-num.spec b/ocaml-num.spec
index bc6dc35..628780a 100644
--- a/ocaml-num.spec
+++ b/ocaml-num.spec
@@ -49,12 +49,20 @@ developing applications that use %{name}.
%setup -q -n num-%{version}
%build
-%{__make} %{?_smp_mflags} all
+%{__make} all \
+%if %{without ocaml_opt}
+ BNG_ARCH=generic \
+ ARCH=none
+%endif
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
+%if %{without ocaml_opt}
+ BNG_ARCH=generic \
+ ARCH=none \
+%endif
DESTDIR=$RPM_BUILD_ROOT \
OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
@@ -80,8 +88,8 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ocaml/*.cmi
%{_libdir}/ocaml/*.cmti
%{_libdir}/ocaml/*.mli
+%{_libdir}/ocaml/libnums.a
%if %{with ocaml_opt}
-%{_libdir}/ocaml/*.[ao]
%{_libdir}/ocaml/*.cmx
%{_libdir}/ocaml/*.cmxa
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-num.git/commitdiff/bae1513a975d5963ad5cb309c57236195d69e797
More information about the pld-cvs-commit
mailing list