From 2dc29a0e0f9cdceb56585b18fb65cebe65b7b578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 17 May 2023 14:55:37 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-pyjsparser revision e331fdf196bbbaff45785e40b454929c --- .gitattributes | 23 ++++++++++++++++ LICENSE | 21 ++++++++++++++ fix_version.patch | 13 +++++++++ pyjsparser-2.7.1.tar.gz | 3 ++ python-pyjsparser.changes | 27 ++++++++++++++++++ python-pyjsparser.spec | 58 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 145 insertions(+) create mode 100644 .gitattributes create mode 100644 LICENSE create mode 100644 fix_version.patch create mode 100644 pyjsparser-2.7.1.tar.gz create mode 100644 python-pyjsparser.changes create mode 100644 python-pyjsparser.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5f5aff9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Piotr Dabkowski + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/fix_version.patch b/fix_version.patch new file mode 100644 index 0000000..d92a870 --- /dev/null +++ b/fix_version.patch @@ -0,0 +1,13 @@ +Index: pyjsparser-2.7.1/pyjsparser/__init__.py +=================================================================== +--- pyjsparser-2.7.1.orig/pyjsparser/__init__.py ++++ pyjsparser-2.7.1/pyjsparser/__init__.py +@@ -1,5 +1,5 @@ + __all__ = ['PyJsParser', 'parse', 'JsSyntaxError', 'pyjsparserdata'] + __author__ = 'Piotr Dabkowski' +-__version__ = '2.2.0' ++__version__ = '2.7.1' + from .parser import PyJsParser, parse, JsSyntaxError +-from . import pyjsparserdata +\ No newline at end of file ++from . import pyjsparserdata diff --git a/pyjsparser-2.7.1.tar.gz b/pyjsparser-2.7.1.tar.gz new file mode 100644 index 0000000..441257c --- /dev/null +++ b/pyjsparser-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be60da6b778cc5a5296a69d8e7d614f1f870faf94e1b1b6ac591f2ad5d729579 +size 24196 diff --git a/python-pyjsparser.changes b/python-pyjsparser.changes new file mode 100644 index 0000000..8a766eb --- /dev/null +++ b/python-pyjsparser.changes @@ -0,0 +1,27 @@ +------------------------------------------------------------------- +Fri Apr 21 12:30:56 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:44 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sat May 25 13:09:24 UTC 2019 - Tomáš Chvátal + +- Update to 2.7.1: + * no upstream changelog +- Rebase fix_version.patch + +------------------------------------------------------------------- +Thu Mar 14 16:38:43 UTC 2019 - Jan Engelhardt + +- Trim bias from description. + +------------------------------------------------------------------- +Wed Mar 13 15:47:24 UTC 2019 - Ondřej Súkup + +- Initial commit +- add fix_version.patch diff --git a/python-pyjsparser.spec b/python-pyjsparser.spec new file mode 100644 index 0000000..16923b6 --- /dev/null +++ b/python-pyjsparser.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-pyjsparser +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-pyjsparser +Version: 2.7.1 +Release: 0 +Summary: Javascript parser based on esprimajs +License: MIT +Group: Development/Languages/Python +URL: https://github.com/PiotrDabkowski/pyjsparser +Source: https://files.pythonhosted.org/packages/source/p/pyjsparser/pyjsparser-%{version}.tar.gz +Source1: https://raw.githubusercontent.com/PiotrDabkowski/pyjsparser/master/LICENSE +Patch0: fix_version.patch +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A JavaScript parser - a manual translation of esprima.js to Python. +It supports the whole of ECMAScript 5.1 and parts of ECMAScript 6. + +%prep +%setup -q -n pyjsparser-%{version} +%patch0 -p1 +cp %{SOURCE1} . + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/* + +%changelog