From dd5c519c53347371c4b32696bdca5e51a294f3480642b043b094d5ad685f69ac Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Tue, 18 Apr 2023 03:10:00 +0000 Subject: [PATCH] Accepting request 1078298 from home:badshah400:branches:science * Update to version 1.3.0. * Drop 9346764dfd22f011ec7bba9248497383f4b98a3a.patch: incorporated upstream. * Requires(post): update-alternatives for correct post scriptlet runs. OBS-URL: https://build.opensuse.org/request/show/1078298 OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics-Scanner?expand=0&rev=3 --- ...764dfd22f011ec7bba9248497383f4b98a3a.patch | 19 --------------- Mathics_Scanner-1.2.4.tar.gz | 3 --- Mathics_Scanner-1.3.0.tar.gz | 3 +++ python-Mathics-Scanner.changes | 24 +++++++++++++++++++ python-Mathics-Scanner.spec | 20 +++++++++------- 5 files changed, 38 insertions(+), 31 deletions(-) delete mode 100644 9346764dfd22f011ec7bba9248497383f4b98a3a.patch delete mode 100644 Mathics_Scanner-1.2.4.tar.gz create mode 100644 Mathics_Scanner-1.3.0.tar.gz diff --git a/9346764dfd22f011ec7bba9248497383f4b98a3a.patch b/9346764dfd22f011ec7bba9248497383f4b98a3a.patch deleted file mode 100644 index 45bbfea..0000000 --- a/9346764dfd22f011ec7bba9248497383f4b98a3a.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 9346764dfd22f011ec7bba9248497383f4b98a3a Mon Sep 17 00:00:00 2001 -From: Ferdinand Thiessen -Date: Sat, 31 Jul 2021 19:20:53 +0200 -Subject: [PATCH] Fix shbang of rl_inputrc.py - ---- - mathics_scanner/generate/rl_inputrc.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/mathics_scanner/generate/rl_inputrc.py b/mathics_scanner/generate/rl_inputrc.py -index a7be6a7..778c34e 100755 ---- a/mathics_scanner/generate/rl_inputrc.py -+++ b/mathics_scanner/generate/rl_inputrc.py -@@ -1,4 +1,4 @@ --#!/bin python3 -+#!/usr/bin/env python3 - """ - Creates GNU Readline inputrc tables for converting Wolfram Language escape - sequences to either unicode symbols or Wolfram Language fully qualified named diff --git a/Mathics_Scanner-1.2.4.tar.gz b/Mathics_Scanner-1.2.4.tar.gz deleted file mode 100644 index 0f210a9..0000000 --- a/Mathics_Scanner-1.2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b05939751aacea42f3fc4e7eb1ab111f9fe32bae827e89f46a50e04907b19ef -size 113724 diff --git a/Mathics_Scanner-1.3.0.tar.gz b/Mathics_Scanner-1.3.0.tar.gz new file mode 100644 index 0000000..ec75df0 --- /dev/null +++ b/Mathics_Scanner-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39751a2d28d40c88538cc03aa72a113dcae59fc49e8e7727f30219a6cc9ef997 +size 125861 diff --git a/python-Mathics-Scanner.changes b/python-Mathics-Scanner.changes index 38ed4a4..ed8712e 100644 --- a/python-Mathics-Scanner.changes +++ b/python-Mathics-Scanner.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Mon Apr 10 20:45:44 UTC 2023 - Atri Bhattacharya + +- Update to version 1.3.0: + * Add escape-code sequence for 32-bit Unicode + (gh#Mathics3/mathics-scanner#48). + * Correct Infix and Tilde character symbols + * Support double backslash (\\) as a single backslash character + (\). + * Correct Unicode for ScriptN and ScriptCaptialN + * Correct a number of is-letter-like entries. + * Accept \u21A6 as symbol for Function. + * Change the precedence of |->(Function symbol) to 800 so it + isn't interpreted as a | followed by -> + * ASCII operator tables can now be generated + * Add DifferentialD and Integrate even though we don't have a + full set of prefix operators. + * More precedence values added to operators + * Python 3.11 operation verified +- Drop 9346764dfd22f011ec7bba9248497383f4b98a3a.patch: + incorporated upstream. +- Requires(post): update-alternatives for correct post scriptlet + runs. + ------------------------------------------------------------------- Sun Jul 11 09:27:26 UTC 2021 - Ferdinand Thiessen diff --git a/python-Mathics-Scanner.spec b/python-Mathics-Scanner.spec index e95b485..130690f 100644 --- a/python-Mathics-Scanner.spec +++ b/python-Mathics-Scanner.spec @@ -1,7 +1,7 @@ # # spec file for package python-Mathics-Scanner # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -19,25 +19,26 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-Mathics-Scanner -Version: 1.2.4 +Version: 1.3.0 Release: 0 Summary: Character Tables and Tokenizer for Mathics and the Wolfram Language License: GPL-3.0-only URL: https://mathics.org/ Source: https://files.pythonhosted.org/packages/source/M/Mathics-Scanner/Mathics_Scanner-%{version}.tar.gz -Patch0: https://github.com/Mathics3/mathics-scanner/commit/9346764dfd22f011ec7bba9248497383f4b98a3a.patch -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module chardet} +BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module click} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module PyYAML} # /SECTION BuildRequires: fdupes +Requires: python-PyYAML Requires: python-chardet Requires: python-click -Requires: python-PyYAML +Requires(post): update-alternatives +Requires(postun):update-alternatives Recommends: python-ujson BuildArch: noarch %python_subpackages @@ -47,9 +48,9 @@ Character Tables and Tokenizer for Mathics and the Wolfram Language. %prep %setup -q -n Mathics_Scanner-%{version} -%patch0 -p1 # Fix shbang -sed -i "s|/usr/bin/env python|/usr/bin/python|" mathics_scanner/generate/{build_tables,rl_inputrc}.py +sed -i "s|/usr/bin/env python|/usr/bin/python3|" mathics_scanner/generate/build_tables.py +sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_inputrc.py %build %python_build @@ -72,6 +73,7 @@ sed -i "s|/usr/bin/env python|/usr/bin/python|" mathics_scanner/generate/{build_ %files %{python_files} %python_alternative %{_bindir}/mathics-generate-json-table -%{python_sitelib}/* +%{python_sitelib}/mathics_scanner/ +%{python_sitelib}/Mathics_Scanner-%{version}-py%{python_version}.egg-info/ %changelog