forked from pool/python-pygraphviz
- Initial package (0.99.1) for openSUSE.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=1
This commit is contained in:
44
python-pygraphviz.spec
Normal file
44
python-pygraphviz.spec
Normal file
@@ -0,0 +1,44 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: python-pygraphviz
|
||||
Version: 0.99.1
|
||||
Release: 1
|
||||
Summary: Python interface to Graphviz
|
||||
License: BSD License
|
||||
Group: Development/Libraries/Python
|
||||
Source: pygraphviz-%{version}.tar.gz
|
||||
Patch: fix_examples.patch
|
||||
URL: http://networkx.lanl.gov/pygraphviz
|
||||
BuildRequires: python-devel, python-setuptools, pkg-config, graphviz-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{py_requires}
|
||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
A Python wrapper for the Graphviz Agraph data structure.
|
||||
pygraphviz can be used to create and draw networks and graphs with Graphviz.
|
||||
|
||||
Author:
|
||||
--------
|
||||
Aric Hagberg <hagberg@lanl.gov>
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n pygraphviz-%{version}
|
||||
%patch
|
||||
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%doc doc examples
|
Reference in New Issue
Block a user