2019-03-14 12:52:09 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyjsparser
|
|
|
|
#
|
2024-03-01 05:33:35 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-14 12:52:09 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-14 16:42:49 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-03-14 12:52:09 +00:00
|
|
|
|
|
|
|
|
2023-04-21 13:23:28 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-03-14 12:52:09 +00:00
|
|
|
Name: python-pyjsparser
|
2019-05-25 13:12:23 +00:00
|
|
|
Version: 2.7.1
|
2019-03-14 12:52:09 +00:00
|
|
|
Release: 0
|
2019-03-14 16:42:49 +00:00
|
|
|
Summary: Javascript parser based on esprimajs
|
2019-03-14 12:52:09 +00:00
|
|
|
License: MIT
|
2019-05-25 13:12:23 +00:00
|
|
|
URL: https://github.com/PiotrDabkowski/pyjsparser
|
2019-03-14 12:52:09 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyjsparser/pyjsparser-%{version}.tar.gz
|
2019-05-25 13:12:23 +00:00
|
|
|
Source1: https://raw.githubusercontent.com/PiotrDabkowski/pyjsparser/master/LICENSE
|
2019-03-14 12:52:09 +00:00
|
|
|
Patch0: fix_version.patch
|
2024-03-01 05:33:35 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-03-14 12:52:09 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-01 05:33:35 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-14 12:52:09 +00:00
|
|
|
BuildRequires: fdupes
|
2019-03-14 16:42:49 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-14 12:52:09 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-03-14 16:42:49 +00:00
|
|
|
A JavaScript parser - a manual translation of esprima.js to Python.
|
|
|
|
It supports the whole of ECMAScript 5.1 and parts of ECMAScript 6.
|
2019-03-14 12:52:09 +00:00
|
|
|
|
|
|
|
%prep
|
2024-03-01 05:33:35 +00:00
|
|
|
%autosetup -p1 -n pyjsparser-%{version}
|
2019-05-25 13:12:23 +00:00
|
|
|
cp %{SOURCE1} .
|
2019-03-14 12:52:09 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-01 05:33:35 +00:00
|
|
|
%pyproject_wheel
|
2019-03-14 12:52:09 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-01 05:33:35 +00:00
|
|
|
%pyproject_install
|
2019-03-14 12:52:09 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2024-03-01 05:33:35 +00:00
|
|
|
%{python_sitelib}/pyjsparser
|
|
|
|
%{python_sitelib}/pyjsparser-%{version}.dist-info
|
2019-03-14 12:52:09 +00:00
|
|
|
|
|
|
|
%changelog
|