forked from pool/python-docutils
Accepting request 200350 from home:TheBlackCat:branches:devel:languages:python
- Update to 0.11 - Use pypi url and download - Replace rpmlint-non-executable scripts.diff with sed in the spec file OBS-URL: https://build.opensuse.org/request/show/200350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=24
This commit is contained in:
@@ -17,14 +17,13 @@
|
||||
|
||||
|
||||
Name: python-docutils
|
||||
Version: 0.10
|
||||
Version: 0.11
|
||||
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
|
||||
Url: https://pypi.python.org/pypi/docutils/
|
||||
Source: https://pypi.python.org/packages/source/d/docutils/docutils-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-xml
|
||||
@@ -47,10 +46,15 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
|
||||
|
||||
%prep
|
||||
%setup -n docutils-%{version}
|
||||
%patch0
|
||||
# Remove useless ".py" ending from executables:
|
||||
for i in tools/rst*; do mv "$i" "${i/.py}-%{py_ver}"; done
|
||||
sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1-%{py_ver}'|" setup.py
|
||||
# Remove shebang from non-executable files
|
||||
for i in {'code_analyzer','error_reporting','punctuation_chars','smartquotes','math/latex2mathml','math/math2html'}; do
|
||||
sed -i -e "1d" "docutils/utils/$i.py"
|
||||
done
|
||||
sed -i -e "1d" "docutils/writers/xetex/__init__.py"
|
||||
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
Reference in New Issue
Block a user