%global srcname Mathics3 Name: python-mathics3 Version: 5.0.2 Release: %autorelease Summary: General-purpose computer algebra system License: GPL-3.0-only URL: https://mathics.org Source: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: Mathics is a general-purpose computer algebra system (CAS) providing a free, open-source alternative to Mathematica.} %description %_description %package -n python3-mathics3 Summary: %{summary} %description -n python3-mathics3 %_description %prep %autosetup -p1 -n Mathics3-%{version} # Relax sympy version requirement sed -i 's:"sympy.*":"sympy":' setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files mathics %check %pytest %files -n python3-mathics3 -f %{pyproject_files} %license COPYING.txt %doc README.rst FUTURE.rst AUTHORS.txt CHANGES.rst ChangeLog %{_bindir}/mathics %changelog %autochangelog