File python3-rope.spec of Package python3-rope

# spec file for package python3-rope
# Copyright (c) 2015 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

%define pyname  rope
%define modname %{pyname}_py3k
Name:           python3-%{pyname}
Version:        0.9.3
Release:        0
License:        GPL-2.0+
Summary:        A python3 refactoring library
Group:          Development/Languages/Python
BuildRequires:  python3
BuildRequires:  python3-2to3
BuildRequires:  python3-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Rope is a Python refactoring library.

%setup -q -n rope_py3k-%{version}-1

python3 build

python3 install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}/%{py_sitedir}/python3-rope/ropetest/

%doc COPYING README.txt docs/