Hello community, here is the log from the commit of package python-sympy for openSUSE:Factory checked in at 2013-09-26 19:59:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2013-03-11 12:06:23.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-sympy.new/python-sympy.changes 2013-09-26 19:59:12.000000000 +0200 @@ -1,0 +2,7 @@ +Thu Sep 26 06:56:12 UTC 2013 - speili...@suse.com + +- Update to version 0.7.3: + + See https://github.com/sympy/sympy/wiki/Release-Notes-for-0.7.3 +- Use update-alternatives for binaries / man-pages + +------------------------------------------------------------------- Old: ---- sympy-0.7.2-py3.3.tar.gz sympy-0.7.2.tar.gz New: ---- sympy-0.7.3-py2.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sympy.spec ++++++ --- /var/tmp/diff_new_pack.QFZxwJ/_old 2013-09-26 19:59:13.000000000 +0200 +++ /var/tmp/diff_new_pack.QFZxwJ/_new 2013-09-26 19:59:13.000000000 +0200 @@ -16,21 +16,18 @@ # -%define modname sympy -Name: python-%{modname} -Version: 0.7.2 +Name: python-sympy +Version: 0.7.3 Release: 0 Summary: Python library for symbolic mathematics License: BSD-3-Clause Group: Development/Libraries/Python -Url: http://code.google.com/p/%{modname}/ -Source0: http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz +Url: http://code.google.com/p/sympy/ +Source0: https://pypi.python.org/packages/source/s/sympy/sympy-%{version}-py2.5.tar.gz BuildRequires: python-devel >= 2.5 -Requires: python-base >= 2.5 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())")} -%{py_requires} %else BuildArch: noarch %endif @@ -43,23 +40,47 @@ any external libraries. %prep -%setup -q -n %{modname}-%{version} +%setup -q -n sympy-%{version} # For rpmlint warning: remove shebang from python library: -sed -i '/^#!/d' ./%{modname}/galgebra/GA.py -sed -i '/^#!/d' ./%{modname}/galgebra/tests/test_GA.py -sed -i '/^#!/d' ./%{modname}/mpmath/tests/runtests.py +sed -i '/^#!/d' ./sympy/galgebra/GA.py +sed -i '/^#!/d' ./sympy/galgebra/tests/test_GA.py +sed -i '/^#!/d' ./sympy/mpmath/tests/runtests.py %build python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} +mv %{buildroot}%{_bindir}/isympy %{buildroot}%{_bindir}/isympy-%{py_ver} +ln -s %{_bindir}/isympy-%{py_ver} %{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 + +%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: +[[ ! -L %{_bindir}/isympy ]] && rm -f %{_bindir}/isympy +[[ ! -L %{_mandir}/man1/isympy.1.gz ]] && rm -f %{_mandir}/man1/isympy.1.gz +exit 0 + +%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 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove isympy %{_bindir}/isympy-%{py_ver} +fi %files %defattr(-,root,root,-) -%{_bindir}/isympy -%{_mandir}/man1/isympy.1.gz -%{python_sitelib}/%{modname} -%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info +%ghost %{_bindir}/isympy +%{_bindir}/isympy-%{py_ver} +%ghost %{_mandir}/man1/isympy.1.gz +%{_mandir}/man1/isympy-%{py_ver}.1.gz +%{python_sitelib}/sympy +%{python_sitelib}/sympy-%{version}-py%{py_ver}.egg-info %changelog ++++++ sympy-0.7.2-py3.3.tar.gz -> sympy-0.7.3-py2.5.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-sympy/sympy-0.7.2-py3.3.tar.gz /work/SRC/openSUSE:Factory/.python-sympy.new/sympy-0.7.3-py2.5.tar.gz differ: char 4, line 1 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org