SHA256
10
0
forked from pool/lua-luaterm

- Fix build with namespaced lua

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaterm?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2017-07-13 18:17:20 +00:00
committed by Git OBS Bridge
parent 9b223024d2
commit 7ab6b16e8e
3 changed files with 20 additions and 17 deletions

View File

@@ -1,5 +0,0 @@
<services>
<service name="download_files" mode="localonly">
<param name="enforceupstream">yes</param>
</service>
</services>

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 13 18:17:50 UTC 2017 - tchvatal@suse.com
- Fix build with namespaced lua
-------------------------------------------------------------------
Wed Jan 4 15:52:54 UTC 2017 - eich@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-luaterm
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -14,22 +14,19 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define trans() ( echo %{1} | sed -e "s#_#\\.#g" )
%define vers_f() %(%trans)
%define mod_name lua-term
Name: lua-luaterm
Version: 0.07
Release: 0
License: MIT
Summary: Terminal operations for Lua
Url: http://github.com/hoelzro/lua-term
License: MIT
Group: Development/Libraries/Other
Url: http://github.com/hoelzro/lua-term
Source: https://github.com/hoelzro/lua-term/archive/%{version}.tar.gz#$/%{name}-%{version}.tar.gz
BuildRequires: lua-devel >= %{lua_version}
Requires: lua >= %{lua_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: lua >= %{lua_version}
%description
This package provides terminal operations for Lua
@@ -38,14 +35,20 @@ This package provides terminal operations for Lua
%setup -q -n %{mod_name}-%{version}
%build
export OPTFLAGS="%{optflags} -fPIC"
make %{_smp_mflags}
make %{?_smp_mflags} \
CWARNS="%{optflags}" \
LUA_INC=%{lua_incdir} \
LUA_SHARE=%{lua_noarchdir}/term \
LUA_LIBDIR=%{lua_archdir}/term
%install
%make_install LUA_LIBDIR='$(DESTDIR)/%{lua_archdir}/term/' LUA_SHARE='$(DESTDIR)/%{lua_noarchdir}/term/'
%make_install \
CWARNS="%{optflags}" \
LUA_INC=%{lua_incdir} \
LUA_SHARE=%{buildroot}%{lua_noarchdir}/term \
LUA_LIBDIR=%{buildroot}%{lua_archdir}/term
%files
%defattr(-,root,root,-)
%dir %{lua_archdir}/term
%{lua_archdir}/term/core.so*
%dir %{lua_noarchdir}/term