SHA256
10
0
forked from pool/lua-coxpcall

Accepting request 744922 from home:mcepl:branches:devel:languages:lua

Initial effort to package coxpcall 1.17.0

OBS-URL: https://build.opensuse.org/request/show/744922
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-coxpcall?expand=0&rev=1
This commit is contained in:
2019-11-02 22:02:34 +00:00
committed by Git OBS Bridge
commit 392fd75672
6 changed files with 100 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

4
_multibuild Normal file
View File

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

3
coxpcall-1_17_0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6044f70fcc01f50cae3a191cba13c252dcf9e6f169502e3d9c4a151934c46be0
size 20998

4
lua-coxpcall.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Nov 2 19:51:09 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Initial effort to package coxpcall 1.17.0

65
lua-coxpcall.spec Normal file
View File

@@ -0,0 +1,65 @@
#
# spec file for package lua-coxpcall
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 flavor @BUILD_FLAVOR@
%define mod_name coxpcall
%define upversion 1_17_0
Version: 1.17.0
Release: 0
Summary: Coroutine safe xpcall and pcall
License: MIT
URL: http://www.keplerproject.org/coxpcall/
Source: https://github.com/keplerproject/%{mod_name}/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-luasocket
Requires: %{flavor}
BuildArch: noarch
%if "%{flavor}" == "lua53"
Provides: lua-coxpcall = %{version}
Obsoletes: lua-coxpcall < %{version}
%endif
%if "%{flavor}" == ""
Name: lua-coxpcall
ExclusiveArch: do_not_build
%else
Name: %{flavor}-coxpcall
%endif
%description
Encapsulates the protected calls with a coroutine based loop, so errors
can be handled without the usual Lua 5.x pcall/xpcall issues with
coroutines yielding inside the call to pcall or xpcall.
%prep
%setup -q -n %{mod_name}-%{upversion}
%build
/bin/true
%install
%make_install LUA_DIR=%{lua_noarchdir}
%check
lua tests/test.lua
%files
%license doc/license.html
%doc README.md doc/{coxpcall.png,doc.css,index.html}
%{lua_noarchdir}/%{mod_name}*
%changelog