diff --git a/lato-fonts-2.015.zip b/lato-fonts-2.015.zip new file mode 100644 index 0000000..ae17cd5 Binary files /dev/null and b/lato-fonts-2.015.zip differ diff --git a/lato-fonts-fontconfig.conf b/lato-fonts-fontconfig.conf new file mode 100644 index 0000000..89be306 --- /dev/null +++ b/lato-fonts-fontconfig.conf @@ -0,0 +1,24 @@ + + + + + + Lato + + + 12 + + + + sans-serif + + Lato + + + + Lato + + sans-serif + + + diff --git a/lato-fonts.spec b/lato-fonts.spec new file mode 100644 index 0000000..0f1c36c --- /dev/null +++ b/lato-fonts.spec @@ -0,0 +1,48 @@ +Name: lato-fonts +Version: 2.015 +Release: 8 +Summary: A sanserif typeface family +License: OFL +URL: http://www.latofonts.com/ +Source0: lato-fonts-2.015.zip +Source1: lato-fonts-fontconfig.conf +Source2: lato.metainfo.xml +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem +Provides: google-lato-fonts = 2.015-7 +Obsoletes: google-lato-fonts < 1.014-1 +%description +Lato is a sanserif typeface family. It consists of nine weights and covers +2300+ glyphs per style and supports 100+ Latin-based languages, 50+ +Cyrillic-based languages as well as Greek and IPA phonetics. + +%prep +%setup -q -c +sed "s/\r//" Lato2OFL/OFL.txt > Lato2OFL/OFL.txt.new +touch -r Lato2OFL/OFL.txt Lato2OFL/OFL.txt.new +mv Lato2OFL/OFL.txt.new Lato2OFL/OFL.txt +chmod 0644 Lato2OFL/{OFL.txt,README.txt} + +%build + +%install +install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir} +install -m 0644 -p Lato2OFL/*.ttf $RPM_BUILD_ROOT%{_fontdir} +install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_fontconfig_confdir} +install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/61-lato.conf +ln -s %{_fontconfig_templatedir}/61-lato.conf $RPM_BUILD_ROOT%{_fontconfig_confdir}/61-lato.conf +install -Dm 0644 -p %{SOURCE2} \ + %{buildroot}%{_datadir}/appdata/lato.metainfo.xml + +%_font_pkg -f 61-lato.conf *.ttf +%doc Lato2OFL/README.txt +%license Lato2OFL/OFL.txt +%{_datadir}/appdata/lato.metainfo.xml + +%changelog +* Wed Jan 15 2020 lihao - 2.015-8 +- Bump release number + +* Tue Nov 26 2019 openEuler Buildteam - 2.015-7 +- Package init diff --git a/lato.metainfo.xml b/lato.metainfo.xml new file mode 100644 index 0000000..8330f36 --- /dev/null +++ b/lato.metainfo.xml @@ -0,0 +1,23 @@ + + + + lato + CC0-1.0 + Lato + high-quality open-source font family + +

+ Lato is a sanserif type­face family designed in the Summer 2010 by + Warsaw-based designer Łukasz Dziedzic (“Lato” means “Sum­mer” in Polish). + In December 2010 the Lato family was published under the open-source Open + Font License by his foundry tyPoland, with support from Google. + + In 2013 – 2014, the family was greatly extended to cover 3000+ glyphs per + style. The Lato 2.010 family now supports 100+ Latin-based languages, + 50+ Cyrillic-based languages as well as Greek and IPA phonetics. + In the process, the metrics and kerning of the family have been revised + and four additional weights were created. +

+
+ http://www.latofonts.com/ +