SHA256
10
0
forked from pool/lua-luasql

- Add lua54 as new build target

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luasql?expand=0&rev=3
This commit is contained in:
2020-07-06 19:06:22 +00:00
committed by Git OBS Bridge
parent 45f5e85c22
commit 99ba98d1b8
3 changed files with 12 additions and 6 deletions

View File

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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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

View File

@@ -1,7 +1,7 @@
#
# spec file for package luasql
# spec file for package lua-luasql
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2014 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
@@ -16,6 +16,7 @@
# 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)}
@@ -41,13 +42,13 @@ Source0: https://github.com/keplerproject/luasql/archive/v%{version}/%{mo
# PATCH-FIX-OPENSUSE luasql-fix-configuration.patch malcolmlewis@opensuse.org -- Clean up building and add rpm optflags.
Patch0: luasql-fix-configuration.patch
BuildRequires: %{flavor}-devel
BuildRequires: libiodbc-devel
BuildRequires: libmysqlclient-devel
BuildRequires: pkg-config
BuildRequires: postgresql-devel
BuildRequires: sqlite3-devel
BuildRequires: libiodbc-devel
BuildRequires: pkg-config
Requires: libmariadb3
Requires: %{flavor}
Requires: libmariadb3
%description
A simple interface from Lua to a DBMS. It enables a Lua program to:
@@ -73,7 +74,6 @@ make %{?_smp_mflags} \
make %{?_smp_mflags} \
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