The package rpms/ocaml-dbus.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/ocaml-dbus.git/commit/?id=d79e1a9....
Change:
+%ifarch %{ocaml_native_compiler}
Thanks.
Full change:
============
commit d79e1a9b02e2391ed32dfb59374a0117be52cd39
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Sat Nov 18 11:30:34 2017 +0000
Make sure -g is passed everywhere.
diff --git a/ocaml-dbus.spec b/ocaml-dbus.spec
index 708d5d9..b4ca552 100644
--- a/ocaml-dbus.spec
+++ b/ocaml-dbus.spec
@@ -1,5 +1,3 @@
-%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
-
Name: ocaml-dbus
Version: 0.30
Release: 12%{?dist}
@@ -37,8 +35,8 @@ developing applications that use %{name}.
%build
make \
-%if %opt
-OCAMLC="ocamlc.opt" OCAMLOPT="ocamlopt.opt"
OCAMLOPTFLAGS="-g"
+%ifarch %{ocaml_native_compiler}
+OCAMLC="ocamlc.opt -g" OCAMLOPT="ocamlopt.opt -g"
OCAMLMKLIB="ocamlmklib -g"
%else
all-byte
%endif
@@ -57,7 +55,7 @@ fi
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
-%if %opt
+%ifarch %{ocaml_native_compiler}
make OCAMLDESTDIR=$OCAMLFIND_DESTDIR install
%else
make OCAMLDESTDIR=$OCAMLFIND_DESTDIR install-byte
@@ -69,7 +67,7 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dlldbus_stubs.so
%files
%doc README
%{_libdir}/ocaml/dbus
-%if %opt
+%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/dbus/*.a
%exclude %{_libdir}/ocaml/dbus/*.cmxa
%exclude %{_libdir}/ocaml/dbus/*.cmx
@@ -81,7 +79,7 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dlldbus_stubs.so
%files devel
%doc README THANKS example_avahi.ml
-%if %opt
+%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/dbus/*.a
%{_libdir}/ocaml/dbus/*.cmxa
%{_libdir}/ocaml/dbus/*.cmx
@@ -92,6 +90,7 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dlldbus_stubs.so
%changelog
* Fri Nov 17 2017 Richard W.M. Jones <rjones(a)redhat.com> - 0.30-12
- OCaml 4.06.0 rebuild.
+- Make sure -g is passed everywhere.
* Tue Aug 08 2017 Richard W.M. Jones <rjones(a)redhat.com> - 0.30-11
- OCaml 4.05.0 rebuild.