diff --git a/66-sil-abyssinica.conf b/66-sil-abyssinica-fonts.conf similarity index 100% rename from 66-sil-abyssinica.conf rename to 66-sil-abyssinica-fonts.conf diff --git a/sil-abyssinica-fonts.spec b/sil-abyssinica-fonts.spec index 80b97c2..97fb6f3 100644 --- a/sil-abyssinica-fonts.spec +++ b/sil-abyssinica-fonts.spec @@ -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 - 1.200-18 +- Convert to new fonts packaging guidelines + * Thu Jan 30 2020 Fedora Release Engineering - 1.200-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sil-abyssinica.metainfo.xml b/sil-abyssinica.metainfo.xml deleted file mode 100644 index afb0ea8..0000000 --- a/sil-abyssinica.metainfo.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - sil-abyssinica - CC-BY-3.0 - Abyssinica SIL - SIL Abyssinica fonts - -

- SIL Abyssinica is a Unicode typeface family containing glyphs for the - Ethiopic script. -

-
- pnemade_at_redhat_dot_com - http://scripts.sil.org/AbyssinicaSIL -
- diff --git a/tests/tests.yml b/tests/tests.yml index 6572a95..fcf59b6 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -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