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
|
||||
|
||||
- Update to version 2.1.0:
|
||||
+ 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
|
||||
number.
|
||||
- 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.
|
||||
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README LICENSE
|
||||
%{python_sitelib}/%{_name}-%{version}-*.egg-info
|
||||
%{python_sitelib}/%{_name}/
|
||||
# TESTS fail with segf, local execution works
|
||||
#%check
|
||||
#%%python_expand xvfb-run nosetests-%{$python_bin_suffix} tests
|
||||
|
||||
%files -n python-liblarch_gtk
|
||||
%defattr(-,root,root)
|
||||
%doc README LICENSE
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md AUTHORS
|
||||
%{python_sitelib}/%{_name}
|
||||
%{python_sitelib}/%{_name}*.egg-info
|
||||
|
||||
%files %{python_files gtk}
|
||||
%license LICENSE
|
||||
%{python_sitelib}/%{_name_gtk}/
|
||||
|
||||
%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