2018-05-03 08:13:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-objgraph
|
|
|
|
#
|
2021-05-31 22:22:21 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-05-03 08:13:12 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:43:45 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-03 08:13:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-06-03 13:24:32 +02:00
|
|
|
%define oldpython python
|
2018-05-03 08:13:12 +02:00
|
|
|
Name: python-objgraph
|
2021-05-31 22:22:21 +02:00
|
|
|
Version: 3.5.0
|
2018-05-03 08:13:12 +02:00
|
|
|
Release: 0
|
2018-06-08 10:10:50 +02:00
|
|
|
Summary: Python module to draw object reference graphs with graphviz
|
2018-05-03 08:13:12 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-06-03 13:24:32 +02:00
|
|
|
URL: http://mg.pov.lt/objgraph/
|
2018-05-03 08:13:12 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/o/objgraph/objgraph-%{version}.tar.gz
|
2018-06-08 10:10:50 +02:00
|
|
|
BuildRequires: %{python_module graphviz}
|
2019-06-03 13:24:32 +02:00
|
|
|
BuildRequires: %{python_module mock}
|
2018-06-08 10:10:50 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2018-05-03 08:13:12 +02:00
|
|
|
BuildRequires: graphviz-gd
|
|
|
|
BuildRequires: graphviz-gnome
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: graphviz-gd
|
|
|
|
Requires: graphviz-gnome
|
|
|
|
Requires: python-graphviz
|
2019-06-03 13:24:32 +02:00
|
|
|
Obsoletes: %{oldpython}-objgraph-doc
|
2018-05-03 08:13:12 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-06-08 10:10:50 +02:00
|
|
|
objgraph is a module for visual exploration of Python object graphs.
|
2018-05-03 08:13:12 +02:00
|
|
|
|
2018-06-08 10:10:50 +02:00
|
|
|
graphviz is needed if pretty graphs are desired.
|
|
|
|
xdot can be used for interactive use.
|
2018-05-03 08:13:12 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n objgraph-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-06-03 13:24:32 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-05-03 08:13:12 +02:00
|
|
|
|
|
|
|
%check
|
2021-05-31 22:22:21 +02:00
|
|
|
%pyunittest discover -v
|
2018-05-03 08:13:12 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-06-03 13:24:32 +02:00
|
|
|
%doc README.rst CHANGES.rst HACKING.rst
|
2018-05-03 18:01:15 +02:00
|
|
|
%license LICENSE
|
2018-05-03 08:13:12 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|