Hello community, here is the log from the commit of package python-Mathics for openSUSE:Factory checked in at 2020-03-18 12:40:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Mathics (Old) and /work/SRC/openSUSE:Factory/.python-Mathics.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Mathics" Wed Mar 18 12:40:40 2020 rev:2 rq:785937 version:1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Mathics/python-Mathics.changes 2018-04-19 15:26:44.077802324 +0200 +++ /work/SRC/openSUSE:Factory/.python-Mathics.new.3160/python-Mathics.changes 2020-03-18 12:45:08.248945004 +0100 @@ -1,0 +2,5 @@ +Sun Mar 15 07:58:36 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Mathics.spec ++++++ --- /var/tmp/diff_new_pack.Tn7pQU/_old 2020-03-18 12:45:10.968946724 +0100 +++ /var/tmp/diff_new_pack.Tn7pQU/_new 2020-03-18 12:45:10.992946740 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-Mathics # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,9 +12,10 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pyname Mathics Name: python-Mathics @@ -22,28 +23,26 @@ Release: 0 Summary: A general-purpose computer algebra system # Mathics itself is licensed as GPL-3.0 but it includes third-party software with MIT, BSD-3-Clause, and Apache-2.0 Licensing; also includes data from wikipedia licensed under CC-BY-SA-3.0 and GFDL-1.3 -License: GPL-3.0 and BSD-3-Clause and MIT and Apache-2.0 -Group: Development/Languages/Python -Url: https://mathics.github.io/ +License: GPL-3.0-only AND BSD-3-Clause AND MIT AND Apache-2.0 +URL: https://mathics.github.io/ Source: https://github.com/mathics/Mathics/archive/v%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module colorama} BuildRequires: %{python_module devel} -BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module mpmath >= 0.19} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module pexpect} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.10} BuildRequires: %{python_module sympy} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-Django >= 1.8 Requires: python-mpmath >= 0.19 Requires: python-python-dateutil Requires: python-six >= 1.10 Requires: python-sympy -BuildRoot: %{_tmppath}/%{name}-%{version}-build - %python_subpackages %description @@ -51,6 +50,7 @@ %prep %setup -q -n %{pyname}-%{version} +%autopatch -p1 # FIX SPURIOUS EXEC PERMISSIONS find ./mathics/web/media/js -name "*.js" -exec chmod -x '{}' \; @@ -73,18 +73,17 @@ %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -#FIXME: Errors with check -#%%check +%check +# Tests fail with new sympy, probably worth fixing upstream #%%python_exec setup.py test -%python_expand %fdupes %{buildroot}%{$python_sitelib}/ - -%files %python_files -%defattr(-,root,root) -%doc README.rst COPYING.txt AUTHORS.txt +%files %{python_files} +%license COPYING.txt +%doc README.rst AUTHORS.txt %{python_sitelib}/mathics/ -%{python_sitelib}/%{pyname}-%{version}-py%{py_ver}.egg-info/ +%{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/ %python3_only %{_bindir}/mathicsscript %python3_only %{_bindir}/mathicsserver %python3_only %{_bindir}/mathics
