Hello community, here is the log from the commit of package python-sympy for openSUSE:Factory checked in at 2015-10-08 08:24:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sympy (Old) and /work/SRC/openSUSE:Factory/.python-sympy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-sympy" Changes: -------- --- /work/SRC/openSUSE:Factory/python-sympy/python-sympy.changes 2014-11-18 22:45:43.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-sympy.new/python-sympy.changes 2015-10-08 08:24:03.000000000 +0200 @@ -1,0 +2,11 @@ +Tue May 19 20:46:59 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.7.6: + * see the release notes for complete details: + https://github.com/sympy/sympy/wiki/Release-Notes-for-0.7.6 +- remove unwanted shebang from more python library files +- add AUTHORS, LICENSE and README.rst to the package documentation +- add update-alternatives as post and postun requires +- fix update-alternatives + +------------------------------------------------------------------- Old: ---- sympy-0.7.5.tar.gz New: ---- sympy-0.7.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sympy.spec ++++++ --- /var/tmp/diff_new_pack.5K5iL0/_old 2015-10-08 08:24:04.000000000 +0200 +++ /var/tmp/diff_new_pack.5K5iL0/_new 2015-10-08 08:24:04.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-sympy # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,7 +17,7 @@ Name: python-sympy -Version: 0.7.5 +Version: 0.7.6 Release: 0 Summary: Python library for symbolic mathematics License: BSD-3-Clause @@ -25,6 +25,8 @@ 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 +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())")} @@ -42,17 +44,29 @@ %prep %setup -q -n sympy-%{version} # For rpmlint warning: remove shebang from python library: -sed -i '/^#!/d' ./sympy/mpmath/tests/runtests.py + 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 %build python setup.py 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} -ln -s %{_bindir}/isympy-%{py_ver} %{buildroot}%{_bindir}/isympy +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 -ln -s %{_mandir}/man1/isympy-%{py_ver}.1 %{buildroot}%{_mandir}/man1/isympy.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 @@ -66,17 +80,20 @@ --install %{_bindir}/isympy isympy %{_bindir}/isympy-%{py_ver} 20 \ --slave %{_mandir}/man1/isympy.1.gz isympy.1 %{_mandir}/man1/isympy-%{py_ver}.1.gz -%preun +%postun if [ $1 -eq 0 ] ; then update-alternatives --remove isympy %{_bindir}/isympy-%{py_ver} fi %files %defattr(-,root,root,-) -%ghost %{_bindir}/isympy +%doc AUTHORS LICENSE README.rst +%{_bindir}/isympy %{_bindir}/isympy-%{py_ver} -%ghost %{_mandir}/man1/isympy.1.gz +%{_mandir}/man1/isympy.1.gz %{_mandir}/man1/isympy-%{py_ver}.1.gz +%ghost %{_sysconfdir}/alternatives/isympy +%ghost %{_sysconfdir}/alternatives/isympy.1.gz %{python_sitelib}/sympy %{python_sitelib}/sympy-%{version}-py%{py_ver}.egg-info ++++++ sympy-0.7.5.tar.gz -> sympy-0.7.6.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-sympy/sympy-0.7.5.tar.gz /work/SRC/openSUSE:Factory/.python-sympy.new/sympy-0.7.6.tar.gz differ: char 5, line 1