| |
@@ -1,18 +1,21 @@
|
| |
- %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
| |
-
|
| |
Name: python-rope
|
| |
- Version: 0.10.3
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 0.10.7
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Python Code Refactoring Library
|
| |
|
| |
Group: Development/Languages
|
| |
License: GPLv2+
|
| |
- URL: http://rope.sourceforge.net/
|
| |
- Source0: http://pypi.python.org/packages/source/r/rope/rope-%{version}.tar.gz
|
| |
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| |
+ URL: https://github.com/python-rope/rope
|
| |
+ Source0: https://files.pythonhosted.org/packages/source/r/rope/rope-%{version}.tar.gz
|
| |
+
|
| |
+ # Fix two tests with py2 on Fedora which fails due to building the time module as a
|
| |
+ # shared library. See https://github.com/python-rope/rope/issues/220 and
|
| |
+ # https://github.com/python-rope/rope/issues/211
|
| |
+ # Fixed upstream: https://github.com/python-rope/rope/pull/225
|
| |
+ Patch0: fix-py2-failing-tests.patch
|
| |
|
| |
BuildArch: noarch
|
| |
- BuildRequires: python2-devel
|
| |
+ BuildRequires: python2-devel python3-devel
|
| |
|
| |
# pysvn, hg, git, and darcs are optional. If installed, they give integration
|
| |
# between rope and the version control system. (So refactorings that rename a
|
| |
@@ -30,31 +33,43 @@
|
| |
|
| |
%description -n python2-rope %_description
|
| |
|
| |
- %prep
|
| |
- %setup -q -n rope-%{version}
|
| |
+ %package -n python3-rope
|
| |
+ Summary: %summary
|
| |
+ %{?python_provide:%python_provide python3-%{srcname}}
|
| |
|
| |
+ %description -n python3-rope %_description
|
| |
|
| |
- %build
|
| |
- %{__python} setup.py build
|
| |
|
| |
+ %prep
|
| |
+ %autosetup -p1 -n rope-%{version}
|
| |
|
| |
- %install
|
| |
- rm -rf $RPM_BUILD_ROOT
|
| |
- %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
| |
+ %build
|
| |
+ %py2_build
|
| |
+ %py3_build
|
| |
|
| |
- %clean
|
| |
- rm -rf $RPM_BUILD_ROOT
|
| |
+ %install
|
| |
+ %py2_install
|
| |
+ %py3_install
|
| |
|
| |
%check
|
| |
- python setup.py test
|
| |
+ %{__python2} setup.py test
|
| |
+ %{__python3} setup.py test
|
| |
|
| |
%files -n python2-rope
|
| |
- %defattr(-,root,root,-)
|
| |
- %doc README.rst COPYING docs
|
| |
- %{python_sitelib}/*
|
| |
+ %license COPYING
|
| |
+ %doc README.rst docs
|
| |
+ %{python2_sitelib}/*
|
| |
|
| |
+ %files -n python3-rope
|
| |
+ %license COPYING
|
| |
+ %doc README.rst docs
|
| |
+ %{python3_sitelib}/*
|
| |
|
| |
%changelog
|
| |
+ * Wed Nov 08 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.10.7-1
|
| |
+ - Update to 0.10.7.
|
| |
+ - Add python3 subpackage.
|
| |
+
|
| |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.10.3-3
|
| |
- Python 2 binary package renamed to python2-rope
|
| |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
| |
Based on #1 however the the patch for skipping the failing tests is replaced with the upstream fix.