Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-rope
Version:        0.9.2
Release:        1%{?dist}
Summary:        Python Code Refactoring Library

Group:          Development/Languages
License:        GPLv2+
URL:            http://rope.sourceforge.net/
Source0:        http://downloads.sf.net/rope/rope-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
# For testsuite
BuildRequires:  python-nose

# pysvn, hg, git, and darcs are optional.  If installed, they give integration
# between rope and the version control system.  (So refactorings that rename a
# file, for instance, will be checked into version control.)

%description
A python refactoring library. It provides features like refactorings and coding
assists.

%prep
%setup -q -n rope-%{version}


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%check
# Tests starting with 'xxx_' are known to fail because features are
# unimplemented
nosetests -e '^xxx_.*'

%files
%defattr(-,root,root,-)
%doc README.txt COPYING docs
%{python_sitelib}/*


%changelog
* Fri May 22 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.9.2-1
- Update to upstream 0.9.2.

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed Nov 19 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.9.1-1
- Initial Fedora build