# # spec file for package python-Js2Py # # 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/ # %define skip_python36 1 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-Js2Py Version: 0.74 Release: 2.4 Summary: JavaScript to Python Translator & JavaScript interpreter License: MIT Group: Development/Languages/Python URL: https://github.com/PiotrDabkowski/Js2Py Source: https://files.pythonhosted.org/packages/source/J/Js2Py/Js2Py-%{version}.tar.gz Source1: https://raw.githubusercontent.com/PiotrDabkowski/Js2Py/master/LICENSE.md BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pyjsparser Requires: python-six Requires: python-tzlocal BuildArch: noarch %python_subpackages %description Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code. Js2Py, basically an implementation of the JavaScript core, is written in pure Python. %prep %setup -q -n Js2Py-%{version} cp %{SOURCE1} . %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # no tests in pypi sdist and no tags in github repo (https://github.com/PiotrDabkowski/Js2Py/issues/100) %files %{python_files} %doc README.md %license LICENSE.md %{python_sitelib}/* %changelog * Fri Apr 21 2023 Dirk Müller - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 Matej Cepl - Make calling of %%{sle15modernpython} optional. * Thu Dec 1 2022 Yogalakshmi Arunachalam - Update to version 0.74 * remove template and opname not supported in old python version * support python 3.11 bytecode, fixes #282 * Tue May 24 2022 Alberto Planas Dominguez - Update to version 0.71 * Some small fixes * Fri Apr 17 2020 Marketa Calabkova - update to version 0.70 * fix error messages * Thu Mar 26 2020 Marketa Calabkova - update to version 0.68 * fix error msg from python function * Fix print functions and a python2 only import * Mon Jan 13 2020 Marketa Calabkova - update to version 0.67 * small bugfixes * Fri Jul 26 2019 Marketa Calabkova - update to version 0.66 * Convert exponential numbers to string * Fix inconsistency between py2 and py3 jsdtoa * fix object initialized too early case * Try to add Python 3.7 and 3.8 (dev). * Drop support for unsupported Python versions. * Thu Mar 14 2019 Jan Engelhardt - Remove wrong statements from description. * Wed Mar 13 2019 Ondřej Súkup - initial commit