forked from pool/python-docutils
Accepting request 139388 from home:HighwayStar:branches:devel:languages:python
patch for python 3.3 (Factory) added this resolves build failure for python3-Sphinx OBS-URL: https://build.opensuse.org/request/show/139388 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
cc08cbbd1a
commit
aad7f5c340
@@ -11,10 +11,11 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%define modname docutils
|
||||
Name: python3-%{modname}
|
||||
Version: 0.9
|
||||
@@ -24,6 +25,8 @@ License: Python-2.0 and BSD-2-Clause and GPL-2.0+ and GPL-3.0+ and SUSE-P
|
||||
Group: Development/Languages/Python
|
||||
Url: http://docutils.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/project/%{modname}/%{modname}/%{version}/%{modname}-%{version}.tar.gz
|
||||
# patch from upstream: r7486 Fix [3541369] Relative __import__ also with Python 3.3
|
||||
Patch0: r7486-python33-compat.patch
|
||||
BuildRequires: python3
|
||||
BuildRequires: python3-2to3
|
||||
BuildRequires: python3-devel
|
||||
@@ -44,7 +47,7 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
|
||||
|
||||
%prep
|
||||
%setup -n %{modname}-%{version}
|
||||
|
||||
%patch0 -p2
|
||||
%build
|
||||
python3 setup.py build
|
||||
sed -i "s|#!\s*\/usr\/bin\/env python3||g" docutils/{math/math2html,_string_template_compat,error_reporting,writers/xetex/__init__,math/latex2mathml}.py # Fix non-executable scripts
|
||||
|
||||
Reference in New Issue
Block a user