14
0
Files
python-liblarch/python-liblarch.spec
Dirk Mueller 4b0b2eded8 - update to 3.2.0:
* Provide a fix for collapsing/expanding future (not-yet-
    created) nodes
      This prevents a TypeError under various circumstances,
      which made GTG's TreeView display inconsistent
      search/filtering results.
  * Clarify, in the README file, that liblarch is LGPL v3 "or
    later"
  * Fix Pytest deprecation warnings
  * Provide an optimized way to refresh filtered items
    This provides better performance for GTG in particular
  * Replace calls to the pep8 executable by pycodestyle
  * Disable building with Python 2
  * Fix drag & drop from one GTK TreeView widget to another
  * Handle cases where the tree should and shouldn't be re-
    filtered
  * Improved PyGI (GObject introspection) compatibility
  * Improved code quality and PEP 8 compliance
- drop libarch-py2compat.patch (obsolete as upstream is >= 3.5)
- reenable tests
- Remove nose dep as tests are not executed
- Initial package, version 0.1.0.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-liblarch?expand=0&rev=16
2024-01-22 23:38:06 +00:00

86 lines
2.6 KiB
RPMSpec

#
# spec file for package python-liblarch
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# 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 https://bugs.opensuse.org/
#
%define _name liblarch
%define _name_gtk liblarch_gtk
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-liblarch
Version: 3.2.0
Release: 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: https://github.com/getting-things-gnome/%{_name}/archive/v%{version}.tar.gz
BuildRequires: %{python_module gobject}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: xvfb-run
BuildRequires: typelib(Gtk) >= 3.0
Requires: python-gobject
BuildArch: noarch
%python_subpackages
%description
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 gtk
Summary: GTK bindings for liblarch
Group: Development/Languages/Python
Requires: %{name} = %{version}
Requires: python-gobject
Requires: typelib(Gtk) >= 3.0
%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}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# TESTS fail with segf, local execution works
%check
%python_expand xvfb-run pytest-%{$python_bin_suffix} tests
%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