%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global alphatag b24 Name: python-squaremap Version: 1.0.0 Release: 0.1.%{alphatag}%{?dist} Summary: SquareMap for wxPython Group: Development/Languages License: BSD URL: https://launchpad.net/squaremap Source0: http://pypi.python.org/packages/source/S/SquareMap/SquareMap-%{version}%{alphatag}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel Requires: wxPython %description A simple wxPython control to display hierarchic data as a recursive set of nested squares, each of which represents the relative size of a given child within its parent. %prep %setup -q -n SquareMap-%{version}%{alphatag} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{python_sitelib}/* %changelog * Wed Feb 24 2010 David Malcolm - 1.0.0-0.1.b24 - initial package