Hello community,

here is the log from the commit of package IPython for openSUSE:Factory checked 
in at 2015-09-30 05:51:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/IPython (Old)
 and      /work/SRC/openSUSE:Factory/.IPython.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "IPython"

Changes:
--------
--- /work/SRC/openSUSE:Factory/IPython/IPython.changes  2015-08-01 
11:38:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.IPython.new/IPython.changes     2015-09-30 
05:51:29.000000000 +0200
@@ -1,0 +2,16 @@
+Wed Sep 23 11:32:05 UTC 2015 - toddrme2...@gmail.com
+
+- Update to 3.2.2
+  * This is a critical security update.  
+    Addresses vulnerabilities when files have maliciously crafted filenames 
(CVE-2015-6938),
+    or vulnerability when opening text files with malicious binary content 
(CVE pending).
+
+-------------------------------------------------------------------
+Mon Aug 31 09:40:19 UTC 2015 - toddrme2...@gmail.com
+
+- Implement update-alternatives
+  This avoids a conflict with the python3 version of the new 
+  jupyter packages.  The python3 version of jupyter should not
+  conflict with the python2 versions of IPython.
+
+-------------------------------------------------------------------

Old:
----
  ipython-3.2.1.tar.gz

New:
----
  ipython-3.2.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ IPython.spec ++++++
--- /var/tmp/diff_new_pack.bpphNL/_old  2015-09-30 05:51:30.000000000 +0200
+++ /var/tmp/diff_new_pack.bpphNL/_new  2015-09-30 05:51:30.000000000 +0200
@@ -18,7 +18,7 @@
 
 Name:           IPython
 BuildRequires:  python-devel
-Version:        3.2.1
+Version:        3.2.2
 Release:        0
 Source0:        
https://pypi.python.org/packages/source/i/ipython/ipython-%{version}.tar.gz
 Source1:        ipython-icons.tar.xz
@@ -71,6 +71,8 @@
 BuildRequires:  graphviz-gnome
 BuildRequires:  python-Sphinx >= 0.3
 BuildRequires:  python-numpydoc
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 
 %description
 IPython provides a replacement for the interactive python (Python)
@@ -114,6 +116,13 @@
 # Get rid of library shebangs
 find . -type f -name "*.py" -exec sed -i '/#!\/usr\/bin\/env/d' {} \;
 
