diff --git a/open-sans-fonts-1.10.zip b/open-sans-fonts-1.10.zip new file mode 100644 index 0000000..0e15583 Binary files /dev/null and b/open-sans-fonts-1.10.zip differ diff --git a/open-sans-fonts-fontconfig.conf b/open-sans-fonts-fontconfig.conf new file mode 100644 index 0000000..7a40a6f --- /dev/null +++ b/open-sans-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + Open Sans + + + + Open Sans + + sans-serif + + + diff --git a/open-sans-fonts.spec b/open-sans-fonts.spec new file mode 100644 index 0000000..96206b2 --- /dev/null +++ b/open-sans-fonts.spec @@ -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 - 1.10-10 +- Type:enhancement +- Id:NA +- SUG:NA +- DESC:modify the spec