9f7d566
# SPDX-License-Identifier: MIT
c0c2e62
Version: 5.000
9ac0ec1
Release: 17%{?dist}
9f7d566
9f7d566
%global foundry           SIL
9f7d566
%global fontlicense       OFL
9f7d566
%global fontlicenses      OFL.txt
9f7d566
%global fontdocs          *.txt
9f7d566
%global fontdocsex        %{fontlicenses}
9f7d566
9f7d566
%global fontfamily        Charis SIL
9f7d566
%global fontsummary       Charis SIL, a font family similar to Bitstream Charter
9f7d566
%global projectname       %{lua:t=string.gsub(rpm.expand("%{fontfamily}"), " SIL$", ""); t=string.gsub(t, "[%p%s]+", ""); print(string.lower(t))}
9f7d566
%global archivename       %{lua:t=string.gsub(rpm.expand("%{fontfamily}"), "[%p%s]+", ""); print(t)}-%{version}
9f7d566
URL:                      https://software.sil.org/%{projectname}/
9f7d566
%global fonts             *.ttf
9f7d566
%global fontconfngs       %{SOURCE10}
9f7d566
%global fontdescription   %{expand:
ace5eb0
Charis SIL provides glyphs for a wide range of Latin and Cyrillic characters.
ace5eb0
Charis is similar to Bitstream Charter, one of the first fonts designed
ace5eb0
specifically for laser printers. It is highly readable and holds up well in
ace5eb0
less-than-ideal reproduction environments. It also has a full set of styles
ace5eb0
— regular, italic, bold, bold italic — and so is more useful in general
ace5eb0
publishing than Doulos SIL. Charis is a serif proportionally spaced font
9f7d566
optimized for readability in long printed documents.}
ace5eb0
13aec84
%fontmeta
13aec84
13aec84
%global source_files %{expand:
9f7d566
Source0:  https://software.sil.org/downloads/r/%{projectname}/%{archivename}.zip
9f7d566
Source10: 60-%{fontpkgname}.xml
13aec84
}
ace5eb0
9f7d566
%fontpkg
ace5eb0
9f7d566
%prep
9f7d566
%setup -q -n %{archivename}
9f7d566
%linuxtext *.txt
ace5eb0
ace5eb0
%build
9f7d566
%fontbuild
ace5eb0
ace5eb0
%install
9f7d566
%fontinstall
ace5eb0
9f7d566
%check
9f7d566
%fontcheck
ace5eb0
9f7d566
%fontfiles
ace5eb0
ace5eb0
%changelog
9ac0ec1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org>
9ac0ec1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9ac0ec1
48f26a0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org>
48f26a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
48f26a0
13aec84
* Mon Apr 27 2020 Nicolas Mailhot <nim@fedoraproject.org>
13aec84
- 5.000-15
13aec84
🐞 Workaround Fedora problems created by rpm commit 93604e2
13aec84
a6e21fc
* Thu Apr 02 2020 Nicolas Mailhot <nim@fedoraproject.org>
b3f286b
- 5.000-14
b3f286b
💥 Actually rebuild with fonts-rpm-macros 2.0.4 to make sure fontconfig files are
b3f286b
  valid
b3f286b
b3f286b
* Thu Apr 02 2020 Nicolas Mailhot <nim@fedoraproject.org>
a6e21fc
- 5.000-13
a6e21fc
👻 Rebuild with fonts-rpm-macros 2.0.4 to make sure fontconfig files are valid
a6e21fc
e69afeb
* Sat Feb 22 2020 Nicolas Mailhot <nim@fedoraproject.org>
e69afeb
- 5.000-12
e69afeb
✅ Rebuild with fonts-rpm-macros 2.0.2
e69afeb
9f7d566
* Sat Feb 15 2020 Nicolas Mailhot <nim@fedoraproject.org>
9f7d566
- 5.000-11
9f7d566
✅ Convert to fonts-rpm-macros use
ace5eb0
9f7d566
* Sat Feb 18 2006 Roozbeh Pournader <roozbeh@farsiweb.info>
9f7d566
- 4.0.02-1
9f7d566
✅ Initial packaging, based on gentium-fonts