commit lua for openSUSE:Factory

2017-06-29 Thread root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2017-06-29 14:57:57

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is "lua"

Thu Jun 29 14:57:57 2017 rev:41 rq:504500 version:5.3.3

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2016-06-29 09:43:05.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2017-06-29 
14:58:00.518119062 +0200
@@ -1,0 +2,6 @@
+Tue Jun 13 21:30:38 UTC 2017 - jeng...@inai.de
+
+- Let package description adhere to guidelines: trim redundant
+  or biased wording and strip future goals.
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.djueiv/_old  2017-06-29 14:58:05.757379301 +0200
+++ /var/tmp/diff_new_pack.djueiv/_new  2017-06-29 14:58:05.757379301 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,7 @@
 Name:   lua
 Version:5.3.3
 Release:0
-Summary:Small Embeddable Language with Simple Procedural Syntax
+Summary:Small Embeddable Language with Procedural Syntax
 License:MIT
 Group:  Development/Languages/Other
 Url:http://www.lua.org
@@ -46,16 +46,15 @@
 
 %description
 Lua is a programming language originally designed for extending
-applications, but also frequently used as a general-purpose,
+applications, but is also frequently used as a general-purpose,
 stand-alone language.
 
-Lua combines simple procedural syntax (similar to Pascal) with powerful
+Lua combines procedural syntax (similar to Pascal) with
 data description constructs based on associative arrays and extensible
 semantics. Lua is dynamically typed, interpreted from byte codes, and
-has automatic memory management, making it ideal for configuration,
+has automatic memory management, making it suitable for configuration,
 scripting, and rapid prototyping. Lua is implemented as a small library
-of C functions, written in ANSI C, and the implementation goals are
-simplicity, efficiency, portability, and low embedding cost.
+of C functions, written in ANSI C.
 
 %package devel
 Summary:Development files for lua
@@ -67,7 +66,7 @@
 
 %description devel
 Lua is a programming language originally designed for extending
-applications, but also frequently used as a general-purpose,
+applications, but is also frequently used as a general-purpose,
 stand-alone language.
 
 This package contains files needed for embedding lua into your
@@ -81,16 +80,15 @@
 
 %description -n liblua%{libsuf}
 Lua is a programming language originally designed for extending
-applications, but also frequently used as a general-purpose,
+applications, but is also frequently used as a general-purpose,
 stand-alone language.
 
-Lua combines simple procedural syntax (similar to Pascal) with powerful
+Lua combines procedural syntax (similar to Pascal) with
 data description constructs based on associative arrays and extensible
 semantics. Lua is dynamically typed, interpreted from byte codes, and
-has automatic memory management, making it ideal for configuration,
+has automatic memory management, making it suitable for configuration,
 scripting, and rapid prototyping. Lua is implemented as a small library
-of C functions, written in ANSI C, and the implementation goals are
-simplicity, efficiency, portability, and low embedding cost.
+of C functions, written in ANSI C.
 
 %package doc
 Summary:Documentation for Lua, a small embeddable language
@@ -101,16 +99,15 @@
 
 %description doc
 Lua is a programming language originally designed for extending
-applications, but also frequently used as a general-purpose,
+applications, but is also frequently used as a general-purpose,
 stand-alone language.
 
-Lua combines simple procedural syntax (similar to Pascal) with powerful
+Lua combines procedural syntax (similar to Pascal) with
 data description constructs based on associative arrays and extensible
 semantics. Lua is dynamically typed, interpreted from byte codes, and
-has automatic memory management, making it ideal for configuration,
+has automatic memory management, making it suitable for configuration,
 scripting, and rapid prototyping. Lua is implemented as a small library
-of C functions, written in ANSI C, and the implementation goals are
-simplicity, efficiency, portability, and low embedding cost.
+of C 

commit lua for openSUSE:Factory

2016-06-29 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2016-06-29 09:43:04

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is "lua"

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2015-08-10 09:15:01.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2016-06-29 
09:43:05.0 +0200
@@ -1,0 +2,16 @@
+Thu Jun 16 09:32:46 UTC 2016 - i...@marguerite.su
+
+- update version 5.3.3
+  * bugfix release
+- changes in 5.3.2
+  * metatable may access its own deallocated field when it has a
+self reference in __newindex
+  * label between local definitions can mix-up their initializations
+  * gmatch iterator fails when called from a coroutine different
+from the one that created it
+- split lua-suse.diff to 3 reasonable patches
+  * add lua-5.3.3-prefix.patch
+  * add lua-5.3.3-shared.patch
+  * add lua-5.3.3-visible.patch
+
+---

Old:

  lua-5.3.1.tar.gz
  lua-suse.diff

New:

  lua-5.3.3-prefix.patch
  lua-5.3.3-shared.patch
  lua-5.3.3-visible.patch
  lua-5.3.3.tar.gz



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.aPFeTd/_old  2016-06-29 09:43:06.0 +0200
+++ /var/tmp/diff_new_pack.aPFeTd/_new  2016-06-29 09:43:06.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %define major_version 5.3
 %define libsuf5_3
 Name:   lua
-Version:5.3.1
+Version:5.3.3
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
@@ -28,12 +28,13 @@
 Source: http://www.lua.org/ftp/lua-%{version}.tar.gz
 Source1:macros.lua
 Source2:baselibs.conf
-# prefix and build shared libraries (upstream don't want this in Makefile)
-# visibility: I don't see the point why divert from upstream except that
-# luaU_dump, luaP_opmodes and luaP_opnames need to be visible
-# to luac; if you will divert, don't forgot that LUAI_DDEC
-# prefixes declaration of _variables_
-Patch:  %{name}-suse.diff
+# PATCH-FIX-UPSTREAM change prefix to /usr/
+Patch:  lua-5.3.3-prefix.patch
+# PATCH-FIX-UPSTREAM shared library support
+Patch1: lua-5.3.3-shared.patch
+# PATCH-FIX-UPSTREAM make luaU_dump, luaP_opmodes and luaP_opnames visible
+# to luac
+Patch2: lua-5.3.3-visible.patch
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 BuildRequires:  update-alternatives
@@ -114,6 +115,8 @@
 %prep
 %setup -q
 %patch -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
 sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h

++ lua-5.3.3-prefix.patch ++
Index: lua-5.3.3/src/luaconf.h
===
--- lua-5.3.3.orig/src/luaconf.h
+++ lua-5.3.3/src/luaconf.h
@@ -188,7 +188,7 @@
 
 #else  /* }{ */
 
-#define LUA_ROOT   "/usr/local/"
+#define LUA_ROOT   "/usr/"
 #define LUA_LDIR   LUA_ROOT "share/lua/" LUA_VDIR "/"
 #define LUA_CDIR   LUA_ROOT "lib/lua/" LUA_VDIR "/"
 #define LUA_PATH_DEFAULT  \
++ lua-5.3.3-shared.patch ++
Index: lua-5.3.3/Makefile
===
--- lua-5.3.3.orig/Makefile
+++ lua-5.3.3/Makefile
@@ -41,7 +41,7 @@ PLATS= aix bsd c89 freebsd generic linux
 # What to install.
 TO_BIN= lua luac
 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
-TO_LIB= liblua.a
+TO_LIB= liblua.a liblua.so.$V
 TO_MAN= lua.1 luac.1
 
 # Lua version and release.
