Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ocaml-re for openSUSE:Factory 
checked in at 2021-04-29 01:36:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ocaml-re (Old)
 and      /work/SRC/openSUSE:Factory/.ocaml-re.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ocaml-re"

Thu Apr 29 01:36:49 2021 rev:5 rq:867945 version:1.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ocaml-re/ocaml-re.changes        2020-04-13 
12:54:38.332683456 +0200
+++ /work/SRC/openSUSE:Factory/.ocaml-re.new.12324/ocaml-re.changes     
2021-04-29 01:37:18.354485358 +0200
@@ -1,0 +2,5 @@
+Thu Jan 21 21:21:21 UTC 2021 - [email protected]
+
+- remove dependency to ounit via _multibuild
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ocaml-re.spec ++++++
--- /var/tmp/diff_new_pack.NbuUaV/_old  2021-04-29 01:37:18.778485959 +0200
+++ /var/tmp/diff_new_pack.NbuUaV/_new  2021-04-29 01:37:18.782485965 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ocaml-re
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,35 @@
 #
 
 
-Name:           ocaml-re
+%define build_flavor @BUILD_FLAVOR@%{nil}
+%if "%{build_flavor}" == "testsuite"
+%define nsuffix -testsuite
+%else
+%define nsuffix %{nil}
+%endif
+
+%define     pkg ocaml-re
+Name:           %{pkg}%{nsuffix}
 Version:        1.9.0
 Release:        0
 %{?ocaml_preserve_bytecode}
 Summary:        Pure OCaml regular expressions
 License:        LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
 Group:          Development/Languages/OCaml
-Url:            https://opam.ocaml.org/packages/re
-Source:         %{name}-%{version}.tar.xz
+URL:            https://opam.ocaml.org/packages/re
+Source0:        %{pkg}-%{version}.tar.xz
 BuildRequires:  ocaml
 BuildRequires:  ocaml-dune
-BuildRequires:  ocaml-rpm-macros >= 20200220
-BuildRequires:  ocamlfind(oUnit)
+BuildRequires:  ocaml-rpm-macros >= 20210121
+%if 1
 BuildRequires:  ocamlfind(seq)
 BuildRequires:  ocamlfind(str)
+%endif
+
+%if "%{build_flavor}" == "testsuite"
+BuildRequires:  ocamlfind(oUnit)
+BuildRequires:  ocamlfind(re)
+%endif
 
 %description
 Pure OCaml regular expressions, with support for Perl and POSIX-style strings.
@@ -45,22 +59,31 @@
 developing applications that use %{name}.
 
 %prep
-%autosetup -p1
+%autosetup -p1 -n %{pkg}-%{version}
 
 %build
 dune_release_pkgs='re'
 %ocaml_dune_setup
+%if "%{build_flavor}" == ""
 %ocaml_dune_build
+%endif
 
 %install
+%if "%{build_flavor}" == ""
 %ocaml_dune_install
 %ocaml_create_file_list
+%endif
 
+%if "%{build_flavor}" == "testsuite"
 %check
 %ocaml_dune_test
+%endif
 
+%if "%{build_flavor}" == ""
 %files -f %{name}.files
 
 %files devel -f %{name}.files.devel
 
+%endif
+
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>testsuite</package>
</multibuild>

Reply via email to