- 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:
parent
cbedcbe30b
commit
f9fed3c555
@ -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
|
Fri Sep 23 10:19:38 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-docutils
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
#
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: python-docutils
|
Name: python-docutils
|
||||||
Version: 0.8.1
|
Version: 0.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://docutils.sourceforge.net/
|
|
||||||
Summary: Python Documentation Utilities
|
|
||||||
License: public domain, Python, BSD-2-Clause, GPL (see COPYING.txt)
|
License: public domain, Python, BSD-2-Clause, GPL (see COPYING.txt)
|
||||||
|
Summary: Python Documentation Utilities
|
||||||
|
Url: http://docutils.sourceforge.net/
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://downloads.sourceforge.net/project/docutils/docutils/0.8.1/docutils-0.8.1.tar.gz
|
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
|
BuildRequires: python-devel
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires: python-xml
|
BuildRequires: python-xml
|
||||||
Requires: python-xml
|
Requires: python-xml
|
||||||
@ -35,15 +34,13 @@ Requires: python-xml
|
|||||||
BuildRequires: pyxml
|
BuildRequires: pyxml
|
||||||
Requires: pyxml
|
Requires: pyxml
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
|
||||||
%py_requires
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
Provides: docutils = %{version}
|
Provides: docutils = %{version}
|
||||||
Obsoletes: 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
|
%description
|
||||||
Docutils is a modular system for processing documentation into useful formats,
|
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
|
%build
|
||||||
python setup.py 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
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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
|
for i in %{buildroot}%{_bindir}/rst*; do mv "$i" "${i/.py}"; done # Remove useless ".py" ending from executables
|
||||||
|
|
||||||
# Tests break SLE and Mandriva builds
|
# 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
|
%check
|
||||||
cd test && python alltests.py
|
cd test && python alltests.py
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user