commit 395a1955eccacc045351e206040fd25604697bb244442806c3d4c7c9b1617c8e Author: Matej Cepl Date: Fri May 10 15:32:21 2024 +0000 Accepting request 1171863 from home:13ilya Even after creating the perl-Test-Nginx package, the tests still don't run. You can run the pm file from the t directory as I did before, but it doesn't run the tests, it just does NOT return errors at the end of initialization. The make file specifies the following OPENRESTY_PREFIX=/usr/local/openresty .... test: all PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t That is, I can NOT even override OPENRESTY_PREFIX, which is hardcoded and I have no idea where to get the test-nginx directory from. Apparently these tests are for internal testing only. If upstream writes how to run the tests properly, I'll add them, but it's better not to run them at all than to create the appearance of testing! In any case, tests for noarch with empty %build section are not necessary. I test them in a real environment with nginx-module-lua and I have lua-resty libraries working. OBS-URL: https://build.opensuse.org/request/show/1171863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-resty-mysql?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/lua-resty-mysql-0.27.tar.gz b/lua-resty-mysql-0.27.tar.gz new file mode 100644 index 0000000..75229dc --- /dev/null +++ b/lua-resty-mysql-0.27.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee8aedefffff5a924c12172ca027a9db15fb0034d38b71991795de9cdc0bc975 +size 128105 diff --git a/lua-resty-mysql.changes b/lua-resty-mysql.changes new file mode 100644 index 0000000..ca7a07c --- /dev/null +++ b/lua-resty-mysql.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed May 1 02:10:56 UTC 2024 - Илья Индиго + +- Initialized 0.27. diff --git a/lua-resty-mysql.spec b/lua-resty-mysql.spec new file mode 100644 index 0000000..5133281 --- /dev/null +++ b/lua-resty-mysql.spec @@ -0,0 +1,47 @@ +# +# spec file for package lua-resty-mysql +# +# Copyright (c) 2024 SUSE LLC +# +# 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/ +# + + +%define lua_version 5.1 +Name: lua-resty-mysql +Version: 0.27 +Release: 0 +Summary: Lua MySQL client driver for ngx_lua based on the cosocket API +License: BSD-2-Clause +URL: https://github.com/openresty/lua-resty-mysql +Source0: https://github.com/openresty/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: lua-macros +BuildArch: noarch + +%description +This Lua library is a MySQL client driver for the ngx_lua nginx module. + +%prep +%autosetup -p1 + +%build + +%install +%make_install LUA_LIB_DIR=%{lua_noarchdir} + +%files +%defattr(0644,root,root,-) +%doc README.markdown +%dir %{lua_noarchdir} +%{lua_noarchdir}/resty + +%changelog