diff --git a/.cvsignore b/.cvsignore index e69de29..494f2f6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +networkx-0.99.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..6eba02c --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-networkx-0_99-3_fc10:HEAD:python-networkx-0.99-3.fc10.src.rpm:1238192156 diff --git a/python-networkx.spec b/python-networkx.spec new file mode 100644 index 0000000..a976eb2 --- /dev/null +++ b/python-networkx.spec @@ -0,0 +1,80 @@ +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-networkx +Version: 0.99 +Release: 3%{?dist} +Summary: Creates and Manipulates Graphs and Networks +Group: Development/Languages +License: LGPLv2+ +URL: https://networkx.lanl.gov/trac +Source0: http://networkx.lanl.gov/download/networkx/networkx-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: graphviz-python +BuildRequires: pydot +BuildRequires: pyparsing +BuildRequires: python-devel +BuildRequires: python-matplotlib +BuildRequires: PyYAML +BuildRequires: scipy +Requires: graphviz-python +Requires: ipython +Requires: numpy +Requires: pydot +Requires: python-matplotlib +Requires: PyYAML +Requires: scipy + + +%description +NetworkX is a Python package for the creation, manipulation, and +study of the structure, dynamics, and functions of complex networks. + + +%prep +%setup -q -n networkx-%{version} +chmod -x examples/*/*.py +chmod -x examples/*/*.bz2 +sed -i '1,1d' networkx/tests/test.py + + +%build +python setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT%{_docdir}/networkx-%{version} ./installed-docs + + +%check +# Tests don't pass for a variety of reasons; among them it looks +# like they try to use Gtk which is obviously not available. +#python -c "import networkx; networkx.test()" + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc doc/GNU_LGPL.txt installed-docs/* +%{python_sitelib}/* + + +%changelog +* Tue Mar 24 2009 Conrad Meyer - 0.99-3 +- Replace __python macros with direct python invocations. +- Disable checks for now. +- Replace a define with global. + +* Thu Mar 12 2009 Conrad Meyer - 0.99-2 +- License is really LGPLv2+. +- Include license as documentation. +- Add a check section to run tests. + +* Sat Dec 13 2008 Conrad Meyer - 0.99-1 +- Initial package. diff --git a/sources b/sources index e69de29..e454d3b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1d3238c973ad198583e90533b27d6cd3 networkx-0.99.tar.gz