Sync from SUSE:SLFO:Main python-lupa revision 165c1bac2ecc16fd182952f24acb167c

This commit is contained in:
Adrian Schröter 2024-05-03 21:26:54 +02:00
commit c60e12dd89
4 changed files with 200 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
lupa-1.14.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

103
python-lupa.changes Normal file
View File

@ -0,0 +1,103 @@
-------------------------------------------------------------------
Fri Aug 4 11:45:42 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Synchronize architectures where luajit is Required with those
where it is build (riscv64 ppc64 ppc64le s390x).
-------------------------------------------------------------------
Sat Jun 10 17:17:28 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Sat Dec 3 17:43:41 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 1.14.1
* Rebuild with Cython 0.29.32 to support Python 3.11.
-------------------------------------------------------------------
Tue Oct 18 17:10:06 UTC 2022 - Sarah Kriesch <sarah.kriesch@opensuse.org>
- No upstream LuaJIT on s390x
-------------------------------------------------------------------
Thu Sep 29 15:01:40 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 1.13 (2022-03-01)
* Bundled Lua source files were missing in the source distribution.
-------------------------------------------------------------------
Mon Feb 21 09:05:32 UTC 2022 - Andreas Schneider <asn@cryptomilk.org>
- Fix BR for luajit (Leap 15.3 only offers moonjit)
-------------------------------------------------------------------
Mon Feb 21 08:57:02 UTC 2022 - Andreas Schneider <asn@cryptomilk.org>
- Skip building for python2
-------------------------------------------------------------------
Wed Dec 29 00:48:53 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Adjust BuildRequires for lua
-------------------------------------------------------------------
Sun Dec 12 15:54:42 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 14:56:37 UTC 2021 - Andreas Schwab <schwab@suse.de>
- Force use of lua5.1, lua5.4 is not supported
-------------------------------------------------------------------
Tue May 25 09:45:01 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest_arch rpm macro
-------------------------------------------------------------------
Thu Jan 7 16:28:30 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Remove third-party/ bundled application, use the system ones
(bsc#1167557).
-------------------------------------------------------------------
Sat Mar 21 18:05:45 UTC 2020 - Andreas Schwab <schwab@suse.de>
- No LuaJIT on riscv64
-------------------------------------------------------------------
Thu Mar 5 13:50:57 UTC 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 20:52:28 CET 2019 - Matej Cepl <mcepl@suse.com>
- Use pkgconf instead of directly defining required development
packages.
-------------------------------------------------------------------
Tue Dec 10 10:34:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix dependency on the luajit to pull any implementation
-------------------------------------------------------------------
Sat Feb 16 16:23:10 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v1.8

71
python-lupa.spec Normal file
View File

@ -0,0 +1,71 @@
#
# spec file for package python-lupa
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-lupa
Version: 1.14.1
Release: 0
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
# Synchronized with archs where luajit is build
%ifnarch riscv64 ppc64 ppc64le s390x
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