File lua-luaexpat.spec of Package lua-luaexpat

# spec file for package lua-luaexpat
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2009
# Copyright (c) 2012 Togan Muftuoglu
# 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    luaexpat
Version:        1.3.0
Release:        0
Summary:        A SAX XML parser based on the Expat library
License:        MIT
Group:          Productivity/Networking/Other
BuildRequires:  %{flavor}-devel
BuildRequires:  libexpat-devel
Requires:       %{flavor}
%if "%{flavor}" == ""
Name:           lua-%{mod_name}
ExclusiveArch:  do_not_build
Name:           %{flavor}-%{mod_name}

LuaExpat is a SAX XML parser based on the Expat library.

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

make %{?_smp_mflags} \
    PREFIX="%{_prefix}" \
    LUA_V=%{lua_version} \
    LUA_CDIR="%{lua_archdir}" \
    LUA_INC="-I%{lua_incdir}" \
    CFLAGS="%{optflags} -DLUA_32BITS"

%makeinstall \
    PREFIX="%{_prefix}" \
    LUA_CDIR="%{lua_archdir}" \

%doc doc/us/license.html

openSUSE Build Service is sponsored by