Convert to new fonts packaging guidelines and update CI script

This commit is contained in:
Parag Nemade 2020-03-13 12:53:04 +05:30
parent 66acc65acc
commit 9b1b1a94d1
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
4 changed files with 30 additions and 62 deletions

View File

@ -1,63 +1,50 @@
%global fontname jomolhari
%global fontconf 65-0-%{fontname}.conf
Name: %{fontname}-fonts
Version: 0.003 Version: 0.003
Release: 28%{?dist} Release: 29%{?dist}
Summary: Jomolhari a Bhutanese style font for Tibetan and Dzongkha
License: OFL
# Looks like currently following URL is gone now. Maybe temporary issue
#URL: http://chris.fynn.googlepages.com/jomolhari
# Try following URL for this package # Try following URL for this package
#URL: https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari #URL: https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari
Source0: http://chris.fynn.googlepages.com/jomolhari-alpha003c.zip # Looks like currently following URL is gone now. Maybe temporary issue
Source1: %{name}-fontconfig.conf #URL: http://chris.fynn.googlepages.com/jomolhari
Source2: %{fontname}.metainfo.xml
BuildArch: noarch %global fontlicense OFL
BuildRequires: fontpackages-devel %global fontlicenses OFL.txt
Requires: fontpackages-filesystem %global fontdocs *.txt
%global fontdocsex %{fontlicenses}
%description %global fontfamily Jomolhari
%global fontsummary Jomolhari a Bhutanese style font for Tibetan and Dzongkha
%global archivename jomolhari-alpha003c
%global fonts *.ttf
%global fontconfs %{SOURCE1}
%global fontdescription %{expand:
Jomolhari is an TrueType OpenType Bhutanese style font for Dzongkha and Jomolhari is an TrueType OpenType Bhutanese style font for Dzongkha and
Tibetan text. It is based on Bhutanese manuscript examples, supports the Tibetan text. It is based on Bhutanese manuscript examples, supports the
Unicode and the Chinese encoding for Tibetan. Unicode and the Chinese encoding for Tibetan.
The font supports the standard combinations used in most texts. The font supports the standard combinations used in most texts.}
Source0: http://chris.fynn.googlepages.com/%{archivename}.zip
Source1: 65-0-%{fontpkgname}.conf
%fontpkg
%prep %prep
%setup -q -c %setup -q -c
%linuxtext FONTLOG.txt OFL-FAQ.txt OFL.txt
%build %build
# Empty build section %fontbuild
%install %install
install -m 0755 -d %{buildroot}%{_fontdir} %fontinstall
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %check
%{buildroot}%{_fontconfig_confdir} %fontcheck
install -m 0644 -p %{SOURCE1} \ %fontfiles
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
for i in FONTLOG.txt OFL-FAQ.txt OFL.txt
do
tr -d '\r' < $i > ${i}.tmp
mv -f ${i}.tmp $i
done
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f 65-0-%{fontname}.conf *.ttf
%doc FONTLOG.txt OFL-FAQ.txt OFL.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog %changelog
* Fri Mar 13 2020 Parag Nemade <pnemade AT redhat DOT com> - 0.003-29
- Convert to new fonts packaging guidelines
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.003-28 * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.003-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
<component type="font">
<id>jomolhari</id>
<metadata_license>CC-BY-3.0</metadata_license>
<name>Jomolhari</name>
<summary>Jomolhari a Bhutanese style font for Tibetan and Dzongkha</summary>
<description>
<p>
Jomolhari is an TrueType OpenType Bhutanese style font for Dzongkha and
Tibetan text. It is based on Bhutanese manuscript examples, supports the
Unicode and the Chinese encoding for Tibetan.
The font supports the standard combinations used in most texts.
</p>
</description>
<updatecontact>pnemade_at_redhat_dot_com</updatecontact>
<url type="homepage">https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari</url>
</component>

View File

@ -5,7 +5,7 @@
- role: custom-test-fonts - role: custom-test-fonts
required_packages: required_packages:
- jomolhari-fonts - jomolhari-fonts
path_prefix: /usr/share/fonts/jomolhari path_prefix: /usr/share/fonts/jomolhari-fonts
package: jomolhari-fonts package: jomolhari-fonts
coverage: coverage:
- bo - bo