SHA256
1
0
forked from pool/lua-luadbi

Compare commits

11 Commits

Author SHA256 Message Date
ff15d59a33 Add missing tarball. 2025-11-06 11:53:25 +01:00
02dcc34fc6 Update to 0.7.5:
- Allow selecting values containing NUL byte
  - Fixed overflow when retreving integer values larger than
    2^31-1 in SQLite3
  - Connections and Statements are now capable objects in Lua 5.4
2025-11-06 11:50:32 +01:00
6806cbf6cd Use new lua-macros to Obsoletes: lua51-luadbi. 2025-11-04 14:09:30 +01:00
3d520bad5b Switch off building lua51 build of the package. 2025-10-29 17:06:58 +01:00
4a600b1c32 Make the package buildable with LuaJIT. 2025-10-29 16:53:18 +01:00
1c97be71e5 Add luajit version to _multibuild 2025-10-29 16:53:18 +01:00
3c96f414c4 Upgrade to 0.7.4:
- Add missing braces around initializer
  - Unbreak building against MariaDB 5.5
  - Avoid incompatible pointer type error on x86 (32 bit)
  - New driver for DuckDB. Largely untested and should be
    considered expiremental at this time.
2025-10-29 16:53:18 +01:00
8b773eb6ae Accepting request 1295835 from devel:languages:lua
- Upgrade to 0.7.4:
  - Add missing braces around initializer
  - Unbreak building against MariaDB 5.5
  - Avoid incompatible pointer type error on x86 (32 bit)
  - New driver for DuckDB. Largely untested and should be
    considered expiremental at this time.

OBS-URL: https://build.opensuse.org/request/show/1295835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luadbi?expand=0&rev=9
2025-07-27 14:26:28 +00:00
f20f0cdb2f Accepting request 1205567 from devel:languages:lua
- Update to 0.7.3:
  - oracle column name bugfix
  - [travis] fix mysql grant error
  - Don't break SQLite 3.6.20 as shipped in RHEL/CentOS 6
  - dbd/mysql/statement.c: fix compilation with mysql-8
  - Issue 56: Remove useless setting of is_null
  - Issue-66: dbd/mysql/statement.c: return nil for NULL
  - Attempt to provide partial fix for Issue #64.

OBS-URL: https://build.opensuse.org/request/show/1205567
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luadbi?expand=0&rev=8
2024-10-07 19:48:56 +00:00
4f9359d5b8 Clean up the SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luadbi?expand=0&rev=23
2024-10-03 17:27:36 +00:00
7470c03467 - Update to 0.7.3:
- oracle column name bugfix
  - [travis] fix mysql grant error
  - Don't break SQLite 3.6.20 as shipped in RHEL/CentOS 6
  - dbd/mysql/statement.c: fix compilation with mysql-8
  - Issue 56: Remove useless setting of is_null
  - Issue-66: dbd/mysql/statement.c: return nil for NULL
  - Attempt to provide partial fix for Issue #64.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luadbi?expand=0&rev=22
2024-10-03 17:25:05 +00:00
7 changed files with 72 additions and 16 deletions

4
.gitignore vendored
View File

@@ -1 +1,5 @@
.osc
_scmsync.obsinfo
_buildconfig-*
_buildinfo-*.xml
lua-luadbi-*-build/

View File

@@ -1,5 +1,5 @@
<multibuild>
<package>lua51</package>
<package>luajit</package>
<package>lua53</package>
<package>lua54</package>
</multibuild>

View File

