## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global _description\ Lupa integrates the run-times of Lua or LuaJIT2 into CPython. It is a\ partial rewrite of LunaticPython in Cython with some additional features\ such as proper co-routine support. %ifarch x86_64 aarch64 %bcond_without luajit %else %bcond_with luajit %endif Name: python-lupa Version: 2.2 Release: %autorelease Summary: Python wrapper around Lua and LuaJIT License: MIT URL: https://pypi.python.org/pypi/lupa Source: https://github.com/scoder/lupa/archive/lupa-%{version}/lupa-%{version}.tar.gz # this could be passed via command line options or envvar if we're invoking setup.py directly # but we're not Patch: lupa-default-to-no-bundle.diff BuildRequires: gcc %if %{with luajit} BuildRequires: luajit-devel %else BuildRequires: lua-devel %endif %description %_description %package -n python3-lupa Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-Cython BuildRequires: python3-setuptools %description -n python3-lupa %_description %prep %autosetup -n lupa-lupa-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l lupa %check # tox tries to do setup.py install and setup.py tes # running tests directly failed because the local lupa folder # is not functional prior to the build, which we do elsewhere mkdir test_dir cp -pr %{buildroot}%{python3_sitearch}/lupa test_dir cp -pr lupa/tests test_dir/lupa/ cd test_dir %{py3_test_envvars} %{python3} -m unittest -v %files -n python3-lupa -f %{pyproject_files} %doc README.rst CHANGES.rst INSTALL.rst #{python3_sitearch}/lupa/ #{python3_sitearch}/lupa-*.egg-info %changelog ## START: Generated by rpmautospec * Thu Nov 21 2024 Michel Lind - 2.2-1 - Update to 2.2 - Use unittest rather than setup.py test for setuptools 74 compatibility - Rework spec to match latest Python Packaging Guidelines - Resolves: rhbz#2319678 * Fri Jul 19 2024 Fedora Release Engineering - 1.9-14.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.9-13.20200822git831599a - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.9-12.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.9-11.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.9-10.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.9-9.20200822git831599a - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.9-8.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.9-7.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.9-6.20200822git831599a - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.9-5.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.9-4.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.9-3.20200822git831599a - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.9-2.20200822git831599a - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 8 2020 Michel Alexandre Salim - 1.9-1.20200820git831599a - Update to 1.9 post-release snapshot with Lua 5.4 support - Enable tests * Sat Aug 01 2020 Fedora Release Engineering - 1.6-13 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.6-11 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.6-9 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.6-8 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 1.6-5 - Subpackage python2-lupa has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.6-3 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 01 2018 Dhanesh B. Sabane - 1.6-1 - Initial release ## END: Generated by rpmautospec