From 6ada18b872adc06d39400f794df8daca637bb50b76c64468a9ca2ffedef3021d Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 18 Apr 2017 15:35:18 +0000 Subject: [PATCH] Accepting request 489135 from home:TheBlackCat:branches:devel:languages:python3 Needed by python-objgraph. OBS-URL: https://build.opensuse.org/request/show/489135 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + graphviz-0.6.zip | 3 ++ python-graphviz.changes | 5 +++ python-graphviz.spec | 87 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 graphviz-0.6.zip create mode 100644 python-graphviz.changes create mode 100644 python-graphviz.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/graphviz-0.6.zip b/graphviz-0.6.zip new file mode 100644 index 0000000..31ae0f3 --- /dev/null +++ b/graphviz-0.6.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4be2b3438971588dc306116658f475916755ad8fcc0618e79023846ce94f97b +size 73045 diff --git a/python-graphviz.changes b/python-graphviz.changes new file mode 100644 index 0000000..b3ddded --- /dev/null +++ b/python-graphviz.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Apr 14 21:09:02 UTC 2017 - toddrme2178@gmail.com + +- Initial singlespec version + diff --git a/python-graphviz.spec b/python-graphviz.spec new file mode 100644 index 0000000..89a3135 --- /dev/null +++ b/python-graphviz.spec @@ -0,0 +1,87 @@ +# +# spec file for package python-graphviz +# +# Copyright (c) 2017 SUSE LINUX Products 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-%{**}} +%bcond_without tests +Name: python-graphviz +Version: 0.6 +Release: 0 +License: MIT +Summary: Simple Python interface for Graphviz +Url: http://github.com/xflr6/graphviz +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip +BuildRequires: fdupes +BuildRequires: graphviz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: unzip +%if %{with tests} +# Test requirements +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module nose} +BuildRequires: python2-unittest2 +BuildRequires: xdg-utils +# For pdf rendered tests +BuildRequires: w3m +BuildRequires: graphviz-gnome +%endif +Requires: graphviz +Recommends: xdg-utils +BuildArch: noarch +%python_subpackages + +%description +This package facilitates the creation and rendering of graph descriptions in +the DOT language of the Graphviz graph drawing software from Python. + +Create a graph object, assemble the graph by adding nodes and edges, and +retrieve its DOT source code string. Save the source code to a file and render +it with the Graphviz installation of your system. + +Use the view option/method to directly inspect the resulting (PDF, PNG, +SVG, etc.) file with its default application. Graphs can also be rendered +and displayed within IPython notebooks (example). + +%prep +%setup -q -n graphviz-%{version} + +# Fix wrong-file-end-of-line-encoding +sed -i 's/\r$//' CHANGES +sed -i 's/\r$//' LICENSE +sed -i 's/\r$//' README.rst +sed -i 's/\r$//' docs/*.rst + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with tests} +%check +%python_expand nosetests-%{$python_bin_suffix} +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGES LICENSE README.rst +%{python_sitelib}/* + +%changelog