%global modname pycallgraph Name: python-pycallgraph Version: 0.5.1 Release: 2%{?dist} Summary: A module that creates call graphs for Python programs Group: Development/Languages License: GPLv2+ URL: http://pycallgraph.slowchop.com Source0: http://pycallgraph.slowchop.com/files/download/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel Requires: graphviz %description Python Call Graph uses GraphViz to generate call graphs from one execution of your Python code. It's very easy to use and can point out possible problems with your code execution. %prep %setup -q -n %{modname}-%{version} %build sed -i 1d pycallgraph.py %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files %doc COPYING %{_bindir}/pycallgraph %{python_sitelib}/* %changelog * Fri Mar 23 2012 Luke Macken - 0.5.1-2 - Require python2-devel - Change license tag from GPLv2 to GPLv2+ - Remove shebang from script * Mon Mar 12 2012 Luke Macken - 0.5.1-1 - Initial package for Fedora