15
0

Accepting request 612026 from devel:languages:python:misc

Python graph (network) package

OBS-URL: https://build.opensuse.org/request/show/612026
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-altgraph?expand=0&rev=1
This commit is contained in:
Todd R
2018-05-24 20:56:28 +00:00
committed by Git OBS Bridge
commit c1626eed1b
6 changed files with 122 additions and 0 deletions

65
python-altgraph.spec Normal file
View File

@@ -0,0 +1,65 @@
#
# spec file for package python-altgraph
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-altgraph
Version: 0.15
# For license file
%define tag 3ff77f1024d0fa811cc4783ba379b4e77b218844
Release: 0
License: MIT
Summary: Python graph (network) package
Url: https://bitbucket.org/ronaldoussoren/altgraph/
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/a/altgraph/altgraph-%{version}.tar.gz
Source10: https://bitbucket.org/ronaldoussoren/altgraph/raw/%{tag}/LICENSE
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
Altgraph is a fork of graphlib: a graph (network) package for constructing
graphs, BFS and DFS traversals, topological sort, shortest paths, etc. with
graphviz output.
altgraph includes some additional usage of Python 2.6+ features and
enhancements related to modulegraph and macholib.
%prep
%setup -q -n altgraph-%{version}
cp %{SOURCE10} .
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc README.txt
%license LICENSE
%{python_sitelib}/*
%changelog