Compare commits
10 Commits
4e62263f91
...
20156b0ebf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20156b0ebf | ||
|
|
423b6155c8 | ||
|
|
1ddb6afb9d | ||
|
|
40a37689e2 | ||
|
|
c85eb7670f | ||
|
|
1b0343a4fc | ||
|
|
57b6bb81d2 | ||
|
|
4fb1f7c000 | ||
|
|
6f749bf1ad | ||
|
|
b9f8739ea9 |
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,19 +1,22 @@
|
|||||||
%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.111
|
Version: 0.303.1
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Humanist sans serif font
|
Summary: Humanist sans serif font
|
||||||
|
|
||||||
License: OFL
|
License: Apache-2.0 and OFL-1.1
|
||||||
URL: https://git.gnome.org/browse/cantarell-fonts/
|
URL: https://git.gnome.org/browse/cantarell-fonts/
|
||||||
Source0: https://download.gnome.org/sources/cantarell-fonts/0.111/cantarell-fonts-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/cantarell-fonts/0.303/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
|
||||||
|
|
||||||
@ -27,29 +30,56 @@ 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=%{_fontbasedir}/%{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
|
||||||
|
%{_fontbasedir}/%{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
|
||||||
|
* Sat Oct 22 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 0.303.1-1
|
||||||
|
- update to 0.303.1
|
||||||
|
|
||||||
|
* Wed May 11 2022 liuyumeng <liuyumeng5@h-partners.com> - 0.301-2
|
||||||
|
- fix license error
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 yanglu <yanglu60@huawei.com> - 0.301-1
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:version update
|
||||||
|
|
||||||
|
* Mon Jul 20 2020 wangye <wangye70@huawei.com> - 0.201-1
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:version update
|
||||||
|
|
||||||
* Mon Sep 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.4-15
|
* Mon Sep 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.4-15
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: git
|
version_control: gitlab.gnome
|
||||||
src_repo: https://gitlab.gnome.org/GNOME/cantarell-fonts.git
|
src_repo: cantarell-fonts
|
||||||
tag_prefix: ^v
|
tag_prefix: "^v"
|
||||||
seperator: .
|
seperator: "."
|
||||||
|
|||||||
@ -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