# Created by pyp2rpm-3.3.5 %global pypi_name js2py %global srcname Js2Py Name: python-%{pypi_name} Version: 0.70 Release: %mkrel 3 Summary: JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python Group: Development/Python License: MIT URL: https://github.com/PiotrDabkowski/Js2Py Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.Js2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python. import js2py f js2py.eval_js( "function $(name) {return name.length}" ) f("Hello world") returns 11Now also supports ECMA 6 through... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.Js2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python. import js2py f js2py.eval_js( "function $(name) {return name.length}" ) f("Hello world") returns 11Now also supports ECMA 6 through... %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %changelog * Wed Mar 23 2022 umeabot <umeabot> 0.70-3.mga9 + Revision: 1823651 - Mageia 9 Mass Rebuild * Wed Feb 23 2022 mrambo3501 <mrambo3501> 0.70-2.mga9 + Revision: 1783868 - rebuild for python-3.10 * Mon Mar 15 2021 wally <wally> 0.70-1.mga9 + Revision: 1703349 - imported package python-js2py