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:
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>
|
@@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@@ -1,7 +1,13 @@
|
||||
#
|
||||
<<<<<<< HEAD
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
=======
|
||||
# spec file for package lua-luasql
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
>>>>>>> 808a539 (- Switch to _service and download the code from GitHub repo,)
|
||||
# Copyright (c) 2014 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -19,12 +25,25 @@
|
||||
|
||||
%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 flavor_ver %{lua:ver, ok = string.gsub(rpm.expand("%{flavor}"), "lua(%{d})(%{d})", "%{1}.%{2}"); print(ver)}
|
||||
%define mod_name luasql
|
||||
%define lua_archdir %{_libdir}/lua/%{flavor_ver}
|
||||
%define lua_incdir %{_includedir}/lua%{flavor_ver}
|
||||
%define lua_noarchdir %{_datadir}/lua/%{flavor_ver}
|
||||
|
||||
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}
|
||||
@@ -32,24 +51,6 @@ ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
Version: 2.6.0
|
||||
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
|
||||
# PATCH-FIX-UPSTREAM luasql-fix-configuration.patch gh#lunarmodules/luasql!152 mcepl@suse.com
|
||||
# Clean up building and add rpm optflags.
|
||||
Patch0: luasql-fix-configuration.patch
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: libiodbc-devel
|
||||
BuildRequires: libmysqlclient-devel
|
||||
BuildRequires: pkgconf
|
||||
BuildRequires: postgresql-devel
|
||||
BuildRequires: sqlite3-devel
|
||||
Requires: %{flavor}
|
||||
Requires: libmariadb3
|
||||
|
||||
%description
|
||||
A simple interface from Lua to a DBMS. It enables a Lua program to:
|
||||
@@ -65,13 +66,13 @@ export OPTFLAGS="%{optflags}"
|
||||
export LUA_INC="%{lua_incdir}"
|
||||
|
||||
# also oci8 firebird
|
||||
make %{?_smp_mflags} \
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}" DRIVER_LIBS_sqlite3="-lsqlite3" sqlite3
|
||||
make %{?_smp_mflags} \
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}/pgsql" DRIVER_LIBS_postgres="-lpq" postgres
|
||||
make %{?_smp_mflags} \
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}/mysql" DRIVER_LIBS_mysql="-lmysqlclient -lz" mysql
|
||||
make %{?_smp_mflags} \
|
||||
%make_build \
|
||||
DRIVER_INCS="-I%{_includedir}" DRIVER_LIBS_odbc="-liodbc" odbc
|
||||
|
||||
%install
|
||||
@@ -80,6 +81,11 @@ make %{?_smp_mflags} \
|
||||
%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
|
||||
|
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.
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