Fix the apply_featurefile.py to use fontforge python3 module

- use %license
- Drop obsolete Group tag
This commit is contained in:
Parag Nemade 2016-04-21 17:00:36 +05:30
parent 7ffe988b2a
commit c123c5b698

View File

@ -3,18 +3,18 @@
Name: %{fontname}-fonts
Version: 2.94.0
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Free truetype font for Marathi language
Group: User Interface/X
License: OFL
URL: https://fedorahosted.org/lohit/
Source1: %{fontname}.metainfo.xml
Source1: %{fontname}.metainfo.xml
Source0: https://fedorahosted.org/releases/l/o/lohit/%{fontname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: fontforge
BuildRequires: fontforge
BuildRequires: fontpackages-devel
BuildRequires: python
BuildRequires: python3-devel
BuildRequires: python-tools
Requires: fontpackages-filesystem
Patch0: bug-1325493.patch
@ -26,11 +26,15 @@ This package provides a free Marathi truetype/opentype font.
%setup -q -n %{fontname}-%{version}
%patch0 -p1 -b .1-fixes-feature-file
# Migrate to use python3
2to3 -w apply_featurefile.py
sed -i '1d' apply_featurefile.py
sed -i 's/python/python3/g' Makefile
%build
make ttf %{?_smp_mflags}
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
@ -48,12 +52,17 @@ install -Dm 0644 -p %{SOURCE1} \
%_font_pkg -f %{fontconf} *.ttf
%doc ChangeLog COPYRIGHT OFL.txt AUTHORS README test-marathi.txt
%doc ChangeLog COPYRIGHT AUTHORS README test-marathi.txt
%license OFL.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
* Thu Apr 21 2016 Parag Nemade <pnemade AT redhat DOT com> - 2.94.0-7
- Fix the apply_featurefile.py to use fontforge python3 module
- use %%license
- Drop obsolete Group tag
* Thu Apr 21 2016 Pravin Satpute <psatpute@redhat.com> - 2.94.0-6
- Resolves #1325493 - Marathi font rendering issues.