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
|
Version: 1.200
|
||||||
Release: 17%{?dist}
|
Release: 18%{?dist}
|
||||||
Summary: SIL Abyssinica fonts
|
|
||||||
|
|
||||||
License: OFL
|
%global foundry SIL
|
||||||
URL: http://scripts.sil.org/AbyssinicaSIL
|
%global fontlicense OFL
|
||||||
# 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
|
%global fontlicenses OFL.txt
|
||||||
Source0: %{archive_name}%{version}.zip
|
%global fontdocs *.txt documentation/*.txt
|
||||||
Source1: %{fontconf}
|
%global fontdocsex %{fontlicenses}
|
||||||
Source2: %{fontname}.metainfo.xml
|
|
||||||
|
|
||||||
BuildArch: noarch
|
%global fontfamily Abyssinica SIL
|
||||||
Requires: fontpackages-filesystem
|
%global fontsummary SIL Abyssinica fonts
|
||||||
BuildRequires: fontpackages-devel
|
%global projectname AbyssinicaSIL
|
||||||
BuildRequires: dos2unix
|
%global archivename %{lua:t=string.gsub(rpm.expand("%{fontfamily}"), "[%p%s]+", ""); print(t)}%{version}
|
||||||
|
URL: https://software.sil.org/%{projectname}/
|
||||||
|
%global fonts *.ttf
|
||||||
%description
|
%global fontconfs %{SOURCE1}
|
||||||
|
%global fontdescription %{expand:
|
||||||
SIL Abyssinica is a Unicode typeface family containing glyphs for the
|
SIL Abyssinica is a Unicode typeface family containing glyphs for the
|
||||||
Ethiopic script.
|
Ethiopic script.
|
||||||
|
|
||||||
@ -32,39 +26,35 @@ non-Unicode characters in the Private Use Area (see Private-use (PUA)
|
|||||||
characters supported by Abyssinica SIL).
|
characters supported by Abyssinica SIL).
|
||||||
|
|
||||||
Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is
|
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
|
%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
|
%build
|
||||||
dos2unix FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt documentation/DOCUMENTATION.txt
|
%fontbuild
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#fonts
|
%fontinstall
|
||||||
install -d -m 0755 %{buildroot}%{_fontdir}
|
|
||||||
install -m 0644 *.ttf %{buildroot}%{_fontdir}
|
|
||||||
|
|
||||||
#fontconfig
|
%check
|
||||||
install -d -m 0755 %{buildroot}%{_fontconfig_templatedir} \
|
%fontcheck
|
||||||
%{buildroot}%{_fontconfig_confdir}
|
|
||||||
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
|
||||||
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
|
||||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
|
||||||
|
|
||||||
# Add AppStream metadata
|
%fontfiles
|
||||||
install -Dm 0644 -p %{SOURCE2} \
|
|
||||||
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
||||||
|
|
||||||
%_font_pkg -f %{fontconf} *.ttf
|
|
||||||
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
|
|
||||||
%doc documentation/*
|
|
||||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.200-17
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- 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
|
- role: custom-test-fonts
|
||||||
required_packages:
|
required_packages:
|
||||||
- sil-abyssinica-fonts
|
- sil-abyssinica-fonts
|
||||||
path_prefix: /usr/share/fonts/sil-abyssinica
|
path_prefix: /usr/share/fonts/sil-abyssinica-fonts
|
||||||
package: sil-abyssinica-fonts
|
package: sil-abyssinica-fonts
|
||||||
coverage:
|
coverage:
|
||||||
- en
|
- en
|
||||||
|
Loading…
Reference in New Issue
Block a user