forked from pool/python-liblarch
Accepting request 627833 from devel:languages:python
- Reflect deps properly on what is needed - Add patch to work properly under py2: * libarch-py2compat.patch - Trim bias from descriptions. - Clean up SPEC file - Upgrade to 3.0 ... just minor upgrades, py3k port - singlespec auto-conversion + Added a new object : viewcount OBS-URL: https://build.opensuse.org/request/show/627833 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-liblarch?expand=0&rev=8
This commit is contained in:
13
libarch-py2compat.patch
Normal file
13
libarch-py2compat.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f55b8ce2c6350b614f46acf826c323b03bd64890288dd25b31cda3ccdb59d49b
|
|
||||||
size 26829
|
|
||||||
@@ -1,9 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 7 09:16:21 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- 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 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Trim bias from descriptions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 25 15:41:22 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Clean up SPEC file
|
||||||
|
- Upgrade to 3.0 ... just minor upgrades, py3k port
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 24 13:44:26 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- singlespec auto-conversion
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jan 26 13:52:53 UTC 2013 - zaitor@opensuse.org
|
Sat Jan 26 13:52:53 UTC 2013 - zaitor@opensuse.org
|
||||||
|
|
||||||
- Update to version 2.1.0:
|
- Update to version 2.1.0:
|
||||||
+ Removed completely the "transparency" property.
|
+ Removed completely the "transparency" property.
|
||||||
+ Added a new object : viewcount
|
+ Added a new object : viewcount
|
||||||
+ The version number of liblarch will now be the API number + a
|
+ The version number of liblarch will now be the API number + a
|
||||||
number.
|
number.
|
||||||
- Added liblarch_gtk as a subpackage, it is no longer released as a
|
- Added liblarch_gtk as a subpackage, it is no longer released as a
|
||||||
@@ -25,3 +48,4 @@ Wed Feb 15 19:34:52 UTC 2012 - dimstar@opensuse.org
|
|||||||
|
|
||||||
- Initial package, version 0.1.0.
|
- Initial package, version 0.1.0.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-liblarch
|
# 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.
|
# Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,61 +17,71 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: python-liblarch
|
|
||||||
%define _name 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
|
Release: 0
|
||||||
Summary: A python library to easily handle data structure
|
Summary: A Python library to handle data structure
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0-or-later
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://live.gnome.org/liblarch
|
URL: https://live.gnome.org/liblarch
|
||||||
Source: http://gtg.fritalk.com/publique/gtg.fritalk.com/liblarch/2.1.0/%{_name}-%{version}.tar.gz
|
Source: https://github.com/getting-things-gnome/%{_name}/archive/v%{version}.tar.gz
|
||||||
BuildRequires: python
|
Patch0: libarch-py2compat.patch
|
||||||
Requires: python-gobject2
|
BuildRequires: %{python_module gobject}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module nose}
|
||||||
%if 0%{?suse_version} <= 1110
|
BuildRequires: %{python_module setuptools}
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
BuildRequires: fdupes
|
||||||
%{py_requires}
|
BuildRequires: python-rpm-macros
|
||||||
%else
|
BuildRequires: xvfb-run
|
||||||
|
BuildRequires: typelib(Gtk) >= 3.0
|
||||||
|
Requires: python-gobject
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Liblarch is a python library built to easily handle data structure such are lists, trees and acyclic graphs
|
Liblarch is a Python library built to handle data structure such
|
||||||
(tree where nodes can have multiple parents)
|
are lists, trees and acyclic graphs (tree where nodes can have multiple
|
||||||
|
parents)
|
||||||
|
|
||||||
%package -n python-liblarch_gtk
|
%package gtk
|
||||||
%define _name_gtk liblarch_gtk
|
|
||||||
Summary: GTK bindings for liblarch
|
Summary: GTK bindings for liblarch
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: python-gobject2
|
Requires: python-gobject
|
||||||
Requires: python-gtk
|
Requires: typelib(Gtk) >= 3.0
|
||||||
|
|
||||||
%description -n python-liblarch_gtk
|
%description gtk
|
||||||
Liblarch is a python library built to easily handle data structure such are lists, trees and acyclic graphs
|
Liblarch is a Python library built to handle data structure such
|
||||||
(tree where nodes can have multiple parents)
|
are lists, trees and acyclic graphs (tree where nodes can have multiple
|
||||||
|
parents)
|
||||||
|
|
||||||
This package provides GTK bindings for liblarch.
|
This package provides GTK bindings for liblarch.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --root %{buildroot} --prefix %{_prefix}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
# TESTS fail with segf, local execution works
|
||||||
%defattr(-,root,root)
|
#%check
|
||||||
%doc README LICENSE
|
#%%python_expand xvfb-run nosetests-%{$python_bin_suffix} tests
|
||||||
%{python_sitelib}/%{_name}-%{version}-*.egg-info
|
|
||||||
%{python_sitelib}/%{_name}/
|
|
||||||
|
|
||||||
%files -n python-liblarch_gtk
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc README LICENSE
|
%doc README.md AUTHORS
|
||||||
|
%{python_sitelib}/%{_name}
|
||||||
|
%{python_sitelib}/%{_name}*.egg-info
|
||||||
|
|
||||||
|
%files %{python_files gtk}
|
||||||
|
%license LICENSE
|
||||||
%{python_sitelib}/%{_name_gtk}/
|
%{python_sitelib}/%{_name_gtk}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
3
v3.0.tar.gz
Normal file
3
v3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3d8b337d7a71ea84387e90196b465f617649b59a1c8f0b0c49e6655987ac730c
|
||||||
|
size 55785
|
||||||
Reference in New Issue
Block a user