@@ -61,6 +61,7 @@ install: dummy
cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) 
$(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
+   ln -s liblua.so.$V $(INSTALL_LIB)/liblua.so
cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
 
Index: lua-5.3.3/src/Makefile
===
--- lua-5.3.3.orig/src/Makefile
+++ lua-5.3.3/src/Makefile
@@ -29,6 +29,7 @@ MYOBJS=
 PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
 
 LUA_A= liblua.a
+LUA_SO= liblua.so
 CORE_O=lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o 
llex.o \
 

commit lua for openSUSE:Factory

2015-08-10 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2015-08-10 09:15:00

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2015-08-05 06:48:24.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2015-08-10 
09:15:01.0 +0200
@@ -1,0 +2,5 @@
+Fri Jul 31 18:12:35 UTC 2015 - jeng...@inai.de
+
+- Update RPM group classification
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.HFU6PW/_old  2015-08-10 09:15:02.0 +0200
+++ /var/tmp/diff_new_pack.HFU6PW/_new  2015-08-10 09:15:02.0 +0200
@@ -23,7 +23,7 @@
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
-Group:  System/Libraries
+Group:  Development/Languages/Other
 Url:http://www.lua.org
 Source: http://www.lua.org/ftp/lua-%{version}.tar.gz
 Source1:macros.lua
@@ -73,7 +73,7 @@
 application.
 
 %package -n liblua%{libsuf}
-Summary:Small Embeddable Language with Simple Procedural Syntax
+Summary:The Lua integration library
 Group:  System/Libraries
 Provides:   %{name}-libs = %{version}
 Obsoletes:  %{name}-libs  %{version}
@@ -92,8 +92,8 @@
 simplicity, efficiency, portability, and low embedding cost.
 
 %package doc
-Summary:Small Embeddable Language with Simple Procedural Syntax
-Group:  System/Libraries
+Summary:Documentation for Lua, a small embeddable language
+Group:  Documentation/HTML
 %if 0%{?suse_version} = 1120
 BuildArch:  noarch
 %endif




commit lua for openSUSE:Factory

2015-08-04 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2015-08-05 06:48:24

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2015-07-23 15:21:26.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2015-08-05 
06:48:24.0 +0200
@@ -1,0 +2,8 @@
+Thu Jul 30 11:52:14 UTC 2015 - dims...@opensuse.org
+
+- Provide Lua(API) = 5.3, so that packages installing files to
+  /usr/share/lua/5.3 can properly depend on the right lua branch.
+- Provide Lua(devel) = 5.3 by lua-devel and conflict with other
+  packages providing Lua(devel) (e.g lua51-devel, lua52-devel...).
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.BTzgTM/_old  2015-08-05 06:48:25.0 +0200
+++ /var/tmp/diff_new_pack.BTzgTM/_new  2015-08-05 06:48:25.0 +0200
@@ -38,6 +38,9 @@
 BuildRequires:  readline-devel
 BuildRequires:  update-alternatives
 Requires(pre):  update-alternatives
+# As other packages install files into /usr/share/lua/lua_version, they ought 
to require lua = lua_version (which is only major_version)
+# in order to facilitate this, we provide the corresponding symbol here.
+Provides:   Lua(API) = %{major_version}
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -58,9 +61,8 @@
 Group:  Development/Libraries/C and C++
 Requires:   %{name} = %{version}
 Requires:   liblua%{libsuf} = %{version}
-Conflicts:  lua52-devel
-Conflicts:  lua51-devel
-Conflicts:  lua50-devel
+Provides:   Lua(devel) = %{major_version}
+Conflicts:  otherproviders(Lua(devel))
 
 %description devel
 Lua is a programming language originally designed for extending




commit lua for openSUSE:Factory

2015-07-23 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2015-07-23 15:21:25

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2015-03-18 12:59:46.0 
+0100
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2015-07-23 
15:21:26.0 +0200
@@ -1,0 +2,17 @@
+Mon Jul 13 16:33:31 UTC 2015 - i...@marguerite.su
+
+- macros.lua installs to lua-devel
+- build with LUA_COMPAT_MODULE to compatible w/ old module system
+
+---
+Fri Jul 10 09:52:48 UTC 2015 - i...@marguerite.su
+
+- update version 5.3.1
+  * integers (64-bit by default)
+  * official support for 32-bit numbers
+  * bitwise operators
+  * basic utf-8 support
+  * functions for packing and unpacking values
+  * see http://www.lua.org/manual/5.3/readme.html#changes
+
+---

Old:

  lua-5.2.4.tar.gz

New:

  lua-5.3.1.tar.gz



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.qr4PH0/_old  2015-07-23 15:21:26.0 +0200
+++ /var/tmp/diff_new_pack.qr4PH0/_new  2015-07-23 15:21:26.0 +0200
@@ -16,10 +16,10 @@
 #
 
 
-%define major_version 5.2
-%define libsuf5_2
+%define major_version 5.3
+%define libsuf5_3
 Name:   lua
-Version:5.2.4
+Version:5.3.1
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
@@ -33,7 +33,7 @@
 # luaU_dump, luaP_opmodes and luaP_opnames need to be visible
 # to luac; if you will divert, don't forgot that LUAI_DDEC
 # prefixes declaration of _variables_
-Patch0: %{name}-suse.diff
+Patch:  %{name}-suse.diff
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 BuildRequires:  update-alternatives
@@ -58,8 +58,9 @@
 Group:  Development/Libraries/C and C++
 Requires:   %{name} = %{version}
 Requires:   liblua%{libsuf} = %{version}
-Conflicts:  lua50-devel
+Conflicts:  lua52-devel
 Conflicts:  lua51-devel
+Conflicts:  lua50-devel
 
 %description devel
 Lua is a programming language originally designed for extending
@@ -110,11 +111,11 @@
 
 %prep
 %setup -q
-%patch0 -p1
+%patch -p1
 
 %build
 sed -i -e s@lib/lua/@%{_lib}/lua/@g src/luaconf.h
-make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -std=gnu99 
-D_GNU_SOURCE -fPIC -DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory 
-lncurses V=%{major_version} all
+make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -std=gnu99 
-D_GNU_SOURCE -fPIC -DLUA_USE_LINUX -DLUA_COMPAT_MODULE MYLIBS=-Wl,-E -ldl 
-lreadline -lhistory -lncurses V=%{major_version} all
 
 %install
 make install INSTALL_TOP=%{buildroot}%{_prefix} 
INSTALL_LIB=%{buildroot}%{_libdir} 
INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} 
INSTALL_MAN=%{buildroot}%{_mandir}/man1
@@ -184,7 +185,6 @@
 %ghost %{_sysconfdir}/alternatives/luac
 %ghost %{_sysconfdir}/alternatives/lua.1.gz
 %ghost %{_sysconfdir}/alternatives/luac.1.gz
-%{_sysconfdir}/rpm/macros.lua
 
 %files -n liblua%{libsuf}
 %defattr(-,root,root)
@@ -192,6 +192,7 @@
 
 %files devel
 %defattr(-,root,root)
+%config %{_sysconfdir}/rpm/macros.lua
 %{_includedir}/lauxlib.h
 %{_includedir}/lua.h
 %{_includedir}/lua.hpp

++ baselibs.conf ++
--- /var/tmp/diff_new_pack.qr4PH0/_old  2015-07-23 15:21:26.0 +0200
+++ /var/tmp/diff_new_pack.qr4PH0/_new  2015-07-23 15:21:26.0 +0200
@@ -1 +1 @@
-liblua5_2
+liblua5_3

