14
0
forked from pool/python-rope
Files
python-rope/python-rope.spec

94 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-rope (Version 0.9.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-rope
Summary: Rope is a python refactoring library
Version: 0.9.2
Release: 1
Source: rope-%{version}.tar.bz2
#Patch: %{name}-%{version}.patch
License: GPL v2 or later
Group: Development/Languages/Python
Url: http://rope.sf.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%{py_requires}
%if 0%suse_version > 1110
BuildArch: noarch
%define py_sitedir %python_sitelib
%endif
%description
Features implemented so far:
* Refactorings
* Rename everything!
* Extract method/local variable
* Move class/function/module/package/method
* Inline method/local variable/parameter
* Restructuring (like converting ``${a}.f(${b})`` to
``${b}.g(${a})`` where ``a: type=mymod.A``)
* Introduce factory
* Change method signature
* Transform module to package
* Encapsulate field
* Replace method with method object
* Refactoring Features
* Extracting similar statements in extract refactorings
* Fixing imports when needed
* Previewing refactorings
* Undo/redo refactorings
* Stopping refactorings
* Cross-project refactorings
* Basic implicit interfaces handling in rename and change signature
* Mercurial_, GIT_, Darcs_ and SVN (pysvn_ library) support in
refactorings
Authors:
--------
Ali Gholami Rudi
%prep
%setup -q -n rope-%{version}
#%patch
%build
python setup.py build
%install
#export PYTHONOPTIMIZE=1 #--optimize=1
python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT/%{py_sitedir}/python-rope/ropetest/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README.txt docs/
%{py_sitedir}/rope
%{py_sitedir}/*egg-info
%changelog