17
0

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
This commit is contained in:
2023-04-18 03:10:00 +00:00
committed by Git OBS Bridge
parent dfae3ffcd4
commit 031be69751
5 changed files with 38 additions and 31 deletions

View File

@@ -1,19 +0,0 @@
From 9346764dfd22f011ec7bba9248497383f4b98a3a Mon Sep 17 00:00:00 2001
From: Ferdinand Thiessen <rpm@fthiessen.de>
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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b05939751aacea42f3fc4e7eb1ab111f9fe32bae827e89f46a50e04907b19ef
size 113724

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39751a2d28d40c88538cc03aa72a113dcae59fc49e8e7727f30219a6cc9ef997
size 125861

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon Apr 10 20:45:44 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>
- 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 <rpm@fthiessen.de>

View File

@@ -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