2011-03-28 13:34:41 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pygraphviz
|
|
|
|
#
|
2013-12-09 13:36:27 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-03-28 13:34:41 +00: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.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-12-09 13:36:27 +00:00
|
|
|
Name: python-pygraphviz
|
|
|
|
Version: 1.2
|
2011-03-28 13:34:41 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://networkx.lanl.gov/pygraphviz
|
2009-11-10 01:32:14 +00:00
|
|
|
Summary: Python interface to Graphviz
|
2011-03-28 13:34:41 +00:00
|
|
|
License: BSD
|
|
|
|
Group: Development/Languages/Python
|
2013-12-09 13:36:27 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-%{version}.tar.gz
|
2011-03-28 13:34:41 +00:00
|
|
|
# PATCH-FIX-UPSTREAM docdir.patch
|
|
|
|
Patch: docdir.patch
|
2009-11-10 01:32:14 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-28 13:34:41 +00:00
|
|
|
BuildRequires: graphviz-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-devel
|
2013-12-09 13:36:27 +00:00
|
|
|
Requires: graphviz-python
|
2012-05-25 11:35:28 +00:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%else
|
2011-03-28 13:34:41 +00:00
|
|
|
%py_requires
|
2009-11-10 01:32:14 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Python wrapper for the Graphviz Agraph data structure.
|
2011-03-28 13:34:41 +00:00
|
|
|
PyGraphviz can be used to create and draw networks and graphs with Graphviz.
|
2009-11-10 01:32:14 +00:00
|
|
|
|
|
|
|
%prep
|
2013-12-09 13:36:27 +00:00
|
|
|
%setup -q -n pygraphviz-%{version}
|
2009-11-10 01:32:14 +00:00
|
|
|
%patch
|
|
|
|
|
|
|
|
%build
|
2011-03-28 13:34:41 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
python setup.py build
|
2009-11-10 01:32:14 +00:00
|
|
|
|
|
|
|
%install
|
2011-03-28 13:34:41 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-12-09 13:36:27 +00:00
|
|
|
chmod +x %{buildroot}%{python_sitearch}/pygraphviz/tests/test.py
|
2011-03-28 13:34:41 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2009-11-10 01:32:14 +00:00
|
|
|
|
2011-03-28 13:34:41 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc
|
2013-12-09 13:36:27 +00:00
|
|
|
%{_docdir}/pygraphviz-%{version}
|
|
|
|
%{python_sitearch}/pygraphviz/
|
|
|
|
%{python_sitearch}/pygraphviz-%{version}-py*.egg-info
|
2009-11-10 01:32:14 +00:00
|
|
|
|
2011-03-28 13:34:41 +00:00
|
|
|
%changelog
|