%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: ropemode Version: 0.1 Release: 0.1.rc2%{?dist} Summary: Helper for using rope refactoring library in IDEs Group: Development/Libraries License: GPLv2+ URL: http://rope.sourceforge.net/ropemacs.html Source0: http://pypi.python.org/packages/source/r/%{name}/%{name}-%{version}-rc2.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: rope Requires: python Requires: rope %description Ropemode is a helper library for use of rope refactoring from within IDEs, mainly used by ropemacs within Emacs. %prep %setup -q -n %{name}-%{version}-rc2 %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %files %{python_sitelib}/ropemode/ %{python_sitelib}/*.egg-info %changelog * Wed May 4 2011 Stanislav Ochotnicky - 0.1-0.1.rc2 - Initial version of package