2017-07-13 20:01:10 +00:00
|
|
|
#
|
2022-08-22 11:03:56 +00:00
|
|
|
# spec file
|
2017-07-13 20:01:10 +00:00
|
|
|
#
|
2023-03-16 18:13:13 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-07-13 20:01:10 +00:00
|
|
|
# Copyright (c) 2009 florian.leparoux@gmail.com
|
|
|
|
|
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2020-07-06 19:05:19 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-07-13 20:01:10 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2017-07-13 20:04:27 +00:00
|
|
|
%define flavor @BUILD_FLAVOR@
|
|
|
|
|
%define mod_name luaexpat
|
2023-07-11 12:59:35 +00:00
|
|
|
Version: 1.5.1
|
2017-07-13 20:01:10 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A SAX XML parser based on the Expat library
|
2017-10-30 14:47:51 +00:00
|
|
|
License: MIT
|
2017-07-13 20:01:10 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2023-03-16 18:13:13 +00:00
|
|
|
URL: https://lunarmodules.github.io/luaexpat/
|
2022-08-22 11:03:56 +00:00
|
|
|
Source: https://github.com/lunarmodules/luaexpat/archive/%{version}/%{mod_name}-%{version}.tar.gz
|
2017-07-13 20:04:27 +00:00
|
|
|
BuildRequires: %{flavor}-devel
|
2023-07-11 12:59:35 +00:00
|
|
|
# See: https://github.com/lunarmodules/luaexpat/releases/tag/1.5.0
|
|
|
|
|
BuildRequires: libexpat-devel >= 2.4.6
|
2023-03-16 18:13:13 +00:00
|
|
|
BuildRequires: lua-macros
|
2017-07-13 20:04:27 +00:00
|
|
|
Requires: %{flavor}
|
2021-02-18 18:20:19 +00:00
|
|
|
%lua_provides
|
2017-07-13 20:04:27 +00:00
|
|
|
%if "%{flavor}" == ""
|
2017-07-15 07:33:40 +00:00
|
|
|
Name: lua-%{mod_name}
|
2017-07-13 20:04:27 +00:00
|
|
|
ExclusiveArch: do_not_build
|
2017-07-15 07:33:40 +00:00
|
|
|
%else
|
|
|
|
|
Name: %{flavor}-%{mod_name}
|
2017-07-13 20:01:10 +00:00
|
|
|
%endif
|
2017-07-13 20:04:27 +00:00
|
|
|
|
2017-07-13 20:01:10 +00:00
|
|
|
%description
|
|
|
|
|
LuaExpat is a SAX XML parser based on the Expat library.
|
|
|
|
|
|
|
|
|
|
%prep
|
2017-07-13 20:04:27 +00:00
|
|
|
%setup -q -n %{mod_name}-%{version}
|
2017-07-13 20:01:10 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make %{?_smp_mflags} \
|
|
|
|
|
PREFIX="%{_prefix}" \
|
2017-07-13 20:20:11 +00:00
|
|
|
LUA_V=%{lua_version} \
|
2017-07-13 20:01:10 +00:00
|
|
|
LUA_CDIR="%{lua_archdir}" \
|
2017-07-13 20:12:10 +00:00
|
|
|
LUA_INC="-I%{lua_incdir}" \
|
2022-08-23 14:21:48 +00:00
|
|
|
CFLAGS="%{optflags}"
|
2017-07-13 20:01:10 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-08-22 11:03:56 +00:00
|
|
|
%make_install \
|
2017-07-13 20:01:10 +00:00
|
|
|
PREFIX="%{_prefix}" \
|
2017-07-13 20:14:44 +00:00
|
|
|
LUA_CDIR="%{lua_archdir}" \
|
2017-07-13 20:06:59 +00:00
|
|
|
LUA_LDIR="%{lua_noarchdir}"
|
2017-07-13 20:01:10 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2022-08-22 11:03:56 +00:00
|
|
|
%license LICENSE
|
2017-07-13 20:01:10 +00:00
|
|
|
%{lua_archdir}/lxp.so
|
|
|
|
|
%{lua_noarchdir}/lxp
|
|
|
|
|
|
|
|
|
|
%changelog
|