Update to version 3.2.3
This commit is contained in:
parent
e7fbaaf6d8
commit
ce42684951
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ fonttools-2.3.tar.gz
|
|||||||
/fonttools-3.2.0.zip
|
/fonttools-3.2.0.zip
|
||||||
/fonttools-3.2.1.zip
|
/fonttools-3.2.1.zip
|
||||||
/fonttools-3.2.2.zip
|
/fonttools-3.2.2.zip
|
||||||
|
/fonttools-3.2.3.zip
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
From 751da6367a57d6d7498f78e44ae7f978c013ab74 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Parag A Nemade <pnemade@fedoraproject.org>
|
|
||||||
Date: Mon, 28 Nov 2016 13:47:30 +0530
|
|
||||||
Subject: [PATCH] Make inspect.py file compatible to run with python2 and
|
|
||||||
python3
|
|
||||||
|
|
||||||
Signed-off-by: Parag A Nemade <pnemade@fedoraproject.org>
|
|
||||||
---
|
|
||||||
Lib/fontTools/inspect.py | 10 ++++++++--
|
|
||||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Lib/fontTools/inspect.py b/Lib/fontTools/inspect.py
|
|
||||||
index d48be9c..f1ada6c 100644
|
|
||||||
--- a/Lib/fontTools/inspect.py
|
|
||||||
+++ b/Lib/fontTools/inspect.py
|
|
||||||
@@ -8,8 +8,14 @@
|
|
||||||
from __future__ import print_function, division, absolute_import
|
|
||||||
from fontTools.misc.py23 import *
|
|
||||||
from fontTools import misc, ttLib, cffLib
|
|
||||||
-import pygtk
|
|
||||||
-pygtk.require('2.0')
|
|
||||||
+try:
|
|
||||||
+ from gi import pygtkcompat
|
|
||||||
+except ImportError:
|
|
||||||
+ pygtkcompat = None
|
|
||||||
+
|
|
||||||
+if pygtkcompat is not None:
|
|
||||||
+ pygtkcompat.enable()
|
|
||||||
+ pygtkcompat.enable_gtk(version='3.0')
|
|
||||||
import gtk
|
|
||||||
import sys
|
|
||||||
|
|
||||||
--
|
|
||||||
2.9.3
|
|
||||||
|
|
@ -7,16 +7,13 @@ contains a tool called “TTX” which converts TrueType/OpenType fonts to and \
|
|||||||
from an XML-based format.
|
from an XML-based format.
|
||||||
|
|
||||||
Name: fonttools
|
Name: fonttools
|
||||||
Version: 3.2.2
|
Version: 3.2.3
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Tools to manipulate font files
|
Summary: Tools to manipulate font files
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/fonttools/%{name}/
|
URL: https://github.com/fonttools/%{name}/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.zip
|
Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.zip
|
||||||
|
|
||||||
# Upstream merged patch
|
|
||||||
Patch0: Make-inspect.py-file-compatible-to-run-with-python2-python3.patch
|
|
||||||
|
|
||||||
Requires: python3-fonttools
|
Requires: python3-fonttools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: ttx = %{version}-%{release}
|
Provides: ttx = %{version}-%{release}
|
||||||
@ -49,7 +46,7 @@ Requires: python3-numpy
|
|||||||
%{desc}
|
%{desc}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup
|
||||||
rm -rf *.egg-info
|
rm -rf *.egg-info
|
||||||
|
|
||||||
sed -i '1d' Lib/fontTools/mtiLib/__init__.py
|
sed -i '1d' Lib/fontTools/mtiLib/__init__.py
|
||||||
@ -88,6 +85,9 @@ sed -i '1d' Lib/fontTools/mtiLib/__init__.py
|
|||||||
%{python3_sitelib}/%{name}-%{version}-py3.?.egg-info
|
%{python3_sitelib}/%{name}-%{version}-py3.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 05 2016 Parag Nemade <pnemade AT redhat DOT com> - 3.2.3-1
|
||||||
|
- Update to version 3.2.3
|
||||||
|
|
||||||
* Tue Nov 29 2016 Parag Nemade <pnemade AT redhat DOT com> - 3.2.2-2
|
* Tue Nov 29 2016 Parag Nemade <pnemade AT redhat DOT com> - 3.2.2-2
|
||||||
- Resolves: rh#1278201 - ImportError: No module named 'pygtk'
|
- Resolves: rh#1278201 - ImportError: No module named 'pygtk'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user