Use 2to3 tool to make build scripts compatible with python3
This commit is contained in:
parent
88d6e315c9
commit
add44d760b
@ -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 <pnemade AT redhat DOT com> - 20120503-14
|
||||
- Use 2to3 tool to make build scripts compatible with python3
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20120503-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user