Hello community,

here is the log from the commit of package python-docutils for openSUSE:Factory 
checked in at 2012-05-07 22:49:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-docutils (Old)
 and      /work/SRC/openSUSE:Factory/.python-docutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-docutils", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-docutils/python-docutils.changes  
2011-09-26 10:14:22.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-docutils.new/python-docutils.changes     
2012-05-07 22:49:51.000000000 +0200
@@ -1,0 +2,22 @@
+Mon Apr 30 14:07:34 UTC 2012 - [email protected]
+
+- license update: Python-2.0 and BSD-2-Clause and GPL-2.0+ and GPL-3.0+ and
+  SUSE-Public-Domain
+  tools/editors/emacs/rst.el is GPL-3.0+ - see also COPYING file
+
+-------------------------------------------------------------------
+Fri Apr 27 14:07:19 UTC 2012 - [email protected]
+
+- Fix building python 3 package on openSUSE 11.4 x86_64
+
+-------------------------------------------------------------------
+Tue Apr 24 09:02:35 UTC 2012 - [email protected]
+
+- Disable testsuite altogether, fails also on the bleeding_edge_* repos
+
+-------------------------------------------------------------------
+Tue Feb 28 08:58:23 UTC 2012 - [email protected]
+
+- Fixed SLE_11_SP2 build by disabling the testsuite
+
+-------------------------------------------------------------------
New Changes file:

--- /dev/null   2012-05-03 01:24:41.895590051 +0200
+++ /work/SRC/openSUSE:Factory/.python-docutils.new/python3-docutils.changes    
2012-05-07 22:49:51.000000000 +0200
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Fri Apr 27 14:07:19 UTC 2012 - [email protected]
+
+- Fix building python 3 package on openSUSE 11.4 x86_64
+
+-------------------------------------------------------------------
+Mon Apr 23 12:00:49 UTC 2012 - [email protected]
+
+- Add python 3 package
+

New:
----
  python3-docutils.changes
  python3-docutils.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-docutils.spec ++++++
--- /var/tmp/diff_new_pack.3RX93b/_old  2012-05-07 22:49:52.000000000 +0200
+++ /var/tmp/diff_new_pack.3RX93b/_new  2012-05-07 22:49:52.000000000 +0200
@@ -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
@@ -16,17 +16,16 @@
 #
 
 
-
 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)
+License:        Python-2.0 and BSD-2-Clause and GPL-2.0+ and GPL-3.0+ and 
SUSE-Public-Domain
 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
+Url:            http://docutils.sourceforge.net/
+Source:         
http://downloads.sourceforge.net/project/docutils/docutils/%{version}/docutils-%{version}.tar.gz
 BuildRequires:  python-devel
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version}
 BuildRequires:  python-xml
 Requires:       python-xml
@@ -35,15 +34,13 @@
 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,23 +52,16 @@
 
 %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}
-
-%check
-cd test && python alltests.py
-%endif
-
 %files
 %defattr(-,root,root,-)
 %doc COPYING.txt FAQ.txt HISTORY.txt README.txt THANKS.txt BUGS.txt docs/* 
licenses
 %{_bindir}/rst*
-%python_sitelib/*
+%{python_sitelib}/*
 
 %changelog

++++++ python3-docutils.spec ++++++
#
# spec file for package python3-docutils
#
# 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
# 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:           python3-docutils
Version:        0.8.1
Release:        0
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
BuildRequires:  python3
BuildRequires:  python3-2to3
BuildRequires:  python3-devel
BuildRequires:  python3-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python3-xml
%if 0%{?suse_version} <= 1140
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)}
%ifarch x86_64
# to allow ownership of noarch python directories
BuildRequires:  python3-32bit 
%endif
%endif
BuildArch:      noarch
Requires:       python3 >= %{py3_ver}

%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}

%build
python3 setup.py build
sed -i "s|#!\s*\/usr\/bin\/env python3||g" 
docutils/{math/math2html,_string_template_compat,error_reporting,writers/xetex/__init__,math/latex2mathml}.py
 # Fix non-executable scripts

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
for i in %{buildroot}%{_bindir}/rst*; do mv "$i" "${i/.py}-python%{py3_ver}"; 
done # Remove useless ".py" ending from executables and add -python3.x suffix

%files
%defattr(-,root,root,-)
%doc COPYING.txt FAQ.txt HISTORY.txt README.txt THANKS.txt BUGS.txt docs/* 
licenses
%{_bindir}/rst*-python%{py3_ver}
%{python3_sitelib}/*
%if 0%{?suse_version} <= 1140
%dir %{python3_sitelib}
%endif

%changelog
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to