- Fixed SLE_11_SP2 build by disabling the testsuite

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=6
This commit is contained in:
Sascha Peilicke 2012-02-28 08:59:33 +00:00 committed by Git OBS Bridge
parent cbedcbe30b
commit f9fed3c555
2 changed files with 17 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 28 08:58:23 UTC 2012 - saschpe@suse.de
- Fixed SLE_11_SP2 build by disabling the testsuite
-------------------------------------------------------------------
Fri Sep 23 10:19:38 UTC 2011 - saschpe@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-docutils
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 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
@ -11,22 +11,21 @@
# 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.8.1
Release: 0
Url: http://docutils.sourceforge.net/
Summary: Python Documentation Utilities
License: public domain, Python, BSD-2-Clause, GPL (see COPYING.txt)
Summary: Python Documentation Utilities
Url: http://docutils.sourceforge.net/
Group: Development/Languages/Python
Source: http://downloads.sourceforge.net/project/docutils/docutils/0.8.1/docutils-0.8.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: python-xml
Requires: python-xml
@ -35,15 +34,13 @@ Requires: python-xml
BuildRequires: pyxml
Requires: pyxml
%endif
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
Provides: docutils = %{version}
Obsoletes: docutils < %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%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,
@ -55,15 +52,14 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
%build
python setup.py build
sed -i "1d" docutils/{math/math2html,_string_template_compat,error_reporting,writers/xetex/__init__,math/latex2mathml}.py # Fix non-executable scripts
sed -i "s|#!\s*\/usr\/bin\/env python||g" docutils/{math/math2html,_string_template_compat,error_reporting,writers/xetex/__init__,math/latex2mathml}.py # Fix non-executable scripts
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
for i in %{buildroot}%{_bindir}/rst*; do mv "$i" "${i/.py}"; done # Remove useless ".py" ending from executables
# Tests break SLE and Mandriva builds
%if ! 0%{?sles_version} && ! 0%{?mandriva_version}
%if ! (0%{?suse_version} && 0%{?suse_version} <= 1110) && ! 0%{?mandriva_version}
%check
cd test && python alltests.py
%endif