Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua54 for openSUSE:Factory checked 
in at 2021-02-04 20:23:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua54 (Old)
 and      /work/SRC/openSUSE:Factory/.lua54.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua54"

Thu Feb  4 20:23:33 2021 rev:7 rq:865991 version:5.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua54/lua54.changes      2020-12-08 
13:25:19.526662244 +0100
+++ /work/SRC/openSUSE:Factory/.lua54.new.28504/lua54.changes   2021-02-04 
20:24:14.726841907 +0100
@@ -1,0 +2,5 @@
+Fri Jan 22 12:38:04 UTC 2021 - Callum Farmer <gm...@opensuse.org>
+
+- Move tests to separate build
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ lua54.spec ++++++
--- /var/tmp/diff_new_pack.QX8YMf/_old  2021-02-04 20:24:15.430842978 +0100
+++ /var/tmp/diff_new_pack.QX8YMf/_new  2021-02-04 20:24:15.434842984 +0100
@@ -15,10 +15,16 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define name_ext -test
+%define debug_package %{nil}
+%else
+%define name_ext %{nil}
+%endif
 %define major_version 5.4
 %define libname liblua5_4-5
-Name:           lua54
+Name:           lua54%{name_ext}
 Version:        5.4.2
 Release:        0
 Summary:        Small Embeddable Language with Procedural Syntax
@@ -37,10 +43,14 @@
 Patch3:         main_test.patch
 # PATCH-FIX-UPSTREAM https://www.lua.org/bugs.html#5.4.2
 #Patch4:         upstream-bugs.patch
+%if "%{flavor}" == "test"
+BuildRequires:  lua54
+%else
 BuildRequires:  libtool
 BuildRequires:  lua-macros
 BuildRequires:  pkgconfig
 BuildRequires:  readline-devel
+%endif
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 Provides:       lua = %{version}
@@ -123,11 +133,18 @@
 of C functions, written in ANSI C.
 
 %prep
-%setup -q -n lua-%{version} -a1
-mv lua-%{version}-tests lua-tests
-%autopatch -p1
+%if "%{flavor}" == "test"
+%setup -T -q -b1 -n lua-%{version}-tests
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%else
+%setup -q -n lua-%{version}
+%patch0 -p1
+%endif
 
 # manpage
+%if "%{flavor}" != "test"
 cat doc/lua.1  | sed 's/TH LUA 1/TH LUA%{major_version} 1/' > 
doc/lua%{major_version}.1
 cat doc/luac.1 | sed 's/TH LUAC 1/TH LUAC%{major_version} 1/' > 
doc/luac%{major_version}.1
 
@@ -185,11 +202,12 @@
 ln -sf %{_sysconfdir}/alternatives/liblua.so %{buildroot}%{_libdir}/liblua.so
 touch %{buildroot}%{_sysconfdir}/alternatives/lua.pc
 ln -sf %{_sysconfdir}/alternatives/lua.pc 
%{buildroot}%{_libdir}/pkgconfig/lua.pc
-
+%else
 %check
-cd ./lua-tests/
-LD_LIBRARY_PATH=%{buildroot}%{_libdir} 
%{buildroot}%{_bindir}/lua%{major_version} all.lua
+LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
+%endif
 
+%if "%{flavor}" != "test"
 %post -n %{libname} -p /sbin/ldconfig
 %postun -n %{libname} -p /sbin/ldconfig
 
@@ -258,4 +276,5 @@
 %files doc
 %doc doc/*
 
+%endif
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>
++++++ attrib_test.patch ++++++
--- /var/tmp/diff_new_pack.QX8YMf/_old  2021-02-04 20:24:15.474843045 +0100
+++ /var/tmp/diff_new_pack.QX8YMf/_new  2021-02-04 20:24:15.474843045 +0100
@@ -1,5 +1,5 @@
---- a/lua-tests/attrib.lua
-+++ b/lua-tests/attrib.lua
+--- a/attrib.lua
++++ b/attrib.lua
 @@ -269,7 +269,7 @@ local p = ""   -- On Mac OS X, redefine
  local st, err, when = package.loadlib(DC"lib1", "*")
  if not st then

++++++ files_test.patch ++++++
--- /var/tmp/diff_new_pack.QX8YMf/_old  2021-02-04 20:24:15.494843075 +0100
+++ /var/tmp/diff_new_pack.QX8YMf/_new  2021-02-04 20:24:15.498843082 +0100
@@ -1,7 +1,7 @@
-Index: lua/lua-tests/files.lua
+Index: lua/files.lua
 ===================================================================
---- lua.orig/lua-tests/files.lua
-+++ lua/lua-tests/files.lua
+--- lua.orig/files.lua
++++ lua/files.lua
 @@ -81,7 +81,7 @@ assert(io.output() ~= io.stdout)
  
  if not _port then   -- invalid seek

++++++ main_test.patch ++++++
--- /var/tmp/diff_new_pack.QX8YMf/_old  2021-02-04 20:24:15.514843106 +0100
+++ /var/tmp/diff_new_pack.QX8YMf/_new  2021-02-04 20:24:15.514843106 +0100
@@ -1,5 +1,5 @@
---- a/lua-tests/main.lua
-+++ b/lua-tests/main.lua
+--- a/main.lua
++++ b/main.lua
 @@ -307,11 +307,11 @@
  ]]
  RUN([[lua -e "%s" -i < %s > %s]], prompt, prog, out)

Reply via email to