diff --git a/python-manuel-doctest-fix-with-python-3.4.patch b/python-manuel-doctest-fix-with-python-3.4.patch new file mode 100644 index 0000000..6dea342 --- /dev/null +++ b/python-manuel-doctest-fix-with-python-3.4.patch @@ -0,0 +1,27 @@ +From 925a744b3b43e376689de5eba3e552f1f817adc9 Mon Sep 17 00:00:00 2001 +From: Robert Kuska +Date: Mon, 19 May 2014 09:20:07 +0200 +Subject: [PATCH] Fixes doctests to pass on python3.4 + +--- + src/manuel/README.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/manuel/README.txt b/src/manuel/README.txt +index 28cb605..ac94bde 100644 +--- a/src/manuel/README.txt ++++ b/src/manuel/README.txt +@@ -81,9 +81,9 @@ Also, instead of just a "start_match" attribute, the region will have + start_match and end_match attributes. + + >>> region.start_match +- <_sre.SRE_Match object at 0x...> ++ <..._sre.SRE_Match object...> + >>> region.end_match +- <_sre.SRE_Match object at 0x...> ++ <..._sre.SRE_Match object...> + + + Regions must always consist of whole lines. +-- +1.9.3 diff --git a/python-manuel.spec b/python-manuel.spec index 4f40d8d..7bb979f 100644 --- a/python-manuel.spec +++ b/python-manuel.spec @@ -10,7 +10,7 @@ Name: python-manuel Version: 1.7.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Build tested documentation Group: Development/Libraries @@ -20,6 +20,9 @@ Source0: https://pypi.python.org/packages/source/m/manuel/manuel-%{versio # The sphinx configuration file was mistakenly left out of the 1.7.2 release. # This file was collected from subversion. Source1: conf.py +# Fix doctests with Python 3.4 +# https://github.com/benji-york/manuel/pull/4 +Patch0: python-manuel-doctest-fix-with-python-3.4.patch BuildArch: noarch BuildRequires: python-setuptools @@ -62,6 +65,8 @@ rm -fr src/manuel.egg-info mkdir sphinx cp -p %{SOURCE1} sphinx +%patch0 -p1 + %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} @@ -116,6 +121,9 @@ popd %endif %changelog +* Wed May 14 2014 Bohuslav Kabrda - 1.7.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + * Fri Jan 24 2014 Ralph Bean - 1.7.2-4 - Conditionalized python3 for epel builds. - Defined python2 macros for el6.