open-sans-fonts/open-sans-fonts.spec

44 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-29 12:53:07 +08:00
%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