forked from pool/python-Mathics-Scanner
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9fe8a5f846 | |||
| 7b3fb9d521 | |||
| 1db247322d | |||
| b12e83138d |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:599a1e5bb84a802de424256b008ca93365bd73471d0aab5ae99f69028088df22
|
|
||||||
size 127755
|
|
||||||
3
mathics_scanner-1.4.1.tar.gz
Normal file
3
mathics_scanner-1.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a98a5ee11815bf94edf8a6f665e788915c09b9cd4fd96ed4fc26583973dc6fb1
|
||||||
|
size 182389
|
||||||
@@ -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>
|
Tue Aug 13 04:53:15 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Mathics-Scanner
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%define modname mathics_scanner
|
%define modname mathics_scanner
|
||||||
Name: python-Mathics-Scanner
|
Name: python-Mathics-Scanner
|
||||||
Version: 1.3.1
|
Version: 1.4.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Character Tables and Tokenizer for Mathics and the Wolfram Language
|
Summary: Character Tables and Tokenizer for Mathics and the Wolfram Language
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
@@ -52,7 +52,7 @@ Character Tables and Tokenizer for Mathics and the Wolfram Language.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
# Fix shbang
|
# 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
|
sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_inputrc.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@@ -60,23 +60,31 @@ sed -i "s|/usr/bin/env python3|/usr/bin/python3|" mathics_scanner/generate/rl_in
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_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}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
# Should be executable
|
# 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
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%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
|
%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}
|
%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}/%{modname}/
|
||||||
%{python_sitelib}/Mathics_Scanner-%{version}*.*-info/
|
%{python_sitelib}/[Mm]athics_[Ss]canner-%{version}*.*-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user