2009-08-27 13:23:09 +00:00
|
|
|
#
|
2011-01-26 17:14:13 +00:00
|
|
|
# spec file for package python-rope
|
2009-08-27 13:23:09 +00:00
|
|
|
#
|
2017-08-01 15:52:31 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-08-27 13:23:09 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2012-06-06 11:08:29 +00:00
|
|
|
|
2009-08-27 13:23:09 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-06-06 11:08:29 +00:00
|
|
|
|
2017-08-01 15:52:31 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%bcond_without test
|
2012-01-31 10:37:34 +00:00
|
|
|
Name: python-rope
|
2017-08-01 15:52:31 +00:00
|
|
|
Version: 0.10.5
|
2012-01-31 10:37:34 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A python refactoring library
|
2012-06-06 11:08:29 +00:00
|
|
|
License: GPL-2.0+
|
2012-01-31 10:37:34 +00:00
|
|
|
Group: Development/Languages/Python
|
2015-02-23 13:41:39 +00:00
|
|
|
Url: https://github.com/python-rope/rope
|
2017-08-01 15:52:31 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/rope/rope-%{version}.tar.gz
|
2015-02-23 13:41:39 +00:00
|
|
|
Patch0: CVE-2014-3539-disable-doa.patch
|
2017-08-01 15:52:31 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-01-31 10:37:34 +00:00
|
|
|
BuildArch: noarch
|
2017-08-01 15:52:31 +00:00
|
|
|
|
|
|
|
%python_subpackages
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%description
|
2011-01-26 17:14:13 +00:00
|
|
|
Rope is a python refactoring library.
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%prep
|
2012-01-31 10:37:34 +00:00
|
|
|
%setup -q -n rope-%{version}
|
2015-02-23 13:41:39 +00:00
|
|
|
%patch0 -p1
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-01 15:52:31 +00:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%{python_build}
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-01 15:52:31 +00:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%{python_install}
|
|
|
|
rm -rf %{buildroot}/%{python_sitelib}/python-rope/ropetest/
|
|
|
|
%{python_expand %fdupes %{buildroot}/%{$python_sitelib}}
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%{python_exec setup.py test}
|
|
|
|
%endif
|
2009-08-27 13:23:09 +00:00
|
|
|
|
2017-08-01 15:52:31 +00:00
|
|
|
%files %{python_files}
|
2015-02-23 13:41:39 +00:00
|
|
|
%doc COPYING README.rst docs/
|
|
|
|
%{python_sitelib}/
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%changelog
|