+# Get the .desktop files ready
+mv examples/IPython\ Kernel/*.desktop ./
+sed -i 's/gnome-netstatus-idle/ipython/g' *.desktop
+sed -i 's/Exec=ipython/Exec=ipython-%{py_ver}/g' *.desktop
+mv ipython.desktop ipython-%{py_ver}.desktop
+mv ipython-qtconsole.desktop ipython-qtconsole-%{py_ver}.desktop
+
 %build
 export CFLAGS="%{optflags}"
 python setup.py build
@@ -151,14 +160,47 @@
 %fdupes %{buildroot}%{_docdir}/%{name}/
 
 # install .desktop files
-mv examples/IPython\ Kernel/*.desktop ./
-sed -i 's/gnome-netstatus-idle/ipython/g' *.desktop
-%suse_update_desktop_file -r -i ipython System TerminalEmulator
-%suse_update_desktop_file -r -i ipython-qtconsole System TerminalEmulator
+%suse_update_desktop_file -r -i ipython-%{py_ver} System TerminalEmulator
+%suse_update_desktop_file -r -i ipython-qtconsole-%{py_ver} System 
TerminalEmulator
 
 # install icons
 tar xf %{S:1} -C %{buildroot}%{_datadir}
 
+# Prepare for update-alternatives usage
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+for p in ipython iptest ipengine ipcontroller ipcluster ; do
+    mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
+    ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
+    # create a dummy target for /etc/alternatives/$p
+    touch %{buildroot}%{_sysconfdir}/alternatives/$p
+done
+
+# Prepare for update-alternatives usage
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+for p in ipython ipengine ipcontroller ipcluster ; do
+    mv %{buildroot}%{_mandir}/man1/$p.1 
%{buildroot}%{_mandir}/man1/$p-%{py_ver}.1
+    ln -s -f %{_sysconfdir}/alternatives/$p.1.gz 
%{buildroot}%{_mandir}/man1/$p.1.gz
+    # create a dummy target for /etc/alternatives/$p
+    touch %{buildroot}%{_sysconfdir}/alternatives/$p.1.gz
+done
+
+%post
+%_sbindir/update-alternatives \
+   --install %{_bindir}/ipython ipython %{_bindir}/ipython-%{py_ver} 30 \
+   --slave %{_bindir}/iptest iptest %{_bindir}/iptest-%{py_ver} \
+   --slave %{_bindir}/ipengine ipengine %{_bindir}/ipengine-%{py_ver} \
+   --slave %{_bindir}/ipcontroller ipcontroller 
%{_bindir}/ipcontroller-%{py_ver} \
+   --slave %{_bindir}/ipcluster ipcluster %{_bindir}/ipcluster-%{py_ver} \
+   --slave %{_mandir}/man1/ipython.1.gz ipython.1.gz 
%{_mandir}/man1/ipython-%{py_ver}.1.gz \
+   --slave %{_mandir}/man1/ipengine.1.gz ipengine.1.gz 
%{_mandir}/man1/ipengine-%{py_ver}.1.gz \
+   --slave %{_mandir}/man1/ipcontroller.1.gz ipcontroller.1.gz 
%{_mandir}/man1/ipcontroller-%{py_ver}.1.gz \
+   --slave %{_mandir}/man1/ipcluster.1.gz ipcluster.1.gz 
%{_mandir}/man1/ipcluster-%{py_ver}.1.gz
+
+%postun
+if [ $1 -eq 0 ] ; then
+    %_sbindir/update-alternatives --remove ipython %{_bindir}/ipython-%{py_ver}
+fi
+
 %files
 %defattr(-,root,root)
 %doc COPYING.rst README.rst
@@ -167,12 +209,30 @@
 %{_bindir}/ipengine
 %{_bindir}/iptest
 %{_bindir}/ipython
+%{_bindir}/ipcluster-%{py_ver}
+%{_bindir}/ipcontroller-%{py_ver}
+%{_bindir}/ipengine-%{py_ver}
+%{_bindir}/iptest-%{py_ver}
+%{_bindir}/ipython-%{py_ver}
 %{_mandir}/man1/ipcluster.1.gz
 %{_mandir}/man1/ipcontroller.1.gz
 %{_mandir}/man1/ipengine.1.gz
 %{_mandir}/man1/ipython.1.gz
-%{_datadir}/applications/ipython-qtconsole.desktop
-%{_datadir}/applications/ipython.desktop
+%{_mandir}/man1/ipcluster-%{py_ver}.1.gz
+%{_mandir}/man1/ipcontroller-%{py_ver}.1.gz
+%{_mandir}/man1/ipengine-%{py_ver}.1.gz
+%{_mandir}/man1/ipython-%{py_ver}.1.gz
+%ghost %{_sysconfdir}/alternatives/ipcluster
+%ghost %{_sysconfdir}/alternatives/ipcontroller
+%ghost %{_sysconfdir}/alternatives/ipengine
+%ghost %{_sysconfdir}/alternatives/iptest
+%ghost %{_sysconfdir}/alternatives/ipython
+%ghost %{_sysconfdir}/alternatives/ipcluster.1.gz
+%ghost %{_sysconfdir}/alternatives/ipcontroller.1.gz
+%ghost %{_sysconfdir}/alternatives/ipengine.1.gz
+%ghost %{_sysconfdir}/alternatives/ipython.1.gz
+%{_datadir}/applications/ipython-qtconsole-%{py_ver}.desktop
+%{_datadir}/applications/ipython-%{py_ver}.desktop
 %{_datadir}/icons/hicolor/
 %{python_sitelib}/%{name}
 %{python_sitelib}/ipython-%{version}-py*.egg-info

++++++ ipython-3.2.1.tar.gz -> ipython-3.2.2.tar.gz ++++++
/work/SRC/openSUSE:Factory/IPython/ipython-3.2.1.tar.gz 
/work/SRC/openSUSE:Factory/.IPython.new/ipython-3.2.2.tar.gz differ: char 5, 
line 1


Reply via email to