From add44d760b3dd86298a12265eb35f8b6976f0d29 Mon Sep 17 00:00:00 2001 From: Parag A Nemade Date: Thu, 9 Mar 2017 22:32:41 +0530 Subject: [PATCH] Use 2to3 tool to make build scripts compatible with python3 --- gnu-free-fonts.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/gnu-free-fonts.spec b/gnu-free-fonts.spec index 783819b..dfbec83 100644 --- a/gnu-free-fonts.spec +++ b/gnu-free-fonts.spec @@ -3,7 +3,7 @@ Name: %{fontname}-fonts Version: 20120503 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Free UCS Outline Fonts # Standard font exception @@ -22,6 +22,8 @@ Patch0: gnu-free-fonts-devanagari-rendering.patch BuildArch: noarch BuildRequires: fontpackages-devel fontforge +# following is needed as we are calling /usr/bin/2to3 +BuildRequires: python2-tools %global common_desc \ Gnu FreeFont is a free family of scalable outline fonts, suitable for general \ @@ -86,6 +88,18 @@ This package contains the GNU FreeFont serif font. %patch0 -p1 -b .devanagari +# move build scripts to python3 compatible code +pushd tools +pushd generate +# Following for loop should not be used on pyc files +# better remove pre-compiled buildutils.pyc file +rm *.pyc +for item in `ls`;do + 2to3 -w $item +done +popd +popd + %build make @@ -132,10 +146,14 @@ install -Dm 0644 -p %{SOURCE8} \ %{_datadir}/appdata/%{fontname}-serif.metainfo.xml %files common -%doc AUTHORS ChangeLog CREDITS COPYING README +%doc AUTHORS ChangeLog CREDITS README +%license COPYING %{_datadir}/appdata/%{fontname}.metainfo.xml %changelog +* Thu Mar 09 2017 Parag Nemade - 20120503-14 +- Use 2to3 tool to make build scripts compatible with python3 + * Fri Feb 10 2017 Fedora Release Engineering - 20120503-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild