Merge pull request !1 from compile_success/master
This commit is contained in:
openeuler-ci-bot 2020-02-29 12:59:38 +08:00 committed by Gitee
commit ebec94f3e2
3 changed files with 59 additions and 0 deletions

BIN
open-sans-fonts-1.10.zip Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Open Sans</family>
</prefer>
</alias>
<alias>
<family>Open Sans</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

43
open-sans-fonts.spec Normal file
View File

@ -0,0 +1,43 @@
%global fontname open-sans
Name: %{fontname}-fonts
Version: 1.10
Release: 11
Summary: A humanist sans-serif typeface
License: ASL 2.0
URL: http://www.google.com/fonts/specimen/Open+Sans
Source0: https://fonts.google.com/download?family=Open%20Sans/open-sans-fonts-1.10.zip
Source1: open-sans-fonts-fontconfig.conf
Requires: fontpackages-filesystem
BuildArch: noarch
BuildRequires: ttembed fontpackages-devel
%description
This package provides a humanist sans-serif typeface.It is designed by Steve
Matteson.This typeface is very legible on screen and at small sizes.It is popular
in flat design-style web design.
%prep
%autosetup -c -n open-sans-fonts-1.10
%build
ls *.ttf | xargs ttembed
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/60-open-sans.conf
ln -s %{_fontconfig_templatedir}/60-open-sans.conf %{buildroot}%{_fontconfig_confdir}/60-open-sans.conf
%_font_pkg -f 60-open-sans.conf *.ttf
%doc LICENSE.txt
%changelog
* Wed Nov 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10-10
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the spec