Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
20156b0ebf
!16 update to 0.303.1
From: @zhouwenpei 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-11-08 02:14:41 +00:00
zhouwenpei
423b6155c8 update to 0.303.1 2022-11-05 02:22:28 +00:00
openeuler-ci-bot
1ddb6afb9d
!10 [sync] PR-8: fix license error
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-05-16 12:08:34 +00:00
liuyumeng
40a37689e2 fix license error
(cherry picked from commit 514faba8f3ec2ae2cb424d1b3fe8418e9e3de371)
2022-05-13 11:44:52 +08:00
openeuler-ci-bot
c85eb7670f !5 Version upgrade to abattis-cantarell-fonts-0.301
From: @yangl777
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-02-03 11:14:05 +08:00
jinzhimin369
1b0343a4fc update to 0.301 2021-02-01 10:33:43 +08:00
openeuler-ci-bot
57b6bb81d2 !2 version update
Merge pull request !2 from yeah_wang/master
2020-07-23 20:46:43 +08:00
19909236985
4fb1f7c000 version update 2020-07-23 15:45:50 +08:00
openeuler-ci-bot
6f749bf1ad !1 add yaml file in package
Merge pull request !1 from 桐小哥/master
2020-07-21 11:56:44 +08:00
sxt1001
b9f8739ea9 update yaml file 2020-07-01 09:22:09 +08:00
7 changed files with 93 additions and 31 deletions

25
31-cantarell-vf.conf Normal file
View 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
View 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>

View File

@ -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

View File

@ -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: "."

View File

@ -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.

Binary file not shown.