Convert to new fonts packaging guidelines and update CI script
This commit is contained in:
parent
cc27053398
commit
5e855166c0
@ -1,26 +1,20 @@
|
||||
%global fontname sil-abyssinica
|
||||
%global archive_name AbyssinicaSIL
|
||||
%global fontconf 66-%{fontname}.conf
|
||||
|
||||
Name: %{fontname}-fonts
|
||||
Version: 1.200
|
||||
Release: 17%{?dist}
|
||||
Summary: SIL Abyssinica fonts
|
||||
Release: 18%{?dist}
|
||||
|
||||
License: OFL
|
||||
URL: http://scripts.sil.org/AbyssinicaSIL
|
||||
# download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.200.zip&filename=AbyssinicaSIL1.200.zip
|
||||
Source0: %{archive_name}%{version}.zip
|
||||
Source1: %{fontconf}
|
||||
Source2: %{fontname}.metainfo.xml
|
||||
%global foundry SIL
|
||||
%global fontlicense OFL
|
||||
%global fontlicenses OFL.txt
|
||||
%global fontdocs *.txt documentation/*.txt
|
||||
%global fontdocsex %{fontlicenses}
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: fontpackages-filesystem
|
||||
BuildRequires: fontpackages-devel
|
||||
BuildRequires: dos2unix
|
||||
|
||||
|
||||
%description
|
||||
%global fontfamily Abyssinica SIL
|
||||
%global fontsummary SIL Abyssinica fonts
|
||||
%global projectname AbyssinicaSIL
|
||||
%global archivename %{lua:t=string.gsub(rpm.expand("%{fontfamily}"), "[%p%s]+", ""); print(t)}%{version}
|
||||
URL: https://software.sil.org/%{projectname}/
|
||||
%global fonts *.ttf
|
||||
%global fontconfs %{SOURCE1}
|
||||
%global fontdescription %{expand:
|
||||
SIL Abyssinica is a Unicode typeface family containing glyphs for the
|
||||
Ethiopic script.
|
||||
|
||||
@ -32,39 +26,35 @@ non-Unicode characters in the Private Use Area (see Private-use (PUA)
|
||||
characters supported by Abyssinica SIL).
|
||||
|
||||
Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is
|
||||
a regular typeface, with no bold or italic version available or planned.
|
||||
a regular typeface, with no bold or italic version available or planned.}
|
||||
|
||||
|
||||
# download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.200.zip&filename=AbyssinicaSIL1.200.zip
|
||||
Source0: %{archivename}.zip
|
||||
Source1: 66-%{fontpkgname}.conf
|
||||
|
||||
%fontpkg
|
||||
|
||||
%prep
|
||||
%setup -q -n %{archive_name}-%{version}
|
||||
|
||||
%setup -q -n %{projectname}-%{version}
|
||||
%linuxtext FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt documentation/DOCUMENTATION.txt
|
||||
|
||||
%build
|
||||
dos2unix FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt documentation/DOCUMENTATION.txt
|
||||
|
||||
%fontbuild
|
||||
|
||||
%install
|
||||
#fonts
|
||||
install -d -m 0755 %{buildroot}%{_fontdir}
|
||||
install -m 0644 *.ttf %{buildroot}%{_fontdir}
|
||||
%fontinstall
|
||||
|
||||
#fontconfig
|
||||
install -d -m 0755 %{buildroot}%{_fontconfig_templatedir} \
|
||||
%{buildroot}%{_fontconfig_confdir}
|
||||
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
||||
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||
%check
|
||||
%fontcheck
|
||||
|
||||
# Add AppStream metadata
|
||||
install -Dm 0644 -p %{SOURCE2} \
|
||||
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
%fontfiles
|
||||
|
||||
%_font_pkg -f %{fontconf} *.ttf
|
||||
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
|
||||
%doc documentation/*
|
||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
|
||||
%changelog
|
||||
* Thu Mar 12 2020 Parag Nemade <pnemade AT redhat DOT com> - 1.200-18
|
||||
- Convert to new fonts packaging guidelines
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.200-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
|
||||
<component type="font">
|
||||
<id>sil-abyssinica</id>
|
||||
<metadata_license>CC-BY-3.0</metadata_license>
|
||||
<name>Abyssinica SIL</name>
|
||||
<summary>SIL Abyssinica fonts</summary>
|
||||
<description>
|
||||
<p>
|
||||
SIL Abyssinica is a Unicode typeface family containing glyphs for the
|
||||
Ethiopic script.
|
||||
</p>
|
||||
</description>
|
||||
<updatecontact>pnemade_at_redhat_dot_com</updatecontact>
|
||||
<url type="homepage">http://scripts.sil.org/AbyssinicaSIL</url>
|
||||
</component>
|
||||
|
@ -5,7 +5,7 @@
|
||||
- role: custom-test-fonts
|
||||
required_packages:
|
||||
- sil-abyssinica-fonts
|
||||
path_prefix: /usr/share/fonts/sil-abyssinica
|
||||
path_prefix: /usr/share/fonts/sil-abyssinica-fonts
|
||||
package: sil-abyssinica-fonts
|
||||
coverage:
|
||||
- en
|
||||
|
Loading…
Reference in New Issue
Block a user