File lua-luaterm.spec of Package lua-luaterm

# spec file for package lua-luaterm
# Copyright (c) 2013 SUSE LINUX Products 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
%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
Group:          Development/Languages/Lua
BuildRequires:  lua-devel >= %{lua_version}
Requires:	lua  >= %{lua_version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package provides terminal operations for Lua

%setup -q -n %{mod_name}-%{version}

export OPTFLAGS="%{optflags} -fPIC"
make %{_smp_mflags}

%makeinstall LUA_LIBDIR='$(DESTDIR)/%{lua_archdir}/term/' LUA_SHARE='$(DESTDIR)/%{lua_noarchdir}/term/'

%dir %{lua_archdir}/term
%dir %{lua_noarchdir}/term

openSUSE Build Service is sponsored by