@@ -1,3 +1,49 @@
-------------------------------------------------------------------
Thu Nov 6 10:49:47 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 0.7.5:
- Allow selecting values containing NUL byte
- Fixed overflow when retreving integer values larger than
2^31-1 in SQLite3
- Connections and Statements are now capable objects in Lua 5.4
-------------------------------------------------------------------
Tue Nov 4 13:09:09 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Use new lua-macros to Obsoletes: lua51-luadbi.
-------------------------------------------------------------------
Fri Oct 24 14:49:00 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Sun Oct 12 00:38:29 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make the package buildable with LuaJIT.
-------------------------------------------------------------------
Fri Jul 25 19:54:10 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Upgrade to 0.7.4:
- Add missing braces around initializer
- Unbreak building against MariaDB 5.5
- Avoid incompatible pointer type error on x86 (32 bit)
- New driver for DuckDB. Largely untested and should be
considered expiremental at this time.
-------------------------------------------------------------------
Thu Oct 3 15:12:49 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Update to 0.7.3:
- oracle column name bugfix
- [travis] fix mysql grant error
- Don't break SQLite 3.6.20 as shipped in RHEL/CentOS 6
- dbd/mysql/statement.c: fix compilation with mysql-8
- Issue 56: Remove useless setting of is_null
- Issue-66: dbd/mysql/statement.c: return nil for NULL
- Attempt to provide partial fix for Issue #64.
-------------------------------------------------------------------
Thu Feb 22 09:57:57 UTC 2024 - Michael Vetter <mvetter@suse.com>

View File

@@ -18,14 +18,15 @@
%define flavor @BUILD_FLAVOR@
%define mod_name luadbi
Version: 0.7.2
Version: 0.7.5
Release: 0
Summary: A database interface library for Lua
License: MIT
Group: Productivity/Databases/Tools
URL: https://github.com/mwild1/luadbi
Source0: https://github.com/mwild1/%{mod_name}/archive/refs/tags/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
# Formely found on code.google.com
Source: luadbi-%{version}.tar.gz
Source1: luadbi-%{version}.tar.gz
Source50: tests-modules-load.lua
# PATCH-FIX-UPSTREAM marguerite@opensuse.org - fix postgresql headers' path
Patch0: luadbi-postgresql-headers.patch
@@ -56,21 +57,22 @@ Oracle.
%prep
%autosetup -p1 -n luadbi-%{version}
sed -i \
-e 's:-g -pedantic -Wall -O2:%{optflags} -fPIC -I%{lua_incdir}:g' \
Makefile
%build
%make_build LIBDIR=%{_libdir}
# We have to list targets specifically, because openSUSE still
# doesnt have support for DuckDB
%make_build LIBDIR=%{_libdir} LUA_INC="-I%{lua_incdir}" \
COMMON_CFLAGS="%{optflags} -fPIC" \
mysql psql sqlite3
%install
install -d %{buildroot}%{lua_archdir}
install -d %{buildroot}%{lua_noarchdir}
make install_free DESTDIR=%{buildroot} LUA_LDIR=%{lua_noarchdir} LUA_CDIR=%{lua_archdir}
make install_lua install_mysql install_psql install_sqlite3 \
DESTDIR=%{buildroot} LUA_LDIR=%{lua_noarchdir} LUA_CDIR=%{lua_archdir}
%check
# run tests
lua%lua_version %{SOURCE50} "%{buildroot}"
lua %{SOURCE50} %{buildroot}
%files
%license COPYING

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:05a7d02d0cae3970af24f72f39edfe717e39424927d07fbbc09ebe96ea02f5a6
size 36462

BIN
luadbi-0.7.5.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,8 +1,12 @@
--- luadbi-0.7.2/dbd/postgresql/dbd_postgresql.h.orig 2019-01-14 12:39:17.000000000 +0300
+++ luadbi-0.7.2/dbd/postgresql/dbd_postgresql.h 2020-10-04 08:26:13.372785212 +0300
---
dbd/postgresql/dbd_postgresql.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/dbd/postgresql/dbd_postgresql.h
+++ b/dbd/postgresql/dbd_postgresql.h
@@ -1,4 +1,4 @@
-#include <libpq-fe.h>
+#include <pgsql/libpq-fe.h>
#include <dbd/common.h>
/*
/*