Hello community,

here is the log from the commit of package python-liblarch for 
openSUSE:Leap:15.2 checked in at 2020-03-09 18:07:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-liblarch (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-liblarch.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-liblarch"

Mon Mar  9 18:07:41 2020 rev:11 rq:776741 version:3.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-liblarch/python-liblarch.changes        
2020-01-15 15:49:53.727475888 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-liblarch.new.26092/python-liblarch.changes 
    2020-03-09 18:07:45.148888612 +0100
@@ -1,0 +2,23 @@
+Tue Aug  7 09:16:21 UTC 2018 - [email protected]
+
+- Reflect deps properly on what is needed
+- Add patch to work properly under py2:
+  * libarch-py2compat.patch
+
+-------------------------------------------------------------------
+Sat Jul 28 17:28:02 UTC 2018 - [email protected]
+
+- Trim bias from descriptions.
+
+-------------------------------------------------------------------
+Mon Jun 25 15:41:22 UTC 2018 - [email protected]
+
+- Clean up SPEC file
+- Upgrade to 3.0 ... just minor upgrades, py3k port
+
+-------------------------------------------------------------------
+Thu Aug 24 13:44:26 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -6 +29 @@
-  + Added a new object : viewcount
+  + Added a new object : viewcount
@@ -26,0 +50 @@
+

Old:
----
  liblarch-2.1.0.tar.gz

New:
----
  libarch-py2compat.patch
  v3.0.tar.gz

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

Other differences:
------------------
++++++ python-liblarch.spec ++++++
--- /var/tmp/diff_new_pack.oZCFxa/_old  2020-03-09 18:07:47.212889637 +0100
+++ /var/tmp/diff_new_pack.oZCFxa/_new  2020-03-09 18:07:47.216889639 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-liblarch
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands.
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,61 +17,71 @@
 #
 
 
-Name:           python-liblarch
 %define         _name liblarch
-Version:        2.1.0
+%define         _name_gtk liblarch_gtk
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+Name:           python-liblarch
+Version:        3.0
 Release:        0
-Summary:        A python library to easily handle data structure
-License:        LGPL-3.0+
+Summary:        A Python library to handle data structure
+License:        LGPL-3.0-or-later
 Group:          Development/Languages/Python
-Url:            https://live.gnome.org/liblarch
-Source:         
http://gtg.fritalk.com/publique/gtg.fritalk.com/liblarch/2.1.0/%{_name}-%{version}.tar.gz
-BuildRequires:  python
-Requires:       python-gobject2
-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
+URL:            https://live.gnome.org/liblarch
+Source:         
https://github.com/getting-things-gnome/%{_name}/archive/v%{version}.tar.gz
+Patch0:         libarch-py2compat.patch
+BuildRequires:  %{python_module gobject}
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  xvfb-run
+BuildRequires:  typelib(Gtk) >= 3.0
+Requires:       python-gobject
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
-Liblarch is a python library built to easily handle data structure such are 
lists, trees and acyclic graphs
-(tree where nodes can have multiple parents)
+Liblarch is a Python library built to handle data structure such
+are lists, trees and acyclic graphs (tree where nodes can have multiple
+parents)
 
-%package -n python-liblarch_gtk
-%define         _name_gtk liblarch_gtk
+%package gtk
 Summary:        GTK bindings for liblarch
 Group:          Development/Languages/Python
 Requires:       %{name} = %{version}
-Requires:       python-gobject2
-Requires:       python-gtk
+Requires:       python-gobject
+Requires:       typelib(Gtk) >= 3.0
 
-%description -n python-liblarch_gtk
-Liblarch is a python library built to easily handle data structure such are 
lists, trees and acyclic graphs
-(tree where nodes can have multiple parents)
+%description gtk
+Liblarch is a Python library built to handle data structure such
+are lists, trees and acyclic graphs (tree where nodes can have multiple
+parents)
 
 This package provides GTK bindings for liblarch.
 
 %prep
 %setup -q -n %{_name}-%{version}
+%patch0 -p1
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --root %{buildroot} --prefix %{_prefix}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+# TESTS fail with segf, local execution works
+#%check
+#%%python_expand xvfb-run nosetests-%{$python_bin_suffix} tests
+
+%files %{python_files}
+%license LICENSE
+%doc README.md AUTHORS
+%{python_sitelib}/%{_name}
+%{python_sitelib}/%{_name}*.egg-info
 
-%files
-%defattr(-,root,root)
-%doc README LICENSE
-%{python_sitelib}/%{_name}-%{version}-*.egg-info
-%{python_sitelib}/%{_name}/
-
-%files -n python-liblarch_gtk
-%defattr(-,root,root)
-%doc README LICENSE
+%files %{python_files gtk}
+%license LICENSE
 %{python_sitelib}/%{_name_gtk}/
 
 %changelog

++++++ libarch-py2compat.patch ++++++
Index: liblarch-3.0/liblarch/tree.py
===================================================================
--- liblarch-3.0.orig/liblarch/tree.py
+++ liblarch-3.0/liblarch/tree.py
@@ -17,6 +17,8 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 # -----------------------------------------------------------------------------
 
+from __future__ import print_function
+
 from . import processqueue
 from liblarch.treenode import _Node
 

Reply via email to