commit python-sympy for openSUSE:Factory
Hello community, here is the log from the commit of package python-sympy for openSUSE:Factory checked in at 2017-08-28 15:10:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sympy (Old) and /work/SRC/openSUSE:Factory/.python-sympy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-sympy" Mon Aug 28 15:10:51 2017 rev:15 rq:517189 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sympy/python-sympy.changes 2015-10-08 08:24:03.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-sympy.new/python-sympy.changes 2017-08-28 15:11:26.912943063 +0200 @@ -1,0 +2,15 @@ +Sun Aug 13 15:27:25 UTC 2017 - toddrme2178@gmail.com + + +- Implement single-spec version +- update to version 1.1.1: + * see the release notes for complete details: + https://github.com/sympy/sympy/wiki/Release-Notes-for-1.1.1 +- update to version 1.1: + * see the release notes for complete details: + https://github.com/sympy/sympy/wiki/Release-Notes-for-1.1 +- update to version 1.0: + * see the release notes for complete details: + https://github.com/sympy/sympy/wiki/Release-Notes-for-1.0 + +------------------------------------------------------------------- Old: ---- sympy-0.7.6.tar.gz New: ---- python-sympy-rpmlintrc sympy-1.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sympy.spec ++++++ --- /var/tmp/diff_new_pack.A1MYmk/_old 2017-08-28 15:11:29.196621802 +0200 +++ /var/tmp/diff_new_pack.A1MYmk/_new 2017-08-28 15:11:29.208620114 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-sympy # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,32 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-sympy -Version: 0.7.6 +Version: 1.1.1 Release: 0 -Summary: Python library for symbolic mathematics +Summary: Computer algebra system (CAS) in Python License: BSD-3-Clause Group: Development/Libraries/Python -Url: http://code.google.com/p/sympy/ -Source0: https://pypi.python.org/packages/source/s/sympy/sympy-%{version}.tar.gz -BuildRequires: python-devel >= 2.5 +Url: http://www.sympy.org/ +Source0: https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz +Source99: python-sympy-rpmlintrc +BuildRequires: %{python_module devel} +BuildRequires: %{python_module mpmath} +BuildRequires: %{python_module qt4-devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-mpmath +Recommends: python-jupyter_ipython +Recommends: python-numpy +Recommends: python-symengine Requires(post): update-alternatives Requires(postun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%else BuildArch: noarch -%endif + +%python_subpackages %description SymPy is a Python library for symbolic mathematics. It aims to become @@ -43,58 +52,56 @@ %prep %setup -q -n sympy-%{version} -# For rpmlint warning: remove shebang from python library: - sed -i '1 { /^#!/ d }' \ - sympy/utilities/tests/diagnose_imports.py \ - sympy/mpmath/matrices/eigen.py \ - sympy/mpmath/tests/runtests.py \ - sympy/mpmath/matrices/eigen_symmetric.py \ - sympy/mpmath/tests/test_levin.py \ - sympy/mpmath/tests/test_eigen_symmetric.py \ - sympy/mpmath/tests/test_eigen.py \ - sympy/benchmarks/bench_symbench.py + +%{python_expand cp -r examples examples-%{$python_bin_suffix} +find examples-%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" {} \; +find examples-%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#! /usr/bin/env python$|#!%{__$python}|" {} \; +} %build -python setup.py build +%python_build %install -python setup.py install --root=%{buildroot} --prefix=%{_prefix} -# for update-alternatives -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/isympy %{buildroot}%{_bindir}/isympy-%{py_ver} -touch %{buildroot}%{_sysconfdir}/alternatives/isympy -ln -s %{_sysconfdir}/alternatives/isympy %{buildroot}%{_bindir}/isympy -mv %{buildroot}%{_mandir}/man1/isympy.1 %{buildroot}%{_mandir}/man1/isympy-%{py_ver}.1 -touch %{buildroot}%{_sysconfdir}/alternatives/isympy.1.gz -ln -s %{_sysconfdir}/alternatives/isympy.1.gz %{buildroot}%{_mandir}/man1/isympy.1.gz - -%pre -# Since /usr/bin/isympy and /usr/share/man/man1/isympy.1.gz became ghosted to be used -# with update-alternatives, we have to get rid of the old binary resulting from the -# non-update-alternativies-ified package: -[ -h %{_bindir}/isympy ] || rm -f %{_bindir}/isympy -[ -h %{_mandir}/man1/isympy.1.gz ] || rm -f %{_mandir}/man1/isympy.1.gz +%python_install + +%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/sympy/utilities/tests/diagnose_imports.py +chmod a+x %{buildroot}%{$python_sitelib}/sympy/physics/mechanics/models.py +chmod a+x %{buildroot}%{$python_sitelib}/sympy/benchmarks/bench_symbench.py +sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/sympy/utilities/tests/diagnose_imports.py +sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/sympy/physics/mechanics/models.py +sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/sympy/benchmarks/bench_symbench.py +# Deduplicating files can generate a RPMLINT warning for pyc mtime +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sympy/utilities/tests/diagnose_imports.py +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sympy/utilities/tests/diagnose_imports.py +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sympy/physics/mechanics/models.py +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sympy/physics/mechanics/models.py +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sympy/benchmarks/bench_symbench.py +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sympy/benchmarks/bench_symbench.py +%fdupes %{buildroot}%{$python_sitelib} +} + +%python_clone -a %{buildroot}%{_bindir}/isympy +%python_clone -a %{buildroot}%{_mandir}/man1/isympy.1 %post -update-alternatives \ - --install %{_bindir}/isympy isympy %{_bindir}/isympy-%{py_ver} 20 \ - --slave %{_mandir}/man1/isympy.1.gz isympy.1 %{_mandir}/man1/isympy-%{py_ver}.1.gz +%python_install_alternative isympy isympy.1%{ext_man} %postun -if [ $1 -eq 0 ] ; then - update-alternatives --remove isympy %{_bindir}/isympy-%{py_ver} -fi +%python_uninstall_alternative isympy + +%if %{with test} +%check +export LANG=en_US.UTF-8 +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS LICENSE README.rst -%{_bindir}/isympy -%{_bindir}/isympy-%{py_ver} -%{_mandir}/man1/isympy.1.gz -%{_mandir}/man1/isympy-%{py_ver}.1.gz -%ghost %{_sysconfdir}/alternatives/isympy -%ghost %{_sysconfdir}/alternatives/isympy.1.gz +%doc examples-%{python_bin_suffix}/ +%python_alternative %{_bindir}/isympy +%python_alternative %{_mandir}/man1/isympy.1%{ext_man} %{python_sitelib}/sympy -%{python_sitelib}/sympy-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/sympy-%{version}-py*.egg-info %changelog ++++++ python-sympy-rpmlintrc ++++++ addFilter("doc-file-dependency .*\.py ")++++++ sympy-0.7.6.tar.gz -> sympy-1.1.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-sympy/sympy-0.7.6.tar.gz /work/SRC/openSUSE:Factory/.python-sympy.new/sympy-1.1.1.tar.gz differ: char 5, line 1
participants (1)
-
root@hilbert.suse.de