%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-cly Version: 0.9 Release: 3%{?dist} Summary: A module for adding powerful text-based consoles to your Python application Group: Development/Languages License: BSD URL: http://swapoff.org/cly Source0: http://pypi.python.org/packages/source/c/cly/cly-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: python-docutils BuildRequires: python-pygments BuildRequires: python-setuptools BuildRequires: readline-devel %description CLY is a Python module for simplifying the creation of interactive shells, much like the built-in "cmd" module on steroids. %prep %setup -q -n cly-%{version} %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build # Build documents make --directory doc/ # Fix non-standard-executable-perm on rlext.so 0775 find build/ -name rlext.so -exec chmod 755 {} \; %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 COPYING PKG-INFO README doc/*.html doc/tutorial.py doc/video1.py %{python_sitearch}/cly/ %{python_sitearch}/cly-%{version}-*.egg-info %changelog * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Apr 11 2009 Silas Sewell <silas@sewell.ch> - 0.9-1 - Initial package