# # spec file for package python-lupa # # Copyright (c) 2022 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 %define skip_python39 1 Name: python-lupa Version: 1.10 Release: 3.1 Summary: Python wrapper around Lua and LuaJIT License: MIT Group: Development/Languages/Python URL: https://github.com/scoder/lupa Source: https://files.pythonhosted.org/packages/source/l/lupa/lupa-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(lua) Suggests: lua %if 0%{suse_version} >= 1550 || 0%{?sle_version} >= 150400 %ifnarch riscv64 BuildRequires: pkgconfig(luajit) %endif Recommends: luajit # /suse_version %endif %python_subpackages %description Python wrapper around Lua and LuaJIT. %prep %autosetup -p1 -n lupa-%{version} rm -rf third-party/ %build export CFLAGS="-fno-strict-aliasing %{optflags}" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check mv lupa/tests . mv lupa lupa.hide %pyunittest_arch discover -v %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.txt %{python_sitearch}/* %changelog * Mon Feb 21 2022 Andreas Schneider - Fix BR for luajit (Leap 15.3 only offers moonjit) * Mon Feb 21 2022 Andreas Schneider - Skip building for python2 * Wed Dec 29 2021 Matej Cepl - Adjust BuildRequires for lua * Sun Dec 12 2021 Ben Greiner - Update to 1.10 * GH#147: Lua 5.4 is supported. (patch by Russel Davis) * The runtime version of the Lua library as a tuple (e.g. (5,3)) is provided via lupa.LUA_VERSION and LuaRuntime.lua_version. * The Lua implementation name and version string is provided as LuaRuntime.lua_implementation. * setup.py accepts new command line arguments --lua-lib and - -lua-includes to specify the * Use Lua 5.4.3 in binary wheels and as bundled Lua. * Built with Cython 0.29.24 to support Python 3.9. - Also successfully builds and tests on python310 - Update to pkgconfig(lua5.4) * Thu Jul 1 2021 Andreas Schwab - Force use of lua5.1, lua5.4 is not supported * Tue May 25 2021 pgajdos@suse.com - %%check: use %%pyunittest_arch rpm macro * Thu Jan 7 2021 Matej Cepl - Remove third-party/ bundled application, use the system ones (bsc#1167557). * Sat Mar 21 2020 Andreas Schwab - No LuaJIT on riscv64 * Thu Mar 5 2020 pgajdos@suse.com - version update to 1.9 * Build against Lua 5.3 if available. * GH#129: Fix Lua module loading in Python 3.x. * GH#126: Fix build on Linux systems that install Lua as "lua52" package. * Tue Dec 10 2019 Matej Cepl - Use pkgconf instead of directly defining required development packages. * Tue Dec 10 2019 Tomáš Chvátal - Fix dependency on the luajit to pull any implementation * Sat Feb 16 2019 John Vandenberg - Initial spec for v1.8