LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lua-luaexpat.spec of Package lua-luaexpat (Project home:ecsos:server)

# spec file for package lua51-luaexpat
# Copyright (c) 2009 florian.leparoux@gmail.com
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
# 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 http://bugs.opensuse.org/

%define flavor @BUILD_FLAVOR@
%define mod_name    luaexpat
Version:        1.3.0
Release:        0
License:        MIT
Summary:        A SAX XML parser based on the Expat library
Url:            http://matthewwild.co.uk/projects/luaexpat/
Group:          Productivity/Networking/Other
Source:         http://matthewwild.co.uk/projects/luaexpat/%{mod_name}-%{version}.tar.gz
BuildRequires:  libexpat-devel
BuildRequires:  %{flavor}-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