++ lua-5.2.4.tar.gz - lua-5.3.1.tar.gz ++
 26267 lines of diff (skipped)

++ lua-suse.diff ++
--- /var/tmp/diff_new_pack.qr4PH0/_old  2015-07-23 15:21:26.0 +0200
+++ /var/tmp/diff_new_pack.qr4PH0/_new  2015-07-23 15:21:26.0 +0200
@@ -1,8 +1,8 @@
-Index: lua-5.2.4/Makefile
+Index: lua-5.3.1/Makefile
 ===
 lua-5.2.4.orig/Makefile
-+++ lua-5.2.4/Makefile
-@@ -41,7 +41,7 @@ PLATS= aix ansi bsd freebsd generic linu
+--- lua-5.3.1.orig/Makefile
 lua-5.3.1/Makefile
+@@ -41,7 +41,7 @@ PLATS= aix bsd c89 freebsd generic linux
  # What to install.
  TO_BIN= lua luac
  TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
@@ -19,12 +19,12 @@
cd src  $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
cd doc  $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
  
-Index: lua-5.2.4/src/Makefile
+Index: lua-5.3.1/src/Makefile
 ===
 lua-5.2.4.orig/src/Makefile
-+++ lua-5.2.4/src/Makefile
+--- 

commit lua for openSUSE:Factory

2015-03-18 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2015-03-18 12:59:45

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2014-09-17 21:25:09.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2015-03-18 
12:59:46.0 +0100
@@ -1,0 +2,8 @@
+Sun Mar 15 00:19:08 UTC 2015 - mplus...@suse.com
+
+- Update to 5.2.4
+  * Compiler can optimize away overflow check in table.unpack.
+  * Ephemeron table can wrongly collect entry with strong key.
+  * Chunk with too many lines may crash Lua.
+
+---

Old:

  lua-5.2.3.tar.gz

New:

  lua-5.2.4.tar.gz



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.Euy1KB/_old  2015-03-18 12:59:47.0 +0100
+++ /var/tmp/diff_new_pack.Euy1KB/_new  2015-03-18 12:59:47.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX 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,8 +16,10 @@
 #
 
 
+%define major_version 5.2
+%define libsuf5_2
 Name:   lua
-Version:5.2.3
+Version:5.2.4
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
@@ -32,13 +34,11 @@
 # to luac; if you will divert, don't forgot that LUAI_DDEC
 # prefixes declaration of _variables_
 Patch0: %{name}-suse.diff
-%define major_version 5.2
-%define libsuf5_2
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 BuildRequires:  update-alternatives
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Requires(pre):  update-alternatives
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 Lua is a programming language originally designed for extending
@@ -150,7 +150,7 @@
 LD_LIBRARY_PATH=`pwd` ./lua -e 'print(0)'  /dev/null
 
 %post
-/usr/sbin/update-alternatives --install
   \
+%{_sbindir}/update-alternatives --install  
 \
 %{_bindir}/lualua   %{_bindir}/lua%{major_version} 
15 \
 --slave %{_bindir}/luac   luac  
%{_bindir}/luac%{major_version}   \
 --slave %{_mandir}/man1/lua.1.gz  lua.1.gz  
%{_mandir}/man1/lua%{major_version}.1.gz  \
@@ -158,7 +158,7 @@
 
 %preun
 if [ $1 = 0 ] ; then
-/usr/sbin/update-alternatives --remove lua %{_bindir}/lua%{major_version}
+%{_sbindir}/update-alternatives --remove lua %{_bindir}/lua%{major_version}
 fi
 
 %post -n liblua%{libsuf} -p /sbin/ldconfig

++ lua-5.2.3.tar.gz - lua-5.2.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.3/Makefile new/lua-5.2.4/Makefile
--- old/lua-5.2.3/Makefile  2013-11-10 01:49:35.0 +0100
+++ new/lua-5.2.4/Makefile  2015-02-24 02:28:54.0 +0100
@@ -46,7 +46,7 @@
 
 # Lua version and release.
 V= 5.2
-R= $V.3
+R= $V.4
 
 # Targets start here.
 all:   $(PLAT)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.3/README new/lua-5.2.4/README
--- old/lua-5.2.3/README2013-11-10 01:49:06.0 +0100
+++ new/lua-5.2.4/README2015-02-26 01:31:57.0 +0100
@@ -1,5 +1,5 @@
 
-This is Lua 5.2.3, released on 11 Nov 2013.
+This is Lua 5.2.4, released on 25 Feb 2015.
 
 For installation instructions, license details, and
 further information about Lua, see doc/readme.html.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.3/doc/contents.html 
new/lua-5.2.4/doc/contents.html
--- old/lua-5.2.3/doc/contents.html 2013-03-12 15:22:19.0 +0100
+++ new/lua-5.2.4/doc/contents.html 2015-02-24 02:24:36.0 +0100
@@ -7,7 +7,6 @@
 STYLE TYPE=text/css
 ul {
list-style-type: none ;
-   list-style-position: outside ;
 }
 /STYLE
 /HEAD
@@ -33,7 +32,7 @@
 A HREF=#indexindex/A
 HR
 SMALL
-Copyright copy; 2011ndash;2013 Lua.org, PUC-Rio.
+Copyright copy; 2011ndash;2015 Lua.org, PUC-Rio.
 Freely available under the terms of the
 A HREF=http://www.lua.org/license.html;Lua license/A.
 /SMALL
@@ -139,10 +138,10 @@
 TD
 H3A NAME=functionsLua functions/A/H3
 P
+A HREF=manual.html#6.1basic/ABR
 A HREF=manual.html#pdf-_G_G/ABR
 A 

commit lua for openSUSE:Factory

2014-09-17 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2014-09-17 21:24:51

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2014-09-15 17:40:04.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2014-09-17 
21:25:09.0 +0200
@@ -1,0 +2,5 @@
+Wed Sep 17 15:04:25 UTC 2014 - i...@marguerite.su
+
+- the %dir is still needed.
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.RkhkS4/_old  2014-09-17 21:25:10.0 +0200
+++ /var/tmp/diff_new_pack.RkhkS4/_new  2014-09-17 21:25:10.0 +0200
@@ -168,6 +168,10 @@
 %files
 %defattr(-,root,root)
 %doc README
+%dir %{_libdir}/lua
+%dir %{_libdir}/lua/%{major_version}
+%dir %{_datadir}/lua
+%dir %{_datadir}/lua/%{major_version}
 %{_bindir}/lua%{major_version}
 %{_bindir}/luac%{major_version}
 %{_mandir}/man1/lua%{major_version}.1.gz

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lua for openSUSE:Factory

2014-09-15 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2014-09-15 17:39:51

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2014-04-03 16:38:45.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2014-09-15 
17:40:04.0 +0200
@@ -1,0 +2,10 @@
+Fri Sep 12 09:19:07 UTC 2014 - pgaj...@suse.com
+
+- fix update-alternatives 
+
+---
+Wed Sep 10 10:21:23 UTC 2014 - pgaj...@suse.com
+
+- fix /etc/rpm/macros.lua perms
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.m1cqO2/_old  2014-09-15 17:40:04.0 +0200
+++ /var/tmp/diff_new_pack.m1cqO2/_new  2014-09-15 17:40:04.0 +0200
@@ -118,11 +118,17 @@
 
 %install
 make install INSTALL_TOP=%{buildroot}%{_prefix} 
