%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Name: ropemacs Version: 0.6 Release: 1%{?dist} Summary: Plugin for performing python refactorings in emacs Group: Development/Tools License: GPLv3 URL: http://rope.sourceforge.net/ropemacs.html # hg clone https://bitbucket.org/agr/ropemacs # hg archive -r 0.6 ropemacs-0.6.tbz2 Source0: %{name}-%{version}.tbz2 BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: ropemode Requires: 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 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 %{python_sitelib}/ropemacs/ %{python_sitelib}/*.egg-info %changelog * Fri Oct 15 2010 Stanislav Ochotnicky - 0.6-1 - Initial version of package