- Use a patch from Debian submitted upstream to convert to python3 syntax

This commit is contained in:
Toshio Kuratomi 2010-10-27 22:55:37 -07:00
parent 66efba40ac
commit cc6a224b8e
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,13 @@
Index: mako-0.3.4/setup.py
===================================================================
--- mako-0.3.4.orig/setup.py
+++ mako-0.3.4/setup.py
@@ -64,4 +64,5 @@ ties to Python calling and scoping seman
[babel.extractors]
mako = mako.ext.babelplugin:extract
""",
+ **extra
)

View File

@ -6,7 +6,7 @@
Name: python-mako
Version: 0.3.5
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Mako template library for Python
Group: Development/Languages
@ -14,6 +14,9 @@ Group: Development/Languages
License: MIT and Python
URL: http://www.makotemplates.org/
Source0: http://www.makotemplates.org/downloads/Mako-%{version}.tar.gz
# From Debian and submitted upstream by them here:
# http://www.makotemplates.org/trac/ticket/148
Patch0: mako-make-sure-2to3-is-used.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools-devel python-nose python-markupsafe
@ -56,10 +59,11 @@ calling and scoping semantics.
%prep
%setup -q -n Mako-%{version}
%patch0 -p1 -b .2to3
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
2to3 --write --nobackups %{py3dir} %{py3dir}/scripts/mako-render
%endif # with_python3
%build
@ -111,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Wed Oct 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.5-2
- Use a patch from Debian submitted upstream to convert to python3 syntax
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 0.3.5-1
- Update to 0.3.5 (#645063)