INSTALL_LIB=%{buildroot}%{_libdir} 
INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} 
INSTALL_MAN=%{buildroot}%{_mandir}/man1
+# update-alternatives
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 for file in lua luac ; do
 mv %{buildroot}%{_bindir}/${file}
%{buildroot}%{_bindir}/${file}%{major_version}
+touch %{buildroot}%{_sysconfdir}/alternatives/${file}
+ln -sf %{_sysconfdir}/alternatives/${file} 
%{buildroot}%{_bindir}/${file}
 mv %{buildroot}%{_mandir}/man1/${file}.1 
%{buildroot}%{_mandir}/man1/${file}%{major_version}.1
+touch %{buildroot}%{_sysconfdir}/alternatives/${file}.1.gz
+ln -sf %{_sysconfdir}/alternatives/${file}.1.gz 
%{buildroot}%{_mandir}/man1/${file}.1.gz
 done
-install -D %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.lua
+install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.lua
 
 # create pkg-config file
 cat  lua.pc -EOF
@@ -162,23 +168,19 @@
 %files
 %defattr(-,root,root)
 %doc README
-%ghost %{_mandir}/man1/lua.1.gz
-%{_mandir}/man1/lua%{major_version}.1*
-%ghost %{_mandir}/man1/luac.1.gz
-%{_mandir}/man1/luac%{major_version}.1*
-%ghost %{_bindir}/lua
 %{_bindir}/lua%{major_version}
-%ghost %{_bindir}/luac
 %{_bindir}/luac%{major_version}
-%dir %{_libdir}/lua
-%dir %{_libdir}/lua/%{major_version}
-%dir %{_datadir}/lua
-%dir %{_datadir}/lua/%{major_version}
-%{_sysconfdir}/rpm/macros.lua
+%{_mandir}/man1/lua%{major_version}.1.gz
+%{_mandir}/man1/luac%{major_version}.1.gz
+%{_bindir}/lua
+%{_bindir}/luac
+%{_mandir}/man1/lua.1.gz
+%{_mandir}/man1/luac.1.gz
+%ghost %{_sysconfdir}/alternatives/lua
 %ghost %{_sysconfdir}/alternatives/luac
 %ghost %{_sysconfdir}/alternatives/lua.1.gz
 %ghost %{_sysconfdir}/alternatives/luac.1.gz
