Convert to new fonts packaging guidelines and update CI script
This commit is contained in:
parent
66acc65acc
commit
9b1b1a94d1
@ -1,63 +1,50 @@
|
|||||||
%global fontname jomolhari
|
Version: 0.003
|
||||||
%global fontconf 65-0-%{fontname}.conf
|
Release: 29%{?dist}
|
||||||
|
|
||||||
Name: %{fontname}-fonts
|
|
||||||
Version: 0.003
|
|
||||||
Release: 28%{?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
|
||||||
|
|
||||||
|
@ -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>
|
|
||||||
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user