Resolves: rhbz#525444 as is a reserved keyword in python

This commit is contained in:
Caolan McNamara 2009-10-02 09:41:03 +00:00
parent 3aa724c8ec
commit f775fc7e28
3 changed files with 21 additions and 3072 deletions

14
fonttools-as.patch Normal file
View File

@ -0,0 +1,14 @@
Index: Lib/fontTools/ttLib/tables/ttProgram.py
===================================================================
--- Lib/fontTools/ttLib/tables/ttProgram.py (revision 562)
+++ Lib/fontTools/ttLib/tables/ttProgram.py (revision 563)
@@ -394,7 +394,7 @@
p = Program()
p.fromBytecode(bc)
- as = p.getAssembly()
- p.fromAssembly(as)
+ asm = p.getAssembly()
+ p.fromAssembly(asm)
print bc == p.getBytecode()

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
Name: fonttools Name: fonttools
Version: 2.2 Version: 2.2
Release: 6%{?dist} Release: 7%{?dist}
Summary: A tool to convert True/OpenType fonts to XML and back Summary: A tool to convert True/OpenType fonts to XML and back
Group: Development/Tools Group: Development/Tools
@ -15,6 +15,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel numpy BuildRequires: python-devel numpy
Requires: numpy Requires: numpy
Patch0: fonttools-as.patch
Provides: ttx = %{version}-%{release} Provides: ttx = %{version}-%{release}
%description %description
@ -25,6 +27,7 @@ TrueType and OpenType fonts to an XML-based text format and vice versa.
%prep %prep
%setup -q %setup -q
%patch0 -p0 -b .as
%{__sed} -i.nobang '1 d' Lib/fontTools/ttx.py %{__sed} -i.nobang '1 d' Lib/fontTools/ttx.py
%{__chmod} a-x LICENSE.txt %{__chmod} a-x LICENSE.txt
@ -70,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Fri Oct 02 2009 Caolán McNamara <caolanm@redhat.com> - 2.2-7
* Resolves: rhbz#525444 as is a reserved keyword in python
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-6 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild