public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-mathics-scanner] rawhide: Update to 10.0.1 + spec cleanup and modernization
@ 2026-08-07 18:34 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-07 18:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-mathics-scanner
Branch : rawhide
Commit : 3dc7ac461d1b72c448522ec2774aba01fe324499
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-08-07T15:34:19-03:00
Stats : +25/-16 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-mathics-scanner/c/3dc7ac461d1b72c448522ec2774aba01fe324499?branch=rawhide
Log:
Update to 10.0.1 + spec cleanup and modernization
Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
---
diff --git a/.gitignore b/.gitignore
index abe0903..007763d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/Mathics_Scanner-1.2.4.tar.gz
/Mathics_Scanner-1.3.0.tar.gz
+/Mathics3-scanner-10.0.1.tar.gz
diff --git a/python-mathics-scanner.spec b/python-mathics-scanner.spec
index 6dead1b..0c67254 100644
--- a/python-mathics-scanner.spec
+++ b/python-mathics-scanner.spec
@@ -1,18 +1,19 @@
-%global srcname Mathics_Scanner
+%global forgeurl https://github.com/Mathics3/Mathics3-scanner
+Version: 10.0.1
+%global tag %{version}
+%forgemeta
Name: python-mathics-scanner
-Version: 1.3.0
Release: %autorelease
Summary: Character Tables and Tokenizer for Mathics and the Wolfram Language
License: GPL-3.0-only
-URL: https://mathics.org
-Source: %{pypi_source}
+URL: %{forgeurl}
+Source: %{forgesource}
BuildArch: noarch
-BuildRequires: python3-devel
-BuildRequires: python3-pytest
-BuildRequires: python3-pkg-resources
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-pytest
%global _description %{expand:
This package provides character tables and a tokenizer for Mathics and the
@@ -20,21 +21,25 @@ Wolfram Language.}
%description %_description
-%package -n python3-mathics-scanner
+%package -n python%{python3_pkgversion}-mathics-scanner
Summary: %{summary}
-Recommends: python3dist(mathics_scanner[full]) = %{version}-%{release}
+Recommends: python%{python3_pkgversion}-mathics_scanner[full]) = %{version}-%{release}
-%description -n python3-mathics-scanner %_description
+%description -n python%{python3_pkgversion}-mathics-scanner %_description
-%pyproject_extras_subpkg -n python3-mathics-scanner full
+%pyproject_extras_subpkg -n python%{python3_pkgversion}-mathics-scanner full
%prep
-%autosetup -p1 -n %{srcname}-%{version}
+%forgeautosetup -p1
+# Remove shebangs from non-executable scripts
+find mathics_scanner/generate -name "*.py" -exec sed -i -e '/^#!\//,1d' {} \;
%generate_buildrequires
+export PYTHON=%{__python3}
%pyproject_buildrequires -x full
%build
+export PYTHON=%{__python3}
%pyproject_wheel
%install
@@ -44,10 +49,13 @@ Recommends: python3dist(mathics_scanner[full]) = %{version}-%{release}
%check
%pytest
-%files -n python3-mathics-scanner -f %{pyproject_files}
+%files -n python%{python3_pkgversion}-mathics-scanner -f %{pyproject_files}
%license COPYING.txt
-%doc README.rst CHANGES.rst AUTHORS.txt ChangeLog
-%{_bindir}/mathics-generate-json-table
+%doc README.rst CHANGES.rst AUTHORS.txt
+%{_bindir}/mathics3-codeparser-tokenize
+%{_bindir}/mathics3-make-boxing-character-json
+%{_bindir}/mathics3-make-named-character-json
+%{_bindir}/mathics3-make-operator-json
%changelog
%autochangelog
diff --git a/sources b/sources
index fd570b9..43d1710 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Mathics_Scanner-1.3.0.tar.gz) = dc3214b7c29000e897acae3fe4d75af3d1c6d36f3da6cedad927b71b0ec1a851e00f0a21520035b71ac6158c8a2c9216c2c37516e17d5879411127f24d693487
+SHA512 (Mathics3-scanner-10.0.1.tar.gz) = 0d8c13fdb76359589412c1d679e6240f6e1e97983451a68e2c634d2ed9c19a97d3ff7f11e729d72c2da15972008aa26d5fb4472534252dfe0f18f52fb19f0b16
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 18:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 18:34 [rpms/python-mathics-scanner] rawhide: Update to 10.0.1 + spec cleanup and modernization Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox