Blame SPECS/lato-fonts.spec

49e0c7
%global fontname lato
49e0c7
%global fontconf 61-%{fontname}.conf
49e0c7
49e0c7
Name:           %{fontname}-fonts
49e0c7
Version:        2.015
49e0c7
Release:        5%{?dist}
49e0c7
Summary:        A sanserif typeface family
49e0c7
49e0c7
Group:          User Interface/X
49e0c7
License:        OFL
49e0c7
URL:            http://www.latofonts.com/
49e0c7
# Fonts retrieved 2015-08-07 from http://www.latofonts.com/download/Lato2OFL.zip
49e0c7
Source0:        %{name}-%{version}.zip
49e0c7
Source1:        %{name}-fontconfig.conf
49e0c7
Source2:        %{fontname}.metainfo.xml
49e0c7
49e0c7
BuildArch:      noarch
49e0c7
BuildRequires:  fontpackages-devel
49e0c7
Requires:       fontpackages-filesystem
49e0c7
Provides:       google-lato-fonts = %{version}-%{release}
49e0c7
Obsoletes:      google-lato-fonts < 1.014-1
49e0c7
49e0c7
%description
49e0c7
Lato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based
49e0c7
designer Łukasz Dziedzic ("Lato" means "Summer" in Polish). In December 2010 the
49e0c7
Lato family was published under the open-source Open Font License by his foundry
49e0c7
tyPoland, with support from Google.
49e0c7
49e0c7
When working on Lato, Łukasz tried to carefully balance some potentially
49e0c7
conflicting priorities. He wanted to create a typeface that would seem quite
49e0c7
"transparent" when used in body text but would display some original treats when
49e0c7
used in larger sizes. He used classical proportions (particularly visible in the
49e0c7
uppercase) to give the letterforms familiar harmony and elegance. At the same
49e0c7
time, he created a sleek sanserif look, which makes evident the fact that Lato
49e0c7
was designed in 2010 - even though it does not follow any current trend.
49e0c7
49e0c7
The semi-rounded details of the letters give Lato a feeling of warmth, while the
49e0c7
strong structure provides stability and seriousness. "Male and female, serious
49e0c7
but friendly. With the feeling of the Summer," says Łukasz.
49e0c7
49e0c7
Lato consists of nine weights (plus corresponding italics), including a
49e0c7
beautiful hairline style. It covers 2300+ glyphs per style and supports 100+
49e0c7
Latin-based languages, 50+ Cyrillic-based languages as well as Greek and IPA
49e0c7
phonetics.
49e0c7
49e0c7
49e0c7
%prep
49e0c7
%setup -q -c
49e0c7
49e0c7
# Fix wrong end-of-lines encoding
49e0c7
sed "s/\r//" Lato2OFL/OFL.txt > Lato2OFL/OFL.txt.new
49e0c7
touch -r Lato2OFL/OFL.txt Lato2OFL/OFL.txt.new
49e0c7
mv Lato2OFL/OFL.txt.new Lato2OFL/OFL.txt
49e0c7
49e0c7
# Fix permissions
49e0c7
chmod 0644 Lato2OFL/{OFL.txt,README.txt}
49e0c7
49e0c7
49e0c7
%build
49e0c7
49e0c7
49e0c7
%install
49e0c7
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
49e0c7
install -m 0644 -p Lato2OFL/*.ttf $RPM_BUILD_ROOT%{_fontdir}
49e0c7
49e0c7
install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_fontconfig_confdir}
49e0c7
49e0c7
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
49e0c7
ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
49e0c7
49e0c7
# Add AppStream metadata
49e0c7
install -Dm 0644 -p %{SOURCE2} \
49e0c7
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
49e0c7
49e0c7
%_font_pkg -f %{fontconf} *.ttf
49e0c7
%doc Lato2OFL/README.txt
49e0c7
%license Lato2OFL/OFL.txt
49e0c7
%{_datadir}/appdata/%{fontname}.metainfo.xml
49e0c7
49e0c7
49e0c7
%changelog
49e0c7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.015-5
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
49e0c7
49e0c7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.015-4
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
49e0c7
49e0c7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.015-3
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
49e0c7
49e0c7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.015-2
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
49e0c7
49e0c7
* Fri Aug 07 2015 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.015-1
49e0c7
- Update to 2.015
49e0c7
49e0c7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.010-3
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
49e0c7
49e0c7
* Wed Oct 15 2014 Richard Hughes <richard@hughsie.com> - 2.010-2
49e0c7
- Add a MetaInfo file for the software center; this is a font we want to show.
49e0c7
49e0c7
* Thu Sep 04 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.010-1
49e0c7
- Update to 2.010
49e0c7
49e0c7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.007-2
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
49e0c7
49e0c7
* Wed Apr 02 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.007-1
49e0c7
- Update to 2.007
49e0c7
49e0c7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.105-2
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
49e0c7
49e0c7
* Thu Jun 06 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.105-1
49e0c7
- Update to 1.105
49e0c7
49e0c7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.014-3
49e0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
49e0c7
49e0c7
* Sat Sep 29 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.014-2
49e0c7
- Drop useless Buildroot cleaning
49e0c7
49e0c7
* Sun Sep 23 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.014-1
49e0c7
- Initial release, to replace google-lato-fonts package