%if 0%{?rhel} && 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif %global modname ropemacs Name: python-%{modname} Version: 0.7 Release: 1%{?dist} Summary: Plugin for performing python refactorings in emacs Group: Development/Tools License: GPLv2+ URL: http://rope.sourceforge.net/ropemacs.html Source0: http://pypi.python.org/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-ropemode Requires: emacs-pymacs %description Ropemacs is a plugin for performing python refactorings in Emacs. It uses rope library and pymacs and supports full rope functionality. %prep %setup -q -n %{modname}-%{version} sed -i "s:'ropemode',::g" setup.py %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %files %doc COPYING CONTRIBUTORS README.txt docs/* %{python_sitelib}/%{modname}/ %{python_sitelib}/*.egg-info %changelog * Mon Aug 27 2012 Stanislav Ochotnicky - 0.7-1 - Update to latest upstream (0.7) - Start using newly released tarballs - Define python dirs only in el5 * Fri May 13 2011 Stanislav Ochotnicky - 0.6-2 - Rename to python-ropemacs - Fix BR/R on emacs-pymacs and python-ropemode - Fix license to GPLv2+ * Fri Oct 15 2010 Stanislav Ochotnicky - 0.6-1 - Initial version of package