## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 25; 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 Name: ilua Version: 0.2.1 Release: %autorelease Summary: Portable Lua kernel for Jupyter # The package contains the Lua logo, which has some modification restrictions. # It was permitted by legal, but advised not to declare the license in the tag: # https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/UDFBEBDR4NTSP6TATQEONDJAYHSYXUUQ/ # Hence, only listing the license of the code. # ilua is GPL-2.0-only # Bundled lua files in ilua/ext are all MIT License: GPL-2.0-only AND MIT URL: https://github.com/guysv/ilua Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # Twisted 23+ started using posix_nspawn in spawnProcess(). # For unknown reasons, this breaks ilua. # Report: https://github.com/guysv/ilua/issues/30 # As a workaround, we force the old twisted behavior (fork) # by setting a convenient internal attribute: Patch: ilua-never-use-spawn.patch BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: python3-devel # For %%check BuildRequires: lua BuildRequires: /usr/bin/jupyter-console Requires: python-jupyter-filesystem Recommends: lua # From ilua/ext. Versions are specified in the files and in scripts/getdeps.sh # Note: inspect.lua has 3.1.0 in the file, but is from the 3.1.1 tag Provides: bundled(lua-inspect) = 3.1.1 Provides: bundled(lua-json) = 0.1.1 Provides: bundled(lua-netstring) = 0.2.0 %description ILua is a feature-packed, portable console and Jupyter kernel for the Lua language. It is Lua-implementation agnostic, should work with any Lua interpreter out of the box. %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ilua %check # assert we can start the console ad run a simple command # note 1: sleep because the kernel takes a while to start # note 2: make sure the command is not Python compatible to fail if not executed in Lua export PYTHONPATH=%{buildroot}%{python3_sitelib} export JUPYTER_PATH=%{buildroot}%{_datadir}/jupyter (sleep 5 && echo 'print("assert" .. "me")') | jupyter-console --simple-prompt --kernel=lua 2>&1 | tee check.log grep assertme check.log grep Traceback check.log && exit 1 || true %files -f %pyproject_files %doc README.md CHANGES.md %{_bindir}/ilua %dir %{_datadir}/jupyter/kernels/lua/ %{_datadir}/jupyter/kernels/lua/*.json %{_datadir}/jupyter/kernels/lua/*.png %license %{_datadir}/jupyter/kernels/lua/logo-license.txt %changelog ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 0.2.1-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 0.2.1-24 - Rebuilt for Python 3.13 * Wed Jan 24 2024 Fedora Release Engineering - 0.2.1-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.2.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Dec 13 2023 Miro Hrončok - 0.2.1-21 - Workaround fatal problems with Twisted 23+ - Fixes: rhbz#2254366 * Wed Dec 13 2023 Miro Hrončok - 0.2.1-20 - Update the License tag to SPDX * Thu Jul 20 2023 Fedora Release Engineering - 0.2.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 02 2023 Python Maint - 0.2.1-14 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.2.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Jan 08 2023 Elliott Sales de Andrade - 0.2.1-12 - Drop support for i686 * Thu Jul 21 2022 Fedora Release Engineering - 0.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.2.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jul 02 2021 Miro Hrončok - 0.2.1-8 - Run a smoke test when building the package * Fri Jun 04 2021 Python Maint - 0.2.1-7 - Rebuilt for Python 3.10 * Thu Feb 11 2021 Miro Hrončok - 0.2.1-6 - Prperly own site-packages/ilua/__pycache__ * Sat Feb 06 2021 Miro Hrončok - 0.2.1-5 - Declare bundled Lua libraries, MIT-licensed * Tue Jan 26 2021 Fedora Release Engineering - 0.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Sep 03 2020 Miro Hrončok - 0.2.1-3 - Include the Lua logo from upstream * Tue Jul 28 2020 Fedora Release Engineering - 0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 11 2020 Miro Hrončok - 0.2.1-1 - Initial package (#1834280) ## END: Generated by rpmautospec