14
0

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:
Todd R
2013-09-24 10:54:44 +00:00
committed by Git OBS Bridge
parent 898dc78255
commit cbf6bdfc5d
5 changed files with 40 additions and 1523 deletions

View File

@@ -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