-%ghost %{_sysconfdir}/alternatives/lua
+%{_sysconfdir}/rpm/macros.lua
 
 %files -n liblua%{libsuf}
 %defattr(-,root,root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lua for openSUSE:Factory

2014-04-03 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2014-04-03 16:38:35

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2013-09-09 19:45:04.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2014-04-03 
16:38:45.0 +0200
@@ -1,0 +2,13 @@
+Mon Mar 31 11:05:05 UTC 2014 - pgaj...@suse.com
+
+- updated to 5.2.3:
+  * yieldable pcall and metamethods
+  * new lexical scheme for globals
+  * ephemeron tables
+  * new library for bitwise operations
+  * light C functions
+  * emergency garbage collector
+  * CODEgoto/CODE statement
+  * finalizers for tables
+
+---

Old:

  lua-5.2.2.tar.gz

New:

  lua-5.2.3.tar.gz



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.7VNHF9/_old  2014-04-03 16:38:46.0 +0200
+++ /var/tmp/diff_new_pack.7VNHF9/_new  2014-04-03 16:38:46.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -17,7 +17,7 @@
 
 
 Name:   lua
-Version:5.2.2
+Version:5.2.3
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT

++ lua-5.2.2.tar.gz - lua-5.2.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.2/Makefile new/lua-5.2.3/Makefile
--- old/lua-5.2.2/Makefile  2012-05-17 16:05:54.0 +0200
+++ new/lua-5.2.3/Makefile  2013-11-10 01:49:35.0 +0100
@@ -46,7 +46,7 @@
 
 # Lua version and release.
 V= 5.2
-R= $V.1
+R= $V.3
 
 # Targets start here.
 all:   $(PLAT)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.2/README new/lua-5.2.3/README
--- old/lua-5.2.2/README2013-03-21 12:57:07.0 +0100
+++ new/lua-5.2.3/README2013-11-10 01:49:06.0 +0100
@@ -1,5 +1,5 @@
 
-This is Lua 5.2.2, released on 21 Mar 2013.
+This is Lua 5.2.3, released on 11 Nov 2013.
 
 For installation instructions, license details, and
 further information about Lua, see doc/readme.html.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.2/doc/lua.css new/lua-5.2.3/doc/lua.css
--- old/lua-5.2.2/doc/lua.css   2012-11-10 21:12:33.0 +0100
+++ new/lua-5.2.3/doc/lua.css   2013-11-10 01:56:14.0 +0100
@@ -1,30 +1,37 @@
+html {
+   background-color: #F8F8F8 ;
+}
+
 body {
+   border: solid #a0a0a0 1px ;
+   border-radius: 20px ;
+   padding: 26px ;
+   margin: 16px ;
color: #00 ;
background-color: #FF ;
font-family: Helvetica, Arial, sans-serif ;
text-align: justify ;
-   margin-right: 30px ;
-   margin-left: 30px ;
 }
 
 h1, h2, h3, h4 {
font-family: Verdana, Geneva, sans-serif ;
font-weight: normal ;
-   font-style: italic ;
+   font-style: normal ;
 }
 
 h2 {
padding-top: 0.4em ;
padding-bottom: 0.4em ;
-   padding-left: 1em ;
-   padding-right: 1em ;
-   background-color: #E0E0FF ;
+   padding-left: 0.8em ;
+   padding-right: 0.8em ;
+   background-color: #D0D0FF ;
border-radius: 8px ;
+   border: solid #a0a0a0 1px ;
 }
 
 h3 {
padding-left: 0.5em ;
-   border-left: solid #E0E0FF 1em ;
+   border-left: solid #D0D0FF 1em ;
 }
 
 table h3 {
@@ -45,7 +52,7 @@
 
 a:link:hover, a:visited:hover {
color: #80 ;
-   background-color: #E0E0FF ;
+   background-color: #D0D0FF ;
 }
 
 a:link:active, a:visited:active {
@@ -57,17 +64,23 @@
height: 1px ;
color: #a0a0a0 ;
background-color: #a0a0a0 ;
+   display: none ;
+}
+
+table hr {
+   display: block ;
 }
 
 :target {
background-color: #F8F8F8 ;
padding: 8px ;
border: solid #a0a0a0 2px ;
+   border-radius: 8px ;
 }
 
 .footer {
color: gray ;
-   font-size: small ;
+   font-size: x-small ;
 }
 
 input[type=text] {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-5.2.2/doc/manual.css new/lua-5.2.3/doc/manual.css
--- old/lua-5.2.2/doc/manual.css2012-11-10 21:24:49.0 +0100
+++ new/lua-5.2.3/doc/manual.css2013-11-10 

commit lua for openSUSE:Factory

2013-09-09 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2013-09-09 19:45:03

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2013-02-20 09:28:53.0 
+0100
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2013-09-09 
19:45:04.0 +0200
@@ -1,0 +2,13 @@
+Mon Sep  9 11:12:20 UTC 2013 - pgaj...@suse.com
+
+- updated to 5.2.2: bugfix release, fixed:
+  * Stack overflow in vararg functions with many fixed parameters 
+called with few arguments. 
+  * Garbage collector can trigger too many times in recursive loops.
+  * Wrong assert when reporting concatenation errors (manifests only 
+when Lua is compiled in debug mode). 
+  * Wrong error message in some short-cut expressions. 
+  * luac listings choke on long strings. 
+  * see http://www.lua.org/bugs.html for details
+
+---

Old:

  lua-5.2.1.tar.bz2

New:

  lua-5.2.2.tar.gz



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.LiC8JN/_old  2013-09-09 19:45:07.0 +0200
+++ /var/tmp/diff_new_pack.LiC8JN/_new  2013-09-09 19:45:07.0 +0200
@@ -17,13 +17,13 @@
 
 
 Name:   lua
-Version:5.2.1
+Version:5.2.2
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
 Group:  System/Libraries
 Url:http://www.lua.org
-Source: %{name}-%{version}.tar.bz2
+Source: http://www.lua.org/ftp/lua-%{version}.tar.gz
 Source1:macros.lua
 Source2:baselibs.conf
 # prefix and build shared libraries (upstream don't want this in Makefile)
@@ -175,6 +175,10 @@
 %dir %{_datadir}/lua
 %dir %{_datadir}/lua/%{major_version}
 %{_sysconfdir}/rpm/macros.lua
+%ghost %{_sysconfdir}/alternatives/luac
+%ghost %{_sysconfdir}/alternatives/lua.1.gz
+%ghost %{_sysconfdir}/alternatives/luac.1.gz
+%ghost %{_sysconfdir}/alternatives/lua
 
 %files -n liblua%{libsuf}
 %defattr(-,root,root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lua for openSUSE:Factory

2013-02-20 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2013-02-20 09:28:52

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2013-02-07 10:39:14.0 
+0100
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2013-02-20 
09:28:53.0 +0100
@@ -1,0 +2,10 @@
+Tue Feb 19 11:30:57 UTC 2013 - pgaj...@suse.com
+
+- fix visibility of global variables [bnc#803791]
+  * modified lua-suse.diff
+- added LUA_SO target as dependency to LUAC_T and LUA_T to fix
+  parallel build
+  * modified lua-suse.diff
+- added regresion check for this error into %check
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.DxgX8E/_old  2013-02-20 09:28:54.0 +0100
+++ /var/tmp/diff_new_pack.DxgX8E/_new  2013-02-20 09:28:54.0 +0100
@@ -27,6 +27,10 @@
 Source1:macros.lua
 Source2:baselibs.conf
 # prefix and build shared libraries (upstream don't want this in Makefile)
+# visibility: I don't see the point why divert from upstream except that
+# luaU_dump, luaP_opmodes and luaP_opnames need to be visible
+# to luac; if you will divert, don't forgot that LUAI_DDEC
+# prefixes declaration of _variables_
 Patch0: %{name}-suse.diff
 %define major_version 5.2
 %define libsuf5_2
@@ -110,7 +114,6 @@
 
 %build
 sed -i -e s@lib/lua/@%{_lib}/lua/@g src/luaconf.h
-grep LUA_CDIR src/luaconf.h 
 make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -std=gnu99 
-D_GNU_SOURCE -fPIC -DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory 
-lncurses V=%{major_version} all
 
 %install
@@ -136,6 +139,10 @@
 EOF
 install -D -m 644 lua.pc %{buildroot}/%{_libdir}/pkgconfig/lua.pc
 
+%check
+cd src
+LD_LIBRARY_PATH=`pwd` ./lua -e 'print(0)'  /dev/null
+
 %post
 /usr/sbin/update-alternatives --install
   \
 %{_bindir}/lualua   %{_bindir}/lua%{major_version} 
15 \

++ lua-suse.diff ++
--- /var/tmp/diff_new_pack.DxgX8E/_old  2013-02-20 09:28:54.0 +0100
+++ /var/tmp/diff_new_pack.DxgX8E/_new  2013-02-20 09:28:54.0 +0100
@@ -53,12 +53,14 @@
$(AR) $@ $(BASE_O)
$(RANLIB) $@
  
- $(LUA_T): $(LUA_O) $(LUA_A)
+-$(LUA_T): $(LUA_O) $(LUA_A)
 -  $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
++$(LUA_T): $(LUA_O) $(LUA_SO)
 +  $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS)
  
- $(LUAC_T): $(LUAC_O) $(LUA_A)
+-$(LUAC_T): $(LUAC_O) $(LUA_A)
 -  $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
++$(LUAC_T): $(LUAC_O) $(LUA_SO)
 +  $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUAC_O) -L. -llua $(LIBS)
  
  clean:
@@ -83,27 +85,6 @@
  #define LUA_LDIR  LUA_ROOT share/lua/ LUA_VDIR
  #define LUA_CDIR  LUA_ROOT lib/lua/ LUA_VDIR
  #define LUA_PATH_DEFAULT  \
-@@ -150,7 +150,7 @@
- 
- #else /* }{ */
- 
--#define LUA_API   extern
-+#define LUA_API   __attribute__ ((visibility (default)))
- 
- #endif/* } */
- 
-@@ -176,9 +176,9 @@
- */
- #if defined(__GNUC__)  ((__GNUC__*100 + __GNUC_MINOR__) = 302)  \
- defined(__ELF__)  /* { */
--#define LUAI_FUNC __attribute__((visibility(hidden))) extern
-+#define LUAI_FUNC __attribute__ ((visibility (hidden)))
- #define LUAI_DDEC LUAI_FUNC
--#define LUAI_DDEF /* empty */
-+#define LUAI_DDEF LUAI_FUNC /* empty */
- 
- #else /* }{ */
- #define LUAI_FUNC extern
 Index: lua-5.2.1/src/lundump.h
 ===
 --- lua-5.2.1.orig/src/lundump.h
@@ -113,7 +94,29 @@
  
  /* dump one chunk; from ldump.c */
 -LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* 
data, int strip);
-+__attribute__ ((visibility (default))) int luaU_dump (lua_State* L, const 
Proto* f, lua_Writer w, void* data, int strip);
++LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* 
data, int strip);
  
  /* data to catch conversion errors */
  #define LUAC_TAIL \x19\x93\r\n\x1a\n
+Index: lua-5.2.1/src/lopcodes.h
+===
+--- lua-5.2.1.orig/src/lopcodes.h
 lua-5.2.1/src/lopcodes.h
+@@ -269,7 +269,7 @@ enum OpArgMask {
+   OpArgK   /* argument is a constant or register/constant */
+ };
+ 
+-LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES];
++LUA_API const lu_byte luaP_opmodes[NUM_OPCODES];
+ 

commit lua for openSUSE:Factory

2013-02-07 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2013-02-07 10:39:12

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2012-09-01 10:32:31.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2013-02-07 
10:39:14.0 +0100
@@ -1,0 +2,18 @@
+Tue Feb  5 14:18:18 UTC 2013 - co...@suse.com
+
+- update alternatives need to be %ghosts
+
+---
+Thu Nov 15 15:11:34 UTC 2012 - pgaj...@suse.com
+
+- export luaU_dump in order to fix linking of luac binary 
+
+---
+Tue Oct  9 14:55:31 UTC 2012 - crrodrig...@opensuse.org
+
+- Tweak lua-suse.diff again:
+* LUA_IFUNC must be defined as upstream but without extern, 
+  revert the previous mod.
+* LUA_API must be defined as visibility default 
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.j0tMQ2/_old  2013-02-07 10:39:16.0 +0100
+++ /var/tmp/diff_new_pack.j0tMQ2/_new  2013-02-07 10:39:16.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# 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
@@ -111,7 +111,7 @@
 %build
 sed -i -e s@lib/lua/@%{_lib}/lua/@g src/luaconf.h
 grep LUA_CDIR src/luaconf.h 
