Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-penlight for openSUSE:Factory 
checked in at 2021-09-12 20:09:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-penlight (Old)
 and      /work/SRC/openSUSE:Factory/.lua-penlight.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-penlight"

Sun Sep 12 20:09:45 2021 rev:4 rq:918515 version:1.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-penlight/lua-penlight.changes        
2021-02-18 20:54:16.939544801 +0100
+++ /work/SRC/openSUSE:Factory/.lua-penlight.new.1899/lua-penlight.changes      
2021-09-12 20:09:52.368106347 +0200
@@ -1,0 +2,10 @@
+Wed Apr 21 12:57:58 UTC 2021 - Callum Farmer <gm...@opensuse.org>
+
+- Update to version 1.10.0:
+  * Fix Lua 5.4 issues
+  * Fix Lua 5.1 compat issues
+  * Fixed a lot of bugs
+- Removed lua54.patch: upstream
+- Added lua5_4_3.patch: fix tests fail on Lua 5.4.3
+
+-------------------------------------------------------------------

Old:
----
  Penlight-1.6.0.tar.gz
  lua54.patch

New:
----
  Penlight-1.10.0.tar.gz
  lua5_4_3.patch

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

Other differences:
------------------
++++++ lua-penlight.spec ++++++
--- /var/tmp/diff_new_pack.EHwkex/_old  2021-09-12 20:09:52.856106900 +0200
+++ /var/tmp/diff_new_pack.EHwkex/_new  2021-09-12 20:09:52.856106900 +0200
@@ -16,22 +16,26 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-
-%define flavor @BUILD_FLAVOR@
+%define flavor @BUILD_FLAVOR@%{nil}
 %define mod_name penlight
-%define lua_value  %(echo "%{flavor}" |sed -e 's:lua::')
-%define with_docs 1
-
-Version:        1.6.0
+%define rname Penlight
+%ifluadefault
+%define with_main 1
+%endif
+%if "%{flavor}" == ""
+Name:           lua-%{mod_name}
+ExclusiveArch:  do_not_build
+%else
+Name:           %{flavor}-%{mod_name}
+%endif
+Version:        1.10.0
 Release:        0
 Summary:        Generally useful modules inspired by the Python standard 
libraries
 License:        MIT
 Group:          Development/Languages/Other
-URL:            http://stevedonovan.github.com/Penlight
-Source:         
https://github.com/stevedonovan/Penlight/archive/%{version}.tar.gz#/Penlight-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM lua54.patch gh#Tieske/Penlight#320 mc...@suse.com
-# workaround hardcoded version of Lua 5.3.
-Patch0:         lua54.patch
+URL:            https://lunarmodules.github.io/Penlight/
+Source0:        
https://github.com/lunarmodules/Penlight/archive/%{version}/%{rname}-%{version}.tar.gz
+Patch0:         lua5_4_3.patch
 BuildRequires:  %{flavor}-devel
 BuildRequires:  %{flavor}-ldoc
 BuildRequires:  %{flavor}-luafilesystem
@@ -39,15 +43,8 @@
 Requires:       %{flavor}
 Requires:       %{flavor}-luafilesystem
 BuildArch:      noarch
+Recommends:     lua-%{mod_name}-doc
 %lua_provides
-%if "%{flavor}" == ""
-Name:           lua-%{mod_name}
-ExclusiveArch:  do_not_build
-%else
-Name:           %{flavor}-%{mod_name}
-%endif
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 
 %description
 A set of pure Lua libraries focusing on input data handling (such as
@@ -55,19 +52,17 @@
 reduce, placeholder expressions,etc), and OS path management. Much of
 the functionality is inspired by the Python standard libraries.
 
-%if 0%{?with_docs}
-%package doc
-Summary:        Documentation for %{name}
+%if 0%{?with_main}
+%package -n lua-%{mod_name}-doc
+Summary:        Documentation for lua-%{mod_name}
 Group:          Development/Languages/Other
-Requires:       %{name} = %{version}
 
-%description doc
-Documentation for the package %{name}
+%description -n lua-%{mod_name}-doc
+Documentation for the package lua-%{mod_name}
 %endif
 
 %prep
-%setup -q -n Penlight-%{version}
-%autopatch -p1
+%autosetup -n %{rname}-%{version} -p1
 
 %build
 
@@ -92,7 +87,9 @@
 # Add bash/zsh-completion files
 # from completions/bash/penlight.bash penlight
 
-%files doc
+%if 0%{?with_main}
+%files -n lua-%{mod_name}-doc
 %doc docs
+%endif
 
 %changelog

++++++ Penlight-1.6.0.tar.gz -> Penlight-1.10.0.tar.gz ++++++
++++ 24480 lines of diff (skipped)

++++++ lua5_4_3.patch ++++++
>From 10dfaea6adfddab4f138faad67b563b7c33c90a3 Mon Sep 17 00:00:00 2001
From: Pierre Chapuis <g...@catwell.info>
Date: Thu, 29 Apr 2021 11:31:12 +0200
Subject: [PATCH] fix tests on Lua 5.4.3

see http://lua-users.org/lists/lua-l/2021-04/msg00024.html
---
 tests/lua/mod52.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/lua/mod52.lua b/tests/lua/mod52.lua
index 06e505e0..4b3ec7ce 100644
--- a/tests/lua/mod52.lua
+++ b/tests/lua/mod52.lua
@@ -15,7 +15,7 @@ function answer ()
         ["1"] = "attempt to call global 'print'",
         ["2"] = "attempt to call global 'print'",
         ["3"] = "attempt to call a nil value",
-        ["4"] = "attempt to call a nil value",
+        ["4"] = "a nil value",
     }
     local expected = versioned_errors[LUA_VERSION:match("Lua 5.(%d)")]
     test.assertraise(function()

Reply via email to