forked from pool/lua-luv
Accepting request 710856 from home:mcepl:neovim
Initial submission. OBS-URL: https://build.opensuse.org/request/show/710856 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luv?expand=0&rev=2
This commit is contained in:
4
lua-luv.changes
Normal file
4
lua-luv.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 17:01:39 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging
|
110
lua-luv.spec
Normal file
110
lua-luv.spec
Normal file
@@ -0,0 +1,110 @@
|
||||
#
|
||||
# spec file for package lua-penlight
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
|
||||
#
|
||||
# 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 flavor lua51
|
||||
%define mod_name luv
|
||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||
%define upver 1.29.1-2
|
||||
Version: 1.29.1
|
||||
Release: 0
|
||||
Summary: Bare libuv bindings for lua
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Other
|
||||
URL: https://github.com/luvit/luv
|
||||
Source: https://github.com/luvit/%{mod_name}/archive/%{upver}.tar.gz#/%{mod_name}-%{upver}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: libuv-devel
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: %{flavor}-luafilesystem
|
||||
BuildRequires: %{flavor}-compat-5.3
|
||||
Requires: %{flavor}
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
|
||||
%description
|
||||
This library makes libuv available to lua scripts. It was made
|
||||
for the luvit project but should usable from nearly any lua
|
||||
project.
|
||||
|
||||
The library can be used by multiple threads at once. Each thread
|
||||
is assumed to load the library from a different lua_State. Luv
|
||||
will create a unique uv_loop_t for each state. You can't share uv
|
||||
handles between states/loops.
|
||||
|
||||
The best docs currently are the libuv docs themselves. Hopfully
|
||||
soon we'll have a copy locally tailored for lua.
|
||||
|
||||
%package devel
|
||||
Summary: Header files for %{flavor}-%{mod_name}
|
||||
Group: Development/Languages/Other
|
||||
Requires: %{flavor}-%{mod_name} = %{version}
|
||||
|
||||
%description devel
|
||||
This subpackage contains header files for developing applications that
|
||||
want to make use of %{flavor}-%{mod_name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{upver}
|
||||
|
||||
# Remove bundled dependencies
|
||||
rm -rf deps
|
||||
|
||||
# Remove network sensitive tests gh#luvit/luv#340
|
||||
rm -fv tests/test-dns.lua
|
||||
|
||||
%build
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
-DBUILD_STATIC_LIBS=OFF -DCMAKE_INSTALL_DO_STRIP=OFF \
|
||||
-DBUILD_MODULE=ON -DBUILD_SHARED_LIBS=ON \
|
||||
-DWITH_SHARED_LIBUV=ON -DWITH_LUA_ENGINE=Lua \
|
||||
-DLUA_BUILD_TYPE=System -DLUA_COMPAT53_DIR="%{lua_incdir}/"
|
||||
cd build
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
install -v -D -m 0644 -p -t %{buildroot}%{lua_archdir} build/luv.so
|
||||
install -v -D -m 0644 -p -t %{buildroot}%{lua_incdir}/%{mod_name} src/*.h
|
||||
|
||||
# For %%doc
|
||||
cp -rv lib/ examples/
|
||||
|
||||
%check
|
||||
ln -sf build/luv.so .
|
||||
lua tests/run.lua
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc *.md examples/
|
||||
%{lua_archdir}/luv.so
|
||||
|
||||
%files devel
|
||||
%license LICENSE.txt
|
||||
%dir %{lua_incdir}/%{mod_name}
|
||||
%{lua_incdir}/%{mod_name}/*
|
||||
|
||||
%changelog
|
3
luv-1.29.1-2.tar.gz
Normal file
3
luv-1.29.1-2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e75d8fd2a14433bb798900a71e45318b3c0b8c2ef2c1c43593482ce95b4999e2
|
||||
size 86609
|
Reference in New Issue
Block a user