Blame SPECS/google-crosextra-carlito-fonts.spec

b5efc0
%global fontname google-crosextra-carlito
b5efc0
%global fontconf62 62-%{fontname}
b5efc0
%global fontconf30 30-0-%{fontname}
b5efc0
b5efc0
%global archivename crosextrafonts-carlito-20130920
b5efc0
b5efc0
Name:           %{fontname}-fonts
b5efc0
Version:        1.103
b5efc0
Release:        0.8.20130920%{?dist}
b5efc0
Summary:        Sans-serif font metric-compatible with Calibri font
b5efc0
b5efc0
License:        OFL
b5efc0
URL:            http://code.google.com/p/chromium/issues/detail?id=280557
b5efc0
Source0:        http://gsdview.appspot.com/chromeos-localmirror/distfiles/%{archivename}.tar.gz
b5efc0
Source1:        30-0-%{fontname}-fontconfig.conf
b5efc0
Source2:        62-%{fontname}-fontconfig.conf
b5efc0
Source3:        %{fontname}.metainfo.xml
b5efc0
b5efc0
BuildArch:      noarch
b5efc0
BuildRequires:  fontpackages-devel
b5efc0
Requires:       fontpackages-filesystem
b5efc0
b5efc0
%description
b5efc0
Carlito is metric-compatible with Calibri font. Carlito comes in regular, bold,
b5efc0
italic, and bold italic. The family covers Latin-Greek-Cyrillic (not a 
b5efc0
complete set, though) with about 2,000 glyphs. It has the same character 
b5efc0
coverage as Calibri. This font is sans-serif typeface family based on Lato.
b5efc0
b5efc0
%prep
b5efc0
%setup -q -n %{archivename}
b5efc0
b5efc0
b5efc0
%build
b5efc0
b5efc0
b5efc0
%install
b5efc0
install -m 0755 -d %{buildroot}%{_fontdir}
b5efc0
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
b5efc0
b5efc0
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
b5efc0
                   %{buildroot}%{_fontconfig_confdir}
b5efc0
b5efc0
install -m 0644 -p %{SOURCE1} \
b5efc0
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf
b5efc0
install -m 0644 -p %{SOURCE2} \
b5efc0
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf
b5efc0
b5efc0
ln -s %{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf \
b5efc0
      %{buildroot}%{_fontconfig_confdir}/%{fontconf30}-fontconfig.conf
b5efc0
ln -s %{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf \
b5efc0
      %{buildroot}%{_fontconfig_confdir}/%{fontconf62}-fontconfig.conf
b5efc0
b5efc0
# Add AppStream metadata
b5efc0
install -Dm 0644 -p %{SOURCE3} \
b5efc0
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
b5efc0
b5efc0
%_font_pkg -f *-%{fontname}-fontconfig.conf *.ttf
b5efc0
%doc LICENSE
b5efc0
%{_datadir}/appdata/%{fontname}.metainfo.xml
b5efc0
b5efc0
b5efc0
%changelog
b5efc0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.103-0.8.20130920
b5efc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b5efc0
b5efc0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.103-0.7.20130920
b5efc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b5efc0
b5efc0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.103-0.6.20130920
b5efc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b5efc0
b5efc0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.103-0.5.20130920
b5efc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b5efc0
b5efc0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.103-0.4.20130920
b5efc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b5efc0
b5efc0
* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.103-0.3.20130920
b5efc0
- Add metainfo file to show this font in gnome-software
b5efc0
b5efc0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.103-0.2.20130920
b5efc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b5efc0
b5efc0
* Thu Oct 10 2013 Parag Nemade <pnemade AT redhat DOT com> - 1.103-0.1.20130920
b5efc0
- Initial Fedora release.
b5efc0