%global fontname google-lato %global fontconf 61-%{fontname}.conf %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail %global archivename LatoOFL Name: %{fontname}-fonts Version: 1.104 Release: 1 Summary: A sanserif typeface family Group: User Interface/X License: OFL URL: http://code.google.com/webfonts/family?family=Lato Source0: %{archivename}.zip Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: unzip Requires: fontconfig %description Lato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Łukasz Dziedzic ("Lato" means "Summer" 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. When working on Lato, Łukasz tried to carefully balance some potentially conflicting priorities. He wanted to create a typeface that would seem quite "transparent" when used in body text but would display some original treats when used in larger sizes. He used classical proportions (particularly visible in the uppercase) to give the letterforms familiar harmony and elegance. At the same time, he created a sleek sanserif look, which makes evident the fact that Lato was designed in 2010 - even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness. "Male and female, serious but friendly. With the feeling of the Summer," says Łukasz. Lato consists of five weights (plus corresponding italics), including a beautiful hairline style. The first release only includes the Western character set, but pan-European Latin, Cyrillic and Greek extensions, as well as small caps and other typographic niceties are expected in 2011. %prep %setup -q -c -T unzip -j -L -q %{SOURCE0} # Fix wrong end-of-lines encoding sed "s/\r//" OFL.txt > OFL.txt.new touch -r OFL.txt OFL.txt.new mv OFL.txt.new OFL.txt %build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} chmod 0755 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} cp *.ttf ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/ chmod 0644 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/* mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_confdir} mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_templatedir} cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/%{fontconf}.conf ln -sf %{_fontconfig_templatedir}/%{fontconf}.conf ${RPM_BUILD_ROOT}%{_fontconfig_confdir}/%{fontconf}.conf %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc *.txt %{_fontconfig_confdir}/%{fontconf}.conf %{_fontconfig_templatedir}/%{fontconf}.conf %dir %{_fontdir}/%{fontname} %{_fontdir}/%{fontname}/*.ttf %changelog * Mon Jun 25 2012 Michael Perzl - 1.104-1 - first version for AIX V5.1 and higher