%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-pmw Version: 1.2 Release: 3.el5.uson Summary: Python MegaWidgets Group: Development/Languages Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON License: GPL URL: http://pmw.sourceforge.net/ Source0: Pmw.1.2.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") %description Pmw is a toolkit for building high-level compound widgets in Python using the Tkinter module. All documentation about Pmw is in the form of html files stored in the 'doc' directory of each release of Pmw. Please use your Web browser to view the file 'doc/index.html' in the directory containing the most recent release. %prep %setup -n Pmw %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/lib/python2.4/site-packages/ cp -a $RPM_BUILD_DIR/Pmw $RPM_BUILD_ROOT/usr/lib/python2.4/site-packages/. %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/Pmw %files %defattr(-,root,root,-) /usr/lib/python2.4/site-packages/Pmw %doc # Include files and dirs below %{python_sitelib} (for noarch packages) and # %{python_sitearch} (for arch-dependent packages) as appropriate, and mark # *.pyo as %ghost (do not include in package). %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Tue Oct 4 2005 tim pickering - first rpm build