-make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -fPIC 
-DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory -lncurses 
V=%{major_version} all
+make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -std=gnu99 
-D_GNU_SOURCE -fPIC -DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory 
-lncurses V=%{major_version} all
 
 %install
 make install INSTALL_TOP=%{buildroot}%{_prefix} 
INSTALL_LIB=%{buildroot}%{_libdir} 
INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} 
INSTALL_MAN=%{buildroot}%{_mandir}/man1
@@ -155,9 +155,13 @@
 %files
 %defattr(-,root,root)
 %doc README
+%ghost %{_mandir}/man1/lua.1.gz
 %{_mandir}/man1/lua%{major_version}.1*
+%ghost %{_mandir}/man1/luac.1.gz
 %{_mandir}/man1/luac%{major_version}.1*
+%ghost %{_bindir}/lua
 %{_bindir}/lua%{major_version}
+%ghost %{_bindir}/luac
 %{_bindir}/luac%{major_version}
 %dir %{_libdir}/lua
 %dir %{_libdir}/lua/%{major_version}

++ lua-suse.diff ++
--- /var/tmp/diff_new_pack.j0tMQ2/_old  2013-02-07 10:39:16.0 +0100
+++ /var/tmp/diff_new_pack.j0tMQ2/_new  2013-02-07 10:39:16.0 +0100
@@ -40,13 +40,13 @@
  ALL_A= $(LUA_A)
  
  # Targets start here.
-@@ -55,15 +56,20 @@ o: $(ALL_O)
+@@ -55,21 +56,26 @@ o: $(ALL_O)
  
  a:$(ALL_A)
  
 +# shared libraries (for Linux)
 +$(LUA_SO): $(CORE_O) $(LIB_O)
-+  $(CC) -o $(LUA_SO).$V -shared -Wl,-soname,$(LUA_SO).$V $(CORE_O) 
$(LIB_O) -lm -ldl
++  $(CC) $(MYCFLAGS) -o $(LUA_SO).$V -shared -Wl,-soname,$(LUA_SO).$V 
$(CORE_O) $(LIB_O) -lm -ldl
 +  ln -fs $(LUA_SO).$(V) $(LUA_SO)
 +
  $(LUA_A): $(BASE_O)
@@ -55,14 +55,21 @@
  
  $(LUA_T): $(LUA_O) $(LUA_A)
 -  $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
-+  $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS)
++  $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS)
  
  $(LUAC_T): $(LUAC_O) $(LUA_A)
 -  $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
-+  $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) -L. -llua $(LIBS)
++  $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUAC_O) -L. -llua $(LIBS)
  
  clean:
$(RM) $(ALL_T) $(ALL_O)
+ 
+ depend:
+-  @$(CC) $(CFLAGS) -MM l*.c
++  @$(CC) $(MYCFLAGS) -MM l*.c
+ 
+ echo:
+   @echo PLAT= $(PLAT)
 Index: lua-5.2.1/src/luaconf.h
 ===
 --- lua-5.2.1.orig/src/luaconf.h
@@ -76,12 +83,37 @@
  #define LUA_LDIR  LUA_ROOT share/lua/ LUA_VDIR
  #define LUA_CDIR  LUA_ROOT lib/lua/ LUA_VDIR
  #define LUA_PATH_DEFAULT  \
-@@ -176,7 +176,7 @@
+@@ -150,7 +150,7 @@
+ 
+ #else /* }{ */
+ 
+-#define LUA_API   extern
++#define LUA_API   __attribute__ ((visibility (default)))
+ 
+ #endif/* } */
+ 
+@@ -176,9 +176,9 @@
  */
  #if defined(__GNUC__)  ((__GNUC__*100 + __GNUC_MINOR__) = 302)  \
  defined(__ELF__)  /* { */
 -#define LUAI_FUNC __attribute__((visibility(hidden))) extern
-+#define LUAI_FUNC extern

commit lua for openSUSE:Factory

2012-09-01 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2012-09-01 10:32:28

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2012-04-12 09:39:30.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2012-09-01 
10:32:31.0 +0200
@@ -1,0 +2,24 @@
+Thu Aug 16 00:34:57 UTC 2012 - crrodrig...@opensuse.org
+
+- Even after the previous update, third party modules/libraries
+  would not work because LUA_CDIR constant is wrong in x86_64 
+
+---
+Wed Aug 15 22:34:12 UTC 2012 - crrodrig...@opensuse.org
+
+- devel package must require libluaver = %{version} 
+
+---
+Wed Aug 15 22:24:01 UTC 2012 - crrodrig...@opensuse.org
+
+- Broken lua-suse patch breaks loading third party modules
+  or scripts 
+
+---
+Mon Jun 18 09:09:13 UTC 2012 - pgaj...@suse.com
+
+- updated to 5.2.1:
+  * main thread predefined in the registry
+  * bugfixes
+
+---

Old:

  lua-5.2.0.tar.bz2

New:

  lua-5.2.1.tar.bz2



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.ZAm7PD/_old  2012-09-01 10:32:33.0 +0200
+++ /var/tmp/diff_new_pack.ZAm7PD/_new  2012-09-01 10:32:33.0 +0200
@@ -16,9 +16,8 @@
 #
 
 
-
 Name:   lua
-Version:5.2.0
+Version:5.2.1
 Release:0
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
@@ -54,7 +53,7 @@
 Summary:Development files for lua
 Group:  Development/Libraries/C and C++
 Requires:   %{name} = %{version}
-Requires:   liblua%{libsuf}
+Requires:   liblua%{libsuf} = %{version}
 Conflicts:  lua50-devel
 Conflicts:  lua51-devel
 
@@ -110,6 +109,8 @@
 %patch0 -p1
 
 %build
+sed -i -e s@lib/lua/@%{_lib}/lua/@g src/luaconf.h
+grep LUA_CDIR src/luaconf.h 
 make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -fPIC 
-DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory -lncurses 
V=%{major_version} all
 
 %install
@@ -130,7 +131,6 @@
 Name: Lua
 Description: An Extensible Extension Language
 Version: %{version}
-Requires:
 Libs: -llua -lm
 Cflags:
 EOF

++ lua-5.2.0.tar.bz2 - lua-5.2.1.tar.bz2 ++
 4455 lines of diff (skipped)

++ lua-suse.diff ++
--- /var/tmp/diff_new_pack.ZAm7PD/_old  2012-09-01 10:32:34.0 +0200
+++ /var/tmp/diff_new_pack.ZAm7PD/_new  2012-09-01 10:32:34.0 +0200
@@ -1,7 +1,7 @@
-Index: lua-5.2.0/Makefile
+Index: lua-5.2.1/Makefile
 ===
 lua-5.2.0.orig/Makefile
-+++ lua-5.2.0/Makefile
+--- lua-5.2.1.orig/Makefile
 lua-5.2.1/Makefile
 @@ -41,7 +41,7 @@ PLATS= aix ansi bsd freebsd generic linu
  # What to install.
  TO_BIN= lua luac
@@ -19,10 +19,10 @@
cd src  $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
cd doc  $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
  
