Hello community,

here is the log from the commit of package python-ipython for openSUSE:Factory 
checked in at 2020-12-13 17:29:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ipython (Old)
 and      /work/SRC/openSUSE:Factory/.python-ipython.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ipython"

Sun Dec 13 17:29:20 2020 rev:17 rq:854661 version:7.19.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ipython/python-ipython.changes    
2020-12-04 21:27:26.522034777 +0100
+++ /work/SRC/openSUSE:Factory/.python-ipython.new.2328/python-ipython.changes  
2020-12-13 17:29:21.184326018 +0100
@@ -1,0 +2,9 @@
+Thu Dec 10 20:14:51 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Update requirement to python >= 3.7, which is officially the case
+  since ipython > 7.15
+- remove python3_only macro override not compatible with rpm 4.16
+  * provide ipython3 its manpage and iptest3 through alternatives
+    for possible multiple python3 flavors
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ipython.spec ++++++
--- /var/tmp/diff_new_pack.bG9Q0z/_old  2020-12-13 17:29:22.376327227 +0100
+++ /var/tmp/diff_new_pack.bG9Q0z/_new  2020-12-13 17:29:22.380327231 +0100
@@ -27,15 +27,8 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
-
-# -- Definitions for python3 multiflavor gh#openSUSE/python-rpm-macros#66 --
-# Python 3.6 was supported with IPython up to 7.16
+# Python 3.6 was officiallay supported with IPython up to 7.15
 %define         skip_python36 1
-# We redefine this locally, because we are sure that it is only used for files,
-# which only the primary python3 flavor should provide
-%define python3_only() %%if "%%{python_flavor}" == "python3" || 
"%%{python_provides}" == "python3" \
-%** \
-%%endif
 
 %bcond_without  iptest
 Name:           python-ipython%{psuffix}
@@ -48,13 +41,13 @@
 Source:         
https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/jupyter/qtconsole/4.0.0/qtconsole/resources/icon/JupyterConsole.svg
 BuildRequires:  %{python_module backcall}
-BuildRequires:  %{python_module base >= 3.5}
+BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module setuptools >= 18.5}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-Pygments
 Requires:       python-backcall
-Requires:       python-base >= 3.5
+Requires:       python-base >= 3.7
 Requires:       python-decorator
 Requires:       python-jedi >= 0.10
 Requires:       python-pexpect >= 4.6
@@ -165,18 +158,21 @@
 %install
 %if !%{with test}
 %python_install
+
 %python_clone -a %{buildroot}%{_bindir}/ipython
-%python_clone -a %{buildroot}%{_mandir}/man1/ipython.1
+%python_clone -a %{buildroot}%{_bindir}/ipython3
 
 %if %{with iptest}
 %python_clone -a %{buildroot}%{_bindir}/iptest
+%python_clone -a %{buildroot}%{_bindir}/iptest3
 %else
 rm %{buildroot}%{_bindir}/iptest*
 %endif
 
-%if %{have_python3} && ! 0%{?skip_python3}
-ln -s %{_mandir}/man1/ipython-%{python3_bin_suffix}.1.gz 
%{buildroot}%{_mandir}/man1/ipython3.1.gz
-%endif
+# must clone after copy
+cp %{buildroot}%{_mandir}/man1/ipython{,3}.1
+%python_clone -a %{buildroot}%{_mandir}/man1/ipython.1
+%python_clone -a %{buildroot}%{_mandir}/man1/ipython3.1
 
 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
 %python_expand cp %{SOURCE1} 
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/IPython-%{$python_bin_suffix}.svg
@@ -207,14 +203,9 @@
 
 %fdupes %{buildroot}%{$python_sitelib}
 }
+%fdupes %{buildroot}%{_bindir}
+%fdupes %{buildroot}%{_mandir}
 
-rm %{buildroot}%{_bindir}/ipython3
-ln -s %{_bindir}/ipython-%{python3_bin_suffix} %{buildroot}%{_bindir}/ipython3
-
-%if %{with iptest}
-rm %{buildroot}%{_bindir}/iptest3
-ln -s %{_bindir}/iptest-%{python3_bin_suffix} %{buildroot}%{_bindir}/iptest3
-%endif
 %endif
 
 %if %{with test}
@@ -228,12 +219,12 @@
 
 %if !%{with test}
 %post
-%{python_install_alternative ipython ipython.1.gz}
+%python_install_alternative ipython ipython3 ipython.1.gz ipython3.1.gz
 %desktop_database_post
 %icon_theme_cache_post
 
 %post iptest
-%python_install_alternative iptest
+%python_install_alternative iptest iptest3
 
 %postun
 %python_uninstall_alternative ipython
@@ -249,9 +240,9 @@
 %license COPYING.rst
 %doc README.rst docs/source/about/license_and_copyright.rst
 %python_alternative %{_bindir}/ipython
+%python_alternative %{_bindir}/ipython3
 %python_alternative %{_mandir}/man1/ipython.1.gz
-%python3_only %{_bindir}/ipython3
-%python3_only %{_mandir}/man1/ipython3.1.gz
+%python_alternative %{_mandir}/man1/ipython3.1.gz
 %{python_sitelib}/IPython/
 %{python_sitelib}/ipython-%{version}-py*.egg-info
 %{_datadir}/applications/ipython-%{python_bin_suffix}.desktop
@@ -264,7 +255,7 @@
 %if %{with iptest}
 %files %{python_files iptest}
 %python_alternative %{_bindir}/iptest
-%python3_only %{_bindir}/iptest3
+%python_alternative %{_bindir}/iptest3
 
 %endif
 %endif
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to