forked from pool/lua-copas
Accepting request 745047 from home:mcepl:branches:devel:languages:lua
- Initial effort to package copas 2.0.2 OBS-URL: https://build.opensuse.org/request/show/745047 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-copas?expand=0&rev=1
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
|
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
3
copas-2.0.2.tar.gz
Normal file
3
copas-2.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1469eaf987513f5a9a0bee345c040c8fa30ca6194bc75ad78171362f9904cf3e
|
||||
size 51657
|
4
lua-copas.changes
Normal file
4
lua-copas.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 2 19:51:09 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial effort to package copas 2.0.2
|
71
lua-copas.spec
Normal file
71
lua-copas.spec
Normal file
@@ -0,0 +1,71 @@
|
||||
#
|
||||
# spec file for package lua-copas
|
||||
#
|
||||
# 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 copas
|
||||
%define upversion 2.0.2
|
||||
Version: 2.0.2
|
||||
Release: 0
|
||||
Summary: Coroutine Oriented Portable Asynchronous Services
|
||||
License: MIT
|
||||
URL: http://www.keplerproject.org/copas/
|
||||
Source: https://github.com/keplerproject/%{mod_name}/archive/%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: %{flavor}-luasocket
|
||||
BuildRequires: %{flavor}-luasec
|
||||
BuildRequires: %{flavor}-coxpcall
|
||||
Requires: %{flavor}
|
||||
BuildArch: noarch
|
||||
%if "%{flavor}" == "lua53"
|
||||
Provides: lua-copas = %{version}
|
||||
Obsoletes: lua-copas < %{version}
|
||||
%endif
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-copas
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-copas
|
||||
%endif
|
||||
|
||||
%description
|
||||
Copas is a dispatcher based on coroutines that can be used by TCP/IP
|
||||
servers. It uses LuaSocket as the interface with the TCP/IP stack.
|
||||
A server registered with Copas should provide a handler for requests and
|
||||
use Copas socket functions to send the response. Copas loops through
|
||||
requests and invokes the corresponding handlers. For a full
|
||||
implementation of a Copas HTTP server you can refer to Xavante as an
|
||||
example.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{upversion}
|
||||
|
||||
%build
|
||||
/bin/true
|
||||
|
||||
%install
|
||||
%make_install PREFIX=%{_prefix} LUA_DIR=%{lua_noarchdir}
|
||||
|
||||
%check
|
||||
# make %%{?_smp_mflags} test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{lua_noarchdir}/%{mod_name}*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user