-Index: lua-5.2.0/src/Makefile
+Index: lua-5.2.1/src/Makefile
 ===
 lua-5.2.0.orig/src/Makefile
-+++ lua-5.2.0/src/Makefile
+--- lua-5.2.1.orig/src/Makefile
 lua-5.2.1/src/Makefile
 @@ -29,6 +29,7 @@ MYOBJS=
  PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
  
@@ -50,7 +50,7 @@
 +  ln -fs $(LUA_SO).$(V) $(LUA_SO)
 +
  $(LUA_A): $(BASE_O)
-   $(AR) $@ $?
+   $(AR) $@ $(BASE_O)
$(RANLIB) $@
  
  $(LUA_T): $(LUA_O) $(LUA_A)
@@ -63,16 +63,16 @@
  
  clean:
$(RM) $(ALL_T) $(ALL_O)
-Index: lua-5.2.0/src/luaconf.h
+Index: lua-5.2.1/src/luaconf.h
 ===
 lua-5.2.0.orig/src/luaconf.h
-+++ lua-5.2.0/src/luaconf.h
+--- lua-5.2.1.orig/src/luaconf.h
 lua-5.2.1/src/luaconf.h
 @@ -100,7 +100,7 @@
  #else /* }{ */
  
  #define LUA_VDIR  LUA_VERSION_MAJOR . LUA_VERSION_MINOR /
 -#define LUA_ROOT  /usr/local/
-+#define LUA_ROOT  /usr
++#define LUA_ROOT  /usr/
  #define LUA_LDIR  LUA_ROOT share/lua/ LUA_VDIR
  #define LUA_CDIR  LUA_ROOT lib/lua/ LUA_VDIR
  #define LUA_PATH_DEFAULT  \

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lua for openSUSE:Factory

2012-04-12 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2012-04-12 09:39:29

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2012-01-20 22:07:45.0 
+0100
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2012-04-12 
09:39:30.0 +0200
@@ -1,0 +2,6 @@
+Thu Mar 29 19:29:57 UTC 2012 - joop.boo...@opensuse.org
+
+- Correction in Provides and Obsolete for lua-libs
+- Passed the spec file through spec-cleaner
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.B4HWgc/_old  2012-04-12 09:39:32.0 +0200
+++ /var/tmp/diff_new_pack.B4HWgc/_new  2012-04-12 09:39:32.0 +0200
@@ -15,15 +15,11 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
+
 Name:   lua
 Version:5.2.0
 Release:0
-%define major_version 5.2
-%define libsuf5_2
-BuildRequires:  pkg-config
-BuildRequires:  readline-devel
-BuildRequires:  update-alternatives
-PreReq: update-alternatives
 Summary:Small Embeddable Language with Simple Procedural Syntax
 License:MIT
 Group:  System/Libraries
@@ -33,7 +29,13 @@
 Source2:baselibs.conf
 # prefix and build shared libraries (upstream don't want this in Makefile)
 Patch0: %{name}-suse.diff
+%define major_version 5.2
+%define libsuf5_2
+BuildRequires:  pkg-config
+BuildRequires:  readline-devel
+BuildRequires:  update-alternatives
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Requires(pre):  update-alternatives
 
 %description
 Lua is a programming language originally designed for extending
@@ -67,8 +69,8 @@
 %package -n liblua%{libsuf}
 Summary:Small Embeddable Language with Simple Procedural Syntax
 Group:  System/Libraries
-Provides:   %{name}-libs = 5.1.3
-Obsoletes:  %{name}-libs = 5.1.3
+Provides:   %{name}-libs = %{version}
+Obsoletes:  %{name}-libs  %{version}
 
 %description -n liblua%{libsuf}
 Lua is a programming language originally designed for extending
@@ -108,34 +110,31 @@
 %patch0 -p1
 
 %build
-make %{?_smp_mflags} -C src CC=%{__cc} MYCFLAGS=$RPM_OPT_FLAGS -fPIC 
-DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory -lncurses 
V=%{major_version} all
+make %{?_smp_mflags} -C src CC=gcc MYCFLAGS=%{optflags} -fPIC 
-DLUA_USE_LINUX MYLIBS=-Wl,-E -ldl -lreadline -lhistory -lncurses 
V=%{major_version} all
 
 %install
-make install INSTALL_TOP=$RPM_BUILD_ROOT%{_prefix} 
INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir} 
INSTALL_CMOD=$RPM_BUILD_ROOT%{_libdir}/lua/%{major_version} 
INSTALL_MAN=$RPM_BUILD_ROOT%{_mandir}/man1
+make install INSTALL_TOP=%{buildroot}%{_prefix} 
INSTALL_LIB=%{buildroot}%{_libdir} 
INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} 
INSTALL_MAN=%{buildroot}%{_mandir}/man1
 for file in lua luac ; do
 mv %{buildroot}%{_bindir}/${file}
%{buildroot}%{_bindir}/${file}%{major_version}
 mv %{buildroot}%{_mandir}/man1/${file}.1 
%{buildroot}%{_mandir}/man1/${file}%{major_version}.1
 done
-install -D %{SOURCE1} %buildroot/etc/rpm/macros.lua
+install -D %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.lua
 
 # create pkg-config file
 cat  lua.pc -EOF
-prefix=%_prefix
-exec_prefix=%_prefix
-libdir=%_libdir
-includedir=%_prefix}/include
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_prefix}}/include
 
 Name: Lua
 Description: An Extensible Extension Language
-Version: %version
+Version: %{version}
 Requires:
 Libs: -llua -lm
 Cflags:
 EOF
-install -D -m 644 lua.pc %buildroot/%_libdir/pkgconfig/lua.pc
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+install -D -m 644 lua.pc %{buildroot}/%{_libdir}/pkgconfig/lua.pc
 
 %post
 /usr/sbin/update-alternatives --install
   \
@@ -158,13 +157,13 @@
 %doc README
 %{_mandir}/man1/lua%{major_version}.1*
 %{_mandir}/man1/luac%{major_version}.1*
-%{_prefix}/bin/lua%{major_version}
-%{_prefix}/bin/luac%{major_version}
+%{_bindir}/lua%{major_version}
+%{_bindir}/luac%{major_version}
 %dir %{_libdir}/lua
 %dir %{_libdir}/lua/%{major_version}
 %dir %{_datadir}/lua
 %dir %{_datadir}/lua/%{major_version}
