forked from pool/python-docutils
Accepting request 181898 from Cloud:OpenStack:Master
- update to 0.10: - add rpmlint-non-executable-scripts.diff * SmartQuotes transform for typographic quotes and dashes. * FileInput/FileOutput: no system-exit on IOError. The handle_io_errors option is ignored. * <code> tag for inline "code", do not drop nested inline nodes (syntax highlight tokens). * Customizable MathJax URL (based on patch by Dmitry Shachnev). * No line break after opening inline math tag. OBS-URL: https://build.opensuse.org/request/show/181898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=20
This commit is contained in:
committed by
Git OBS Bridge
parent
190272c5bb
commit
558bcb3109
@@ -17,13 +17,14 @@
|
||||
|
||||
|
||||
Name: python-docutils
|
||||
Version: 0.9
|
||||
Version: 0.10
|
||||
Release: 0
|
||||
Summary: Python Documentation Utilities
|
||||
License: Python-2.0 and BSD-2-Clause and GPL-2.0+ and GPL-3.0+ and SUSE-Public-Domain
|
||||
Group: Development/Languages/Python
|
||||
Url: http://docutils.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/project/docutils/docutils/%{version}/docutils-%{version}.tar.gz
|
||||
Patch0: rpmlint-non-executable-scripts.diff
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-xml
|
||||
@@ -44,8 +45,7 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
|
||||
|
||||
%prep
|
||||
%setup -n docutils-%{version}
|
||||
# Fix non-executable scripts:
|
||||
sed -i "s|#!.*||g" docutils/{math/math2html,_string_template_compat,error_reporting,writers/xetex/__init__,math/latex2mathml}.py docutils/utils/{code_analyzer,punctuation_chars}.py
|
||||
%patch0
|
||||
# Remove useless ".py" ending from executables:
|
||||
for i in tools/rst*; do mv "$i" "${i/.py}"; done
|
||||
sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py
|
||||
|
Reference in New Issue
Block a user