File lua-luasystem.spec of Package lua-luasystem

# spec file for package lua-luasystem
# Copyright (c) 2021 SUSE LLC
# 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 flavor @BUILD_FLAVOR@
%define mod_name luasystem
%define upversion 0.2.1
Version:        0.21
Release:        0
Summary:        Platform independent system calls for Lua
License:        MIT
BuildRequires:  %{flavor}-devel
Requires:       %{flavor}
%if "%{flavor}" == ""
Name:           lua-luasystem
ExclusiveArch:  do_not_build
Name:           %{flavor}-luasystem

Adds a Lua API for making platform independent system calls.

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

make %{?_smp_mflags} \
	CWARNS="%{optflags}" \
        LUAINC_linux=%{lua_incdir} \
        CDIR_linux?=%{_lib}/lua/%{lua_version} \
        LUAPREFIX_linux?=%{_prefix} \

%make_install \
        CWARNS="%{optflags}" \
        LUAINC_linux=%{lua_incdir} \
        LUAPREFIX_linux?=%{_prefix} \
        CDIR_linux?=%{_lib}/lua/%{lua_version} \
install -v -D -m0644 -p -t %{buildroot}%{lua_noarchdir}/system system/init.lua

%dir %{lua_archdir}/system
%dir %{lua_noarchdir}/system

openSUSE Build Service is sponsored by