-/etc/rpm/macros.lua
+%{_sysconfdir}/rpm/macros.lua
 
 %files -n liblua%{libsuf}
 %defattr(-,root,root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lua for openSUSE:Factory

2012-01-20 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2012-01-20 22:07:43

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2012-01-07 08:39:07.0 
+0100
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2012-01-20 
22:07:45.0 +0100
@@ -1,0 +2,7 @@
+Wed Jan 18 22:03:20 UTC 2012 - dims...@opensuse.org
+
+- Require liblua5_2 from the -devel package: Otherwise the .so file
+  is a dangling symlink and apps will use the static lib.
+- Update baselibs.conf to reference liblua5_2 instead of liblua5_1.
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.iEWI66/_old  2012-01-20 22:07:47.0 +0100
+++ /var/tmp/diff_new_pack.iEWI66/_new  2012-01-20 22:07:47.0 +0100
@@ -52,6 +52,7 @@
 Summary:Development files for lua
 Group:  Development/Libraries/C and C++
 Requires:   %{name} = %{version}
+Requires:   liblua%{libsuf}
 Conflicts:  lua50-devel
 Conflicts:  lua51-devel
 

++ baselibs.conf ++
--- /var/tmp/diff_new_pack.iEWI66/_old  2012-01-20 22:07:47.0 +0100
+++ /var/tmp/diff_new_pack.iEWI66/_new  2012-01-20 22:07:47.0 +0100
@@ -1 +1 @@
-liblua5_1
+liblua5_2

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lua for openSUSE:Factory

2012-01-06 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2012-01-06 11:45:57

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2011-09-23 02:12:12.0 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2012-01-06 
11:46:04.0 +0100
@@ -1,0 +2,72 @@
+Wed Dec 21 15:11:08 UTC 2011 - pgaj...@suse.com
+
+- raise update-alternatives priority to 15 (lua51 have 10, lua50
+  have 5)
+
+---
+Wed Dec 21 13:58:22 UTC 2011 - pgaj...@suse.com
+
+- updated to 5.2.0:
+  * Main changes
+   yieldable pcall and metamethods
+   new lexical scheme for globals
+   ephemeron tables
+   new library for bitwise operations
+   light C functions
+   emergency garbage collector
+   [goto] statement
+   finalizers for tables
+  * Language
+   no more fenv for threads or functions
+   tables honor the [__len] metamethod
+   hex and [\z] escapes in strings
+   support for hexadecimal floats
+   order metamethods work for different types
+   no more verification of opcode consistency
+   hook event tail return replaced by tail call
+   empty statement
+   [break] statement may appear in the middle of a block
+  * Libraries
+   arguments for function called through [xpcall]
+   optional 'mode' argument to load and loadfile (to control binary x text)
+   optional 'env' argument to load and loadfile (environment for loaded 
chunk)
+   [loadlib] may load libraries with global names (RTLD_GLOBAL)
+   new function [package.searchpath]
+   modules receive their paths when loaded
+   optional base in [math.log]
+   optional separator in [string.rep]
+   [file:write] returns CODEfile/CODE
+   closing a pipe returns exit status
+   [os.exit] may close state
+   new metamethods [__pairs] and CODE__ipairs/CODE
+   new option 'isrunning' for [collectgarbage] and CODElua_gc/CODE
+   frontier patterns
+   [\0] in patterns
+   new option [*L] for CODEio.read/CODE
+   options for [io.lines]
+   [debug.getlocal] can access function varargs
+  * C API
+   new functions: lua_absindex, lua_arith, lua_compare, lua_copy, lua_len,
+   lua_rawgetp, lua_rawsetp, lua_upvalueid, 
lua_upvaluejoin,
+  lua_version, luaL_checkversion, luaL_setmetatable,
+  luaL_testudata, luaL_tolstring
+[lua_pushstring] and CODEpushlstring/CODE return string 
+[nparams] and CODEisvararg/CODE available in debug API
+   new lua_Unsigned
+  * Implementation
+   max constants per function raised to 2^26
+   generational mode for garbage collection (experimental)
+   NaN trick (experimental)
+   internal (immutable) version of ctypes
+   simpler implementation for string buffers
+   parser uses much less C-stack space (no more auto arrays)
+  * Lua standalone interpreter
+   new [-E] option to avoid environment variables
+   handling of non-string error messages
+
+---
+Tue Oct  4 11:44:08 UTC 2011 - u...@suse.com
+
+- cross-build fix: use %__cc macro
+
+---

Old:

  lua-5.1.4-libdir.diff
  lua-5.1.4-module-path.diff
  lua-5.1.4-shared.diff
  lua-5.1.4-upstream-bugfix.diff
  lua-5.1.4.tar.bz2

New:

  lua-5.2.0.tar.bz2
  lua-suse.diff



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.yTxCUv/_old  2012-01-06 11:46:06.0 +0100
+++ /var/tmp/diff_new_pack.yTxCUv/_new  2012-01-06 11:46:06.0 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package lua (Version 5.1.4)
+# spec file for package lua
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 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
@@ -19,10 +19,11 @@
 
 
 Name:   lua
-Version:5.1.4
+Version:5.2.0
 Release:17
-%define major_version 5.1
-License:MIT License (or similar)
+%define major_version 5.2
+%define libsuf5_2
+License:MIT
 Group:  System/Libraries
 AutoReqProv:on
 BuildRequires:  pkg-config readline-devel update-alternatives
@@ -32,10 +33,8 @@
 Source: %{name}-%{version}.tar.bz2
 Source1:macros.lua
 Source2:

commit lua for openSUSE:Factory

2012-01-06 Thread h_root
Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2012-01-07 08:39:05

Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and  /work/SRC/openSUSE:Factory/.lua.new (New)


Package is lua, Maintainer is pgaj...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lua/lua.changes  2012-01-06 11:46:04.0 
+0100
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2012-01-07 
08:39:07.0 +0100
@@ -1,0 +2,5 @@
+Fri Jan  6 18:17:22 CET 2012 - dmuel...@suse.de
+
+- readd lua.pc for building rpm
+
+---



Other differences:
--
++ lua.spec ++
--- /var/tmp/diff_new_pack.dkodZc/_old  2012-01-07 08:39:08.0 +0100
+++ /var/tmp/diff_new_pack.dkodZc/_new  2012-01-07 08:39:08.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -15,20 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
-
 Name:   lua
 Version:5.2.0
-Release:17
+Release:0
 %define major_version 5.2
 %define libsuf5_2
-License:MIT
-Group:  System/Libraries
-AutoReqProv:on
-BuildRequires:  pkg-config readline-devel update-alternatives
+BuildRequires:  pkg-config
+BuildRequires:  readline-devel
+BuildRequires:  update-alternatives
 PreReq: update-alternatives
 Summary:Small Embeddable Language with Simple Procedural Syntax
+License:MIT
+Group:  System/Libraries
 Url:http://www.lua.org
 Source: %{name}-%{version}.tar.bz2
 Source1:macros.lua
@@ -51,7 +49,6 @@
 simplicity, efficiency, portability, and low embedding cost.
 
 %package devel
-License:MIT
 Summary:Development files for lua
 Group:  Development/Libraries/C and C++
 Requires:   %{name} = %{version}
@@ -67,7 +64,6 @@
 application.
 
 %package -n liblua%{libsuf}
-License:MIT
 Summary:Small Embeddable Language with Simple Procedural Syntax
 Group:  System/Libraries
 Provides:   %{name}-libs = 5.1.3
@@ -87,7 +83,6 @@
 simplicity, efficiency, portability, and low embedding cost.
 
 %package doc
-License:MIT
 Summary:Small Embeddable Language with Simple Procedural Syntax
 Group:  System/Libraries
 %if 0%{?suse_version} = 1120
@@ -122,6 +117,22 @@
 done
 install -D %{SOURCE1} %buildroot/etc/rpm/macros.lua
 
+# create pkg-config file
+cat  lua.pc -EOF
+prefix=%_prefix
+exec_prefix=%_prefix
+libdir=%_libdir
+includedir=%_prefix}/include
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: %version
+Requires:
+Libs: -llua -lm
+Cflags:
+EOF
+install -D -m 644 lua.pc %buildroot/%_libdir/pkgconfig/lua.pc
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -167,6 +178,7 @@
 %{_includedir}/lualib.h
 %{_libdir}/liblua.a
 %{_libdir}/liblua.so
+%{_libdir}/pkgconfig/lua.pc
 
 %files doc
 %defattr(-,root,root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org