import abattis-cantarell-fonts-0.0.25-6.el8

This commit is contained in:
CentOS Sources 2021-05-18 02:57:25 -04:00 committed by Andrew Lukoshko
parent dccc7b4e7d
commit c8982b15d9
2 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!--
Define aliasing and other fontconfig settings for Cantarell.
-->
<fontconfig>
<!-- Font substitution -->
<alias binding="same">
<family>system-ui</family>
<accept>
<family>Cantarell</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>Cantarell</family>
<default>
<family>system-ui</family>
</default>
</alias>
<match target="pattern">
<test qual="any" name="family">
<string>Cantarell</string>
</test>
<edit name="family" mode="assign" binding="weak">
<string>Cantarell</string>
</edit>
</match>
</fontconfig>

View File

@ -8,7 +8,7 @@
Name: %{fontname}-fonts
Version: 0.0.25
Release: 4%{?dist}
Release: 6%{?dist}
Summary: Cantarell, a Humanist sans-serif font family
Group: User Interface/X
@ -16,6 +16,7 @@ License: OFL
URL: https://git.gnome.org/browse/cantarell-fonts/
Source0: http://download.gnome.org/sources/%{actualname}-fonts/0.0/%{actualname}-fonts-%{version}.tar.xz
Source1: %{fontname}.metainfo.xml
Source2: cantarell-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
@ -40,7 +41,7 @@ install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p otf/*.otf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p fontconfig/%{fontconf} \
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
@ -55,6 +56,11 @@ install -Dm 0644 -p %{SOURCE1} \
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
* Wed Dec 23 2020 Akira TAGOH <tagoh@redhat.com> - 0.0.25-6
- Backport fontconfig config file from Fedora.
- Add System UI generic family alias
Resolves: rhbz#1865788
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.25-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild