Hello community, here is the log from the commit of package ocaml-lablgtk2 for openSUSE:Factory checked in at 2013-01-14 09:43:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-lablgtk2 (Old) and /work/SRC/openSUSE:Factory/.ocaml-lablgtk2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-lablgtk2", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-lablgtk2/ocaml-lablgtk2.changes 2012-11-14 16:52:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ocaml-lablgtk2.new/ocaml-lablgtk2.changes 2013-01-14 09:43:36.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Jan 2 17:06:58 CET 2013 - [email protected] + +- update specfile to handle disabled do_opt variable + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-lablgtk2.spec ++++++ --- /var/tmp/diff_new_pack.WCHop0/_old 2013-01-14 09:43:37.000000000 +0100 +++ /var/tmp/diff_new_pack.WCHop0/_new 2013-01-14 09:43:37.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package ocaml-lablgtk2 # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,8 @@ # +%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) + Name: ocaml-lablgtk2 BuildRequires: gtk2-devel BuildRequires: gtksourceview18-devel @@ -43,6 +45,10 @@ Summary: An Objective Caml Interface to gtk2+ License: LGPL-2.1+ Group: Development/Libraries/Other +%if "%{_ignore_exclusive_arch}" != "" +%else +ExclusiveArch: %ix86 x86_64 +%endif %global __ocaml_requires_opts -i GtkSourceView_types -i GtkSourceView2_types @@ -97,6 +103,7 @@ Koji Kagawa <[email protected]> %prep +: _ignore_exclusive_arch '%{_ignore_exclusive_arch}' %setup -q -n lablgtk-%{version} find -name ".cvsignore" | xargs rm -v @@ -104,13 +111,14 @@ export CFLAGS="$RPM_OPT_FLAGS" make configure %configure --with-gnomecanvas -make world opt -%ifnarch ppc64 s390 s390x -cd src +make world +%if %opt +make opt +pushd src make lablgtk.cmxa make lablrsvg.cmxa make gtkInit.cmx -cd .. +popd %endif %install @@ -126,9 +134,11 @@ %{_bindir}/* %dir %{_libdir}/ocaml/lablgtk2 %{_libdir}/ocaml/lablgtk2/* +%if %opt %exclude %{_libdir}/ocaml/lablgtk2/*.a %exclude %{_libdir}/ocaml/lablgtk2/*.cmx %exclude %{_libdir}/ocaml/lablgtk2/*.cmxa +%endif %exclude %{_libdir}/ocaml/lablgtk2/*.h %exclude %{_libdir}/ocaml/lablgtk2/*.ml %exclude %{_libdir}/ocaml/lablgtk2/*.mli @@ -138,9 +148,11 @@ %doc examples %dir %{_libdir}/ocaml/lablgtk2 %{_libdir}/ocaml/stublibs +%if %opt %{_libdir}/ocaml/lablgtk2/*.a %{_libdir}/ocaml/lablgtk2/*.cmx %{_libdir}/ocaml/lablgtk2/*.cmxa +%endif %{_libdir}/ocaml/lablgtk2/*.h %{_libdir}/ocaml/lablgtk2/*.ml %{_libdir}/ocaml/lablgtk2/*.mli -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
