1
0

9 Commits

Author SHA256 Message Date
9fe8a5f846 Accepting request 1281845 from science
OBS-URL: https://build.opensuse.org/request/show/1281845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics-Scanner?expand=0&rev=5
2025-06-02 20:00:51 +00:00
7b3fb9d521 fix Leap 16.0 build
OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics-Scanner?expand=0&rev=9
2025-06-02 09:31:26 +00:00
1db247322d Accepting request 1243885 from science
OBS-URL: https://build.opensuse.org/request/show/1243885
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics-Scanner?expand=0&rev=4
2025-02-07 22:04:09 +00:00
b12e83138d Update to version 1.4.1
OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics-Scanner?expand=0&rev=7
2025-02-06 13:45:49 +00:00
f9523e0251 Accepting request 1194402 from science
OBS-URL: https://build.opensuse.org/request/show/1194402
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics-Scanner?expand=0&rev=3
2024-08-17 10:44:21 +00:00
78359f1494 Accepting request 1080027 from science
OBS-URL: https://build.opensuse.org/request/show/1080027
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics-Scanner?expand=0&rev=2
2023-04-18 13:53:00 +00:00
dd5c519c53 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
2023-04-18 03:10:00 +00:00
5fb699818a Accepting request 949924 from science
Will be needed for updated python-Mathics.

OBS-URL: https://build.opensuse.org/request/show/949924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics-Scanner?expand=0&rev=1
2022-01-31 21:57:00 +00:00
d6cdb09e21 Accepting request 909997 from home:susnux:branches:science
Fix rpmlint warnings

OBS-URL: https://build.opensuse.org/request/show/909997
OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics-Scanner?expand=0&rev=1
2021-08-04 07:46:26 +00:00
5 changed files with 32 additions and 16 deletions

View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:599a1e5bb84a802de424256b008ca93365bd73471d0aab5ae99f69028088df22
size 127755

View File

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

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu May 29 11:24:05 UTC 2025 - Max Lin <mlin@suse.com>
- Fix Leap 16.0 build
-------------------------------------------------------------------
Sun Feb 2 07:27:51 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 1.4.1:
* Include new operator YML and JSON
-------------------------------------------------------------------
Tue Aug 13 04:53:15 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Mathics-Scanner
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%define skip_python2 1
%define modname mathics_scanner
Name: python-Mathics-Scanner
Version: 1.3.1
Version: 1.4.1
Release: 0
Summary: Character Tables and Tokenizer for Mathics and the Wolfram Language
License: GPL-3.0-only
@@ -41,7 +41,7 @@ Requires: python-PyYAML
Requires: python-chardet
Requires: python-click
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
Recommends: python-ujson
BuildArch: noarch
%python_subpackages
@@ -52,7 +52,7 @@ Character Tables and Tokenizer for Mathics and the Wolfram Language.
%prep
%setup -q -n %{modname}-%{version}
# Fix shbang
sed -i "s|/usr/bin/env python|/usr/bin/python3|" mathics_scanner/generate/build_tables.py
sed -i "s|/usr/bin/env python|/usr/bin/python3|" mathics_scanner/generate/build_{,operator_}tables.py
sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_inputrc.py
%build
@@ -60,23 +60,31 @@ sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_in
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/mathics-generate-json-table
%python_clone -a %{buildroot}%{_bindir}/mathics3-generate-json-table
%python_clone -a %{buildroot}%{_bindir}/mathics3-generate-operator-json-table
%python_clone -a %{buildroot}%{_bindir}/mathics3-tokens
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Should be executable
%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/mathics_scanner/generate/{build_tables,rl_inputrc}.py
%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/mathics_scanner/generate/{build_tables,build_operator_tables,rl_inputrc}.py
%check
%pytest
%post
%python_install_alternative mathics-generate-json-table
%python_install_alternative mathics3-generate-json-table
%python_install_alternative mathics3-generate-operator-json-table
%python_install_alternative mathics3-tokens
%postun
%python_uninstall_alternative mathics-generate-json-table
%python_uninstall_alternative mathics3-generate-json-table
%python_uninstall_alternative mathics3-generate-operator-json-table
%python_uninstall_alternative mathics3-tokens
%files %{python_files}
%python_alternative %{_bindir}/mathics-generate-json-table
%python_alternative %{_bindir}/mathics3-generate-json-table
%python_alternative %{_bindir}/mathics3-generate-operator-json-table
%python_alternative %{_bindir}/mathics3-tokens
%{python_sitelib}/%{modname}/
%{python_sitelib}/Mathics_Scanner-%{version}*.*-info/
%{python_sitelib}/[Mm]athics_[Ss]canner-%{version}*.*-info/
%changelog