!6 update to 0.303.1
From: @zhang__3125 Reviewed-by: @dwl301 Signed-off-by: @dwl301
This commit is contained in:
commit
5f7678f6b9
25
31-cantarell-vf.conf
Normal file
25
31-cantarell-vf.conf
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig: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>
|
||||||
|
|
||||||
|
</fontconfig>
|
||||||
25
31-cantarell.conf
Normal file
25
31-cantarell.conf
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig: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>
|
||||||
|
|
||||||
|
</fontconfig>
|
||||||
@ -1,20 +1,21 @@
|
|||||||
%global fontname cantarell
|
%global fontname cantarell
|
||||||
%global fontconf 31-%{fontname}.conf
|
%global fontconf 31-%{fontname}.conf
|
||||||
|
%global fontconfvf 31-%{fontname}-vf.conf
|
||||||
|
|
||||||
Name: abattis-cantarell-fonts
|
Name: abattis-cantarell-fonts
|
||||||
Version: 0.301
|
Version: 0.303.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Humanist sans serif font
|
Summary: Humanist sans serif font
|
||||||
|
|
||||||
License: OFL
|
License: OFL
|
||||||
URL: https://git.gnome.org/browse/cantarell-fonts/
|
URL: https://git.gnome.org/browse/cantarell-fonts/
|
||||||
Source0: https://download.gnome.org/sources/cantarell-fonts/%{version}/cantarell-fonts-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/cantarell-fonts/%{version}/cantarell-fonts-%{version}.tar.xz
|
||||||
Source1: cantarell-fontconfig.conf
|
Source1: 31-cantarell.conf
|
||||||
|
Source2: 31-cantarell-vf.conf
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: fontpackages-devel gettext libappstream-glib-devel meson
|
BuildRequires: fontpackages-devel gettext libappstream-glib-devel meson
|
||||||
|
BuildRequires: fontconfig pkgconfig xz pkgconfig(appstream-glib)
|
||||||
Requires: fontpackages-filesystem
|
Requires: fontpackages-filesystem
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -27,29 +28,41 @@ The font was originally created by Dave Crossland in 2009.
|
|||||||
%autosetup -n cantarell-fonts-%{version}
|
%autosetup -n cantarell-fonts-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson
|
%meson \
|
||||||
|
-Dfontsdir=%{_fontconfig_confdir}/%{name} \
|
||||||
|
-Duseprebuilt=true
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
|
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
|
||||||
|
|
||||||
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/
|
||||||
|
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/
|
||||||
|
|
||||||
ln -s %{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
ln -s %{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||||
|
ln -s %{_fontconfig_templatedir}/%{fontconfvf} %{buildroot}%{_fontconfig_confdir}/%{fontconfvf}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
|
||||||
|
|
||||||
%_font_pkg -f %{fontconf} *.otf
|
|
||||||
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%{_fontconfig_confdir}/%{name}/*.otf
|
||||||
|
%{_fontconfig_confdir}/%{fontconf}
|
||||||
|
%{_fontconfig_confdir}/%{fontconfvf}
|
||||||
|
%{_fontconfig_templatedir}/%{fontconf}
|
||||||
|
%{_fontconfig_templatedir}/%{fontconfvf}
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc NEWS README.md
|
%doc NEWS README.md
|
||||||
%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
|
%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.303.1-1
|
||||||
|
- update to 0.303.1
|
||||||
|
|
||||||
* Wed Jan 27 2021 yanglu <yanglu60@huawei.com> - 0.301-1
|
* Wed Jan 27 2021 yanglu <yanglu60@huawei.com> - 0.301-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
|
||||||
<!--
|
|
||||||
|
|
||||||
Define aliasing and other fontconfig settings for Cantarell.
|
|
||||||
|
|
||||||
-->
|
|
||||||
<fontconfig>
|
|
||||||
<!-- Generic name assignment -->
|
|
||||||
<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>
|
|
||||||
Binary file not shown.
BIN
cantarell-fonts-0.303.1.tar.xz
Normal file
BIN
cantarell-fonts-0.303.1.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user