Blob Blame History Raw
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-altgraph
Version:        0.6.7
Release:        6%{?dist}
Summary:        Python graph (network) package

Group:          Applications/Engineering
License:        MIT
URL:            http://undefined.org/python/#altgraph
Source0:        http://pypi.python.org/packages/source/a/altgraph/altgraph-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  python
BuildRequires:  python-setuptools-devel

Requires:       pydot


%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.


%prep
%setup -q -n altgraph-%{version}
#Dot.py is provided by graphviz through pydot
rm altgraph/Dot.py


%build
python setup.py build


%install
rm -rf %{buildroot}
python setup.py install -O1 --skip-build --root=%{buildroot}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc PKG-INFO test/test_altgraph.py
%{python_sitelib}/altgraph/
%{python_sitelib}/altgraph*.egg-info


%changelog
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.7-5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Apr 28 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.7-3
- Changed define to global 

* Fri Apr 18 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.7-2
- Removed ./
- Reworked doc part

* Sat Apr 11 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.7-1
- Initial spec for Fedora