Hello community,

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

Package is "python-jupyter_qtconsole"

Changes:
--------
New Changes file:

--- /dev/null   2015-09-24 09:51:01.260026505 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_qtconsole.new/python-jupyter_qtconsole.changes
   2015-09-30 05:49:52.000000000 +0200
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Fri Aug 21 11:03:50 UTC 2015 - toddrme2...@gmail.com
+
+- Remove duplicate requirements
+
+-------------------------------------------------------------------
+Thu Aug 13 12:39:48 UTC 2015 - toddrme2...@gmail.com
+
+- Initial version
+

New:
----
  python-jupyter_qtconsole.changes
  python-jupyter_qtconsole.spec
  qtconsole-4.0.1.tar.gz

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

Other differences:
------------------
++++++ python-jupyter_qtconsole.spec ++++++
#
# spec file for package python-jupyter_qtconsole
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#


Name:           python-jupyter_qtconsole
Version:        4.0.1
Release:        0
Summary:        Jupyter Qt console
License:        BSD-3-Clause
Group:          Development/Languages/Python
Url:            http://jupyter.org
Source:         
https://pypi.python.org/packages/source/q/qtconsole/qtconsole-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRequires:  python-Pygments
BuildRequires:  python-devel
BuildRequires:  python-jupyter_client
BuildRequires:  python-jupyter_core
BuildRequires:  python-jupyter_ipykernel
BuildRequires:  python-setuptools
BuildRequires:  python-traitlets
# Test requirements
BuildRequires:  python-nose
BuildRequires:  python-pexpect
BuildRequires:  python-pyside
BuildRequires:  python-qt4
%if 0%{?suse_version} >= 1320
BuildRequires:  python-qt5
%endif
# Python 2 test requirements
BuildRequires:  python-mock
Requires:       hicolor-icon-theme
Requires:       python-Pygments
Requires:       python-jupyter_client
Requires:       python-jupyter_core
Requires:       python-jupyter_ipykernel
Requires:       python-traitlets
%if 0%{?suse_version} >= 1320
Requires:       python-qt5
Recommends:     python-qt4
%else
Requires:       python-qt4
Recommends:     python-qt5
%endif
Recommends:     python-pyside
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 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

%description
A rich Qt-based console for working with Jupyter kernels,
supporting rich media output, session export, and more.

%prep
%setup -q -n qtconsole-%{version}

%build
python setup.py build

%install
export LANG=en_US.UTF-8
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/jupyter-qtconsole 
%{buildroot}%{_bindir}/jupyter-qtconsole-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/jupyter-qtconsole 
%{buildroot}%{_bindir}/jupyter-qtconsole
# create a dummy target for /etc/alternatives/jupyter-qtconsole
touch %{buildroot}%{_sysconfdir}/alternatives/jupyter-qtconsole

# Install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
cp qtconsole/resources/icon/JupyterConsole.svg 
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole-%{py_ver}.svg

# Modify and install .desktop file
mv examples/jupyter-qtconsole.desktop jupyter-qtconsole-%{py_ver}.desktop
desktop-file-edit --set-comment="Jupyter qtconsole for Python %{py_ver}" 
--set-name="Jupyter Qt console for Python %{py_ver}" 
--set-generic-name="Jupyter shell for Python %{py_ver}" --set-key="Exec" 
--set-value="jupyter-qtconsole-%{py_ver}" 
--set-icon="JupyterQtConsole-%{py_ver}" jupyter-qtconsole-%{py_ver}.desktop
%suse_update_desktop_file -i -r jupyter-qtconsole-%{py_ver} 
"System;TerminalEmulator;"

%post
%_sbindir/update-alternatives \
   --install %{_bindir}/jupyter-qtconsole jupyter-qtconsole 
%{_bindir}/jupyter-qtconsole-%{py_ver} 30
%desktop_database_post
%icon_theme_cache_post

%postun
if [ $1 -eq 0 ] ; then
    %_sbindir/update-alternatives --remove jupyter-qtconsole 
%{_bindir}/jupyter-qtconsole-%{py_ver}
fi
%desktop_database_postun
%icon_theme_cache_postun

%check
nosetests

%files
%defattr(-,root,root,-)
%doc COPYING.md README.md
%{_bindir}/jupyter-qtconsole
%{_bindir}/jupyter-qtconsole-%{py_ver}
%ghost %{_sysconfdir}/alternatives/jupyter-qtconsole
%{_datadir}/applications/jupyter-qtconsole-%{py_ver}.desktop
%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole-%{py_ver}.svg
%{python_sitelib}/*

%changelog

Reply via email to