558bcb3109
- 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
70 lines
2.4 KiB
RPMSpec
70 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-docutils
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-docutils
|
|
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
|
|
Requires: python-xml
|
|
Provides: docutils = %{version}
|
|
Obsoletes: docutils < %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Docutils is a modular system for processing documentation into useful formats,
|
|
such as HTML, XML, and LaTeX. For input Docutils supports reStructuredText, an
|
|
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}"; done
|
|
sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%check
|
|
nosetests
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING.txt FAQ.txt HISTORY.txt README.txt THANKS.txt BUGS.txt docs/* licenses
|
|
%{_bindir}/rst*
|
|
%{python_sitelib}/docutils/
|
|
%{python_sitelib}/docutils-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|