forked from pool/lua-luasql
- Switch to _service and download the code from GitHub repo,
upstream doesn't create releases. - Update to version 2.6.0+git.1724375068.d60f8b2: * Add version history and credits * Update fr Documentation * Update br Documentation * Update US Documentation * Minor fixes * Fix HTML Characters * Update br Documentation * Update Fr Documentation * Update example - Enable the test suite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luasql?expand=0&rev=12
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
<package>lua54</package>
|
||||
</multibuild>
|
15
_service
Normal file
15
_service
Normal file
@@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/lunarmodules/luasql.git</param>
|
||||
<param name="versionprefix">2.6.0+git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="changesauthor">mcepl@cepl.eu</param>
|
||||
</service>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/lunarmodules/luasql.git</param>
|
||||
<param name="changesrevision">d60f8b2a613c31a9626bc8d9a760609830cd1d4d</param></service></servicedata>
|
65
lua-luasql.changes
Normal file
65
lua-luasql.changes
Normal file
@@ -0,0 +1,65 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 5 10:25:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Switch to _service and download the code from GitHub repo,
|
||||
upstream doesn't create releases.
|
||||
- Update to version 2.6.0+git.1724375068.d60f8b2:
|
||||
* Add version history and credits
|
||||
* Update fr Documentation
|
||||
* Update br Documentation
|
||||
* Update US Documentation
|
||||
* Minor fixes
|
||||
* Fix HTML Characters
|
||||
* Update br Documentation
|
||||
* Update Fr Documentation
|
||||
* Update example
|
||||
- Enable the test suite.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 17 18:24:52 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Update to 2.6.0:
|
||||
- Added read-only mode to SQLite3 and two new methods to MySQL
|
||||
fetch.
|
||||
- This release also added the library opening functions to
|
||||
luasql.h in order to ease the initialization process in C
|
||||
applications.
|
||||
- Added seek method to MySQL driver and bug-fix on ODBC driver
|
||||
number retrieval.
|
||||
- Clean up luasql-fix-configuration.patch (now on
|
||||
gh#lunarmodules/luasql!152).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 16 18:18:57 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Change upstream homepage to the current one at Lunar Modules.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 18 15:58:47 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Use %lua_provides macro for default lua versioning
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 6 19:06:15 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add lua54 as new build target
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 5 22:14:00 CET 2018 - mcepl@suse.com
|
||||
|
||||
- Upgrade to 2.4.0:
|
||||
* Added support in MySQL driver for opening a connection
|
||||
based on a Unix socket (thanks to rafis)
|
||||
* Added connection ping method (thanks to rafis)
|
||||
* Added Makefile for mingw (thanks to watercoldyi)
|
||||
* Bug correction on retrieving varchar2 data (thanks to David
|
||||
Gao)
|
||||
- Rewrite to multibuild, standard openSUSE Lua SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 8 04:46:07 UTC 2014 - malcolmlewis@opensuse.org
|
||||
|
||||
- Initial build.
|
||||
- Add luasql-fix-configuration.patch: Clean up building and add rpm
|
||||
optflags.
|
||||
|
93
lua-luasql.spec
Normal file
93
lua-luasql.spec
Normal file
@@ -0,0 +1,93 @@
|
||||
#
|
||||
# spec file for package lua-luasql
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2014 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%define flavor_dec $(c=%{flavor}; echo ${c:0:-1}.${c: -1})
|
||||
%define flavor_ver %{lua:ver, ok = string.gsub(rpm.expand("%{flavor}"), "lua(%{d})(%{d})", "%{1}.%{2}"); print(ver)}
|
||||
%define mod_name luasql
|
||||
Version: 2.6.0+git.1724375068.d60f8b2
|
||||
Release: 0
|
||||
Summary: Simple interface from Lua to a DBMS
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
URL: https://github.com/lunarmodules/luasql
|
||||
# Source0: https://github.com/lunarmodules/luasql/archive/refs/tags/%%{version}/%%{mod_name}-%%{version}.tar.gz
|
||||
Source0: %{mod_name}-%{version}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: libiodbc-devel
|
||||
BuildRequires: libmysqlclient-devel
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: pkgconf
|
||||
BuildRequires: postgresql-devel
|
||||
BuildRequires: sqlite3-devel
|
||||
Requires: %{flavor}
|
||||
Requires: libmariadb3
|
||||
%lua_provides
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
|
||||
%description
|
||||
A simple interface from Lua to a DBMS. It enables a Lua program to:
|
||||
- Connect to ODBC, ADO, Oracle, MySQL, SQLite and PostgreSQL databases;
|
||||
- Execute arbitrary SQL statements;
|
||||
- Retrieve results in a row-by-row cursor fashion.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
export OPTFLAGS="%{optflags}"
|
||||
export LUA_INC="%{lua_incdir}"
|
||||
|
||||
# also oci8 firebird
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}" DRIVER_LIBS_sqlite3="-lsqlite3" sqlite3
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}/pgsql" DRIVER_LIBS_postgres="-lpq" postgres
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}/mysql" DRIVER_LIBS_mysql="-lmysqlclient -lz" mysql
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}" DRIVER_LIBS_odbc="-liodbc" odbc
|
||||
|
||||
%install
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)%{lua_archdir}' sqlite3
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)%{lua_archdir}' postgres
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)%{lua_archdir}' mysql
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)%{lua_archdir}' odbc
|
||||
|
||||
%check
|
||||
export LUA_PATH='%{buildroot}%{lua_archdir}/?.lua'
|
||||
export LUA_CPATH='%{buildroot}%{lua_archdir}/?.so'
|
||||
lua%{lua_version} tests/test.lua sqlite3
|
||||
|
||||
%files
|
||||
%doc doc/us/*
|
||||
%dir %{lua_archdir}/luasql
|
||||
%{lua_archdir}/luasql/
|
||||
# TODO? Split to subpackages?
|
||||
# /usr/lib64/lua/%%{lua_version}/luasql
|
||||
# /usr/lib64/lua/%%{lua_version}/luasql/mysql.so
|
||||
# /usr/lib64/lua/%%{lua_version}/luasql/postgres.so
|
||||
# /usr/lib64/lua/%%{lua_version}/luasql/sqlite3.so
|
||||
|
||||
%changelog
|
BIN
luasql-2.6.0+git.1724375068.d60f8b2.obscpio
(Stored with Git LFS)
Normal file
BIN
luasql-2.6.0+git.1724375068.d60f8b2.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
luasql-2.6.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
luasql-2.6.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
19
luasql-fix-configuration.patch
Normal file
19
luasql-fix-configuration.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
config | 7 +++----
|
||||
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/config
|
||||
+++ b/config
|
||||
@@ -46,9 +46,8 @@ DRIVER_LIBS_firebird ?= -L/usr/local/fir
|
||||
DRIVER_INCS_firebird ?=
|
||||
|
||||
# general compilation parameters
|
||||
-WARN = -Wall -Wmissing-prototypes -Wmissing-declarations -pedantic
|
||||
+WARN= -fPIC $(OPTFLAGS) -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic
|
||||
INCS = -I$(LUA_INC)
|
||||
-DEFS =
|
||||
-CFLAGS = -O2 -std=gnu99 $(WARN) -fPIC $(DRIVER_INCS) $(INCS) \
|
||||
- -DLUASQL_VERSION_NUMBER='"$V"' $(DEFS)
|
||||
+DEFS = -std=gnu99 -fPIC
|
||||
+CFLAGS=$(WARN) $(DRIVER_INCS) $(INCS) -DLUASQL_VERSION_NUMBER='"$V"' $(DEFS)
|
||||
CC= gcc
|
4
luasql.obsinfo
Normal file
4
luasql.obsinfo
Normal file
@@ -0,0 +1,4 @@
|
||||
name: luasql
|
||||
version: 2.6.0+git.1724375068.d60f8b2
|
||||
mtime: 1724375068
|
||||
commit: d60f8b2a613c31a9626bc8d9a760609830cd1d4d
|
Reference in New Issue
Block a user