caefd8
%global fontname google-droid
caefd8
%global archivename %{name}-%{version}
caefd8
caefd8
%global common_desc \
caefd8
The Droid typeface family was designed in the fall of 2006 by Ascender's \
caefd8
Steve Matteson, as a commission from Google to create a set of system fonts \
caefd8
for its Android platform. The goal was to provide optimal quality and comfort \
caefd8
on a mobile handset when rendered in application menus, web browsers and for \
caefd8
other screen text. \
caefd8
The family was later extended in collaboration with other designers such as \
caefd8
Pascal Zoghbi of 29ArabicLetters.
caefd8
caefd8
Name:    %{fontname}-fonts
caefd8
# No sane versionning upstream, use git clone timestamp
caefd8
Version: 20120715
caefd8
Release: 13%{?dist}
caefd8
Summary: General-purpose fonts released by Google as part of Android
caefd8
caefd8
License:   ASL 2.0
caefd8
URL:       https://android.googlesource.com/
caefd8
Source0:   %{archivename}.tar.xz
caefd8
#Brutal script used to pull sources from upstream git
caefd8
Source1:   getdroid.sh
caefd8
Source10:  %{name}-sans-fontconfig.conf
caefd8
Source11:  %{name}-sans-mono-fontconfig.conf
caefd8
Source12:  %{name}-serif-fontconfig.conf
caefd8
Source13:  %{name}-kufi-fontconfig.conf
caefd8
Source14:  %{fontname}-sans.metainfo.xml
caefd8
Source15:  %{fontname}-sans-mono.metainfo.xml
caefd8
Source16:  %{fontname}-serif.metainfo.xml
caefd8
Source17:  %{fontname}-kufi.metainfo.xml
caefd8
caefd8
BuildArch:     noarch
caefd8
BuildRequires: fontpackages-devel
caefd8
caefd8
%description
caefd8
%common_desc
caefd8
caefd8
caefd8
%package -n %{fontname}-sans-fonts
caefd8
Summary:   A humanist sans serif typeface
caefd8
Requires:  fontpackages-filesystem
caefd8
Obsoletes: %{name}-common <= 20090906-5.fc12
caefd8
caefd8
%description -n %{fontname}-sans-fonts
caefd8
%common_desc
caefd8
caefd8
Droid Sans is a humanist sans serif typeface designed for user interfaces and
caefd8
electronic communication.
caefd8
caefd8
%_font_pkg -n sans -f ??-%{fontname}-sans.conf DroidSans*ttf
caefd8
%exclude %{_fontdir}/DroidSansMono*ttf
caefd8
%doc README.txt NOTICE
caefd8
%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
caefd8
caefd8
%package -n %{fontname}-sans-mono-fonts
caefd8
Summary:  A humanist monospace sans serif typeface
caefd8
Requires: fontpackages-filesystem
caefd8
caefd8
%description -n %{fontname}-sans-mono-fonts
caefd8
%common_desc
caefd8
caefd8
Droid Sans Mono is a humanist monospace sans serif typeface designed for user
caefd8
interfaces and electronic communication.
caefd8
caefd8
%_font_pkg -n sans-mono -f ??-%{fontname}-sans-mono.conf DroidSansMono.ttf
caefd8
%doc README.txt NOTICE
caefd8
%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
caefd8
caefd8
%package -n %{fontname}-serif-fonts
caefd8
Summary:  A contemporary serif typeface
caefd8
Requires: fontpackages-filesystem
caefd8
Provides: %{fontname}-naskh-fonts = %{version}-%{release}
caefd8
caefd8
%description -n %{fontname}-serif-fonts
caefd8
%common_desc
caefd8
caefd8
Droid Serif is a contemporary serif typeface family designed for comfortable
caefd8
reading on screen. Droid Serif is slightly condensed to maximize the amount of
caefd8
text displayed on small screens. Vertical stress and open forms contribute to
caefd8
its readability while its proportion and overall design complement its
caefd8
companion Droid Sans.
caefd8
The Arabic block was designed by Pascal Zoghbi of 29ArabicLetters under the
caefd8
Droid Naskh name.
caefd8
caefd8
%_font_pkg -n serif -f ??-%{fontname}-serif.conf DroidSerif*ttf DroidNaskh*ttf
caefd8
%doc README.txt NOTICE
caefd8
%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
caefd8
caefd8
%package -n %{fontname}-kufi-fonts
caefd8
Summary:  A kufi Arabic titling typeface designed to complement Droid Sans
caefd8
Requires: fontpackages-filesystem
caefd8
Requires: %{fontname}-kufi-fonts
caefd8
caefd8
%description -n %{fontname}-kufi-fonts
caefd8
%common_desc
caefd8
caefd8
Droid Kufi is a stylized display font suitable for titles and short runs of
caefd8
text, and designed to complement Droid Sans. It was initialy designed by
caefd8
Steve Matteson of Ascender with consulting by Pascal Zoghbi of 29ArabicLetters
caefd8
to finalize the font family.
caefd8
caefd8
%_font_pkg -n kufi -f ??-%{fontname}-kufi.conf DroidKufi*ttf
caefd8
%{_datadir}/appdata/%{fontname}-kufi.metainfo.xml
caefd8
caefd8
%prep
caefd8
%setup -q -n %{archivename}
caefd8
caefd8
caefd8
%build
caefd8
caefd8
caefd8
%install
caefd8
install -m 0755 -d %{buildroot}%{_fontdir}
caefd8
caefd8
install -m 0644 -p $(ls *ttf | grep -v DroidSansFallbackFull\
caefd8
                             | grep -v DroidSansFallbackLegacy\
caefd8
                             | grep -v DroidNaskh-Regular-SystemUI) \
caefd8
                    %{buildroot}%{_fontdir}
caefd8
caefd8
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
caefd8
                   %{buildroot}%{_fontconfig_confdir}
caefd8
caefd8
install -m 0644 -p %{SOURCE10} \
caefd8
        %{buildroot}%{_fontconfig_templatedir}/65-%{fontname}-sans.conf
caefd8
install -m 0644 -p %{SOURCE11} \
caefd8
        %{buildroot}%{_fontconfig_templatedir}/60-%{fontname}-sans-mono.conf
caefd8
install -m 0644 -p %{SOURCE12} \
caefd8
        %{buildroot}%{_fontconfig_templatedir}/65-%{fontname}-serif.conf
caefd8
install -m 0644 -p %{SOURCE13} \
caefd8
        %{buildroot}%{_fontconfig_templatedir}/65-%{fontname}-kufi.conf
caefd8
caefd8
for fontconf in 65-%{fontname}-sans.conf \
caefd8
                60-%{fontname}-sans-mono.conf \
caefd8
                65-%{fontname}-serif.conf \
caefd8
                65-%{fontname}-kufi.conf ; do
caefd8
  ln -s %{_fontconfig_templatedir}/$fontconf \
caefd8
        %{buildroot}%{_fontconfig_confdir}/$fontconf
caefd8
done
caefd8
caefd8
# Add AppStream metadata
caefd8
install -Dm 0644 -p %{SOURCE14} \
caefd8
        %{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
caefd8
install -Dm 0644 -p %{SOURCE15} \
caefd8
        %{buildroot}%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
caefd8
install -Dm 0644 -p %{SOURCE16} \
caefd8
        %{buildroot}%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
caefd8
install -Dm 0644 -p %{SOURCE17} \
caefd8
        %{buildroot}%{_datadir}/appdata/%{fontname}-kufi.metainfo.xml
caefd8
caefd8
%changelog
caefd8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20120715-13
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
caefd8
caefd8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20120715-12
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
caefd8
caefd8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20120715-11
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
caefd8
caefd8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20120715-10
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
caefd8
caefd8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-9
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
caefd8
caefd8
* Sat Nov 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 20120715-8
caefd8
- Add metainfo file to show this font in gnome-software
caefd8
- Remove %%clean section which is optional now
caefd8
- Remove removal of buildroot in %%install
caefd8
- Remove group tag
caefd8
caefd8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-7
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
caefd8
caefd8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-6
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
caefd8
caefd8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-5
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
caefd8
caefd8
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-4
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
caefd8
caefd8
* Mon Jul 16 2012 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20120715-3
caefd8
— Split Kufi in a separate subpackage and resurect DroidSansArabic for Sans
caefd8
caefd8
* Sun Jul 15 2012 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20120715-1
caefd8
— Switch to new upstream git source (marginally less hopeless than the Google
caefd8
  Font Directory)
caefd8
— Remove Arabic, add Armenian, Devanagari, Ethiopic, Georgian, Tamil, Kufi to Sans
caefd8
– Add Naskh to Serif
caefd8
– Try to adapt fontconfig rules to new upstream rules and new fonts
caefd8
caefd8
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
caefd8
- 20100409-3
caefd8
– Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
caefd8
caefd8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
caefd8
- 20100409-2
caefd8
– Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
caefd8
caefd8
* Sun Jul 25 2010 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20100409-1
caefd8
— Update to upstream's latest data dump
caefd8
— Add Arabic, Hebrew, Thai coverage to Sans
caefd8
caefd8
* Mon Sep 28 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20090906-5
caefd8
— Tweak the fontconfig fixing
caefd8
caefd8
* Sun Sep 13 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20090906-4
caefd8
— follow the fontpackages template more closely
caefd8
- 20090906-3
caefd8
— more Behdad-suggested fontconfig tweaks
caefd8
caefd8
* Mon Sep  7 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20090906-2
caefd8
— first-level CJK fixes (as suggested by Behdad in bug #517789, complete fix
caefd8
   needs the rpm changes traced in bug #521697)
caefd8
caefd8
* Sun Sep  6 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20090906-1
caefd8
— upstream stealth update
caefd8
caefd8
* Sat Jul 25 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 20090320-3
caefd8
— try to fit Japanese in
caefd8
caefd8
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
caefd8
- 1.0.112-7
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
caefd8
caefd8
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.112-6
caefd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
caefd8
caefd8
* Mon Feb 16 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 1.0.112-5
caefd8
— prepare for F11 mass rebuild, new rpm and new fontpackages
caefd8
caefd8
* Sat Jan 31 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 1.0.112-4
caefd8
⬨ fix-up fontconfig installation for sans and mono
caefd8
caefd8
* Fri Jan 16 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 1.0.112-3
caefd8
⁉ Workaround RHEL5 rpmbuild UTF-8 handling bug
caefd8
- 1.0.112-2
caefd8
⁍ Convert to new naming guidelines
caefd8
⁍ Do strange stuff with Sans Fallback (CJK users please check)
caefd8
caefd8
* Tue Dec  9 2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 1.0.112-1
caefd8
փ Licensing bit clarified in bug #472635
caefd8
շ Fedora submission
caefd8
caefd8
* Sun Nov 23 2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
caefd8
- 1.0.107-1
caefd8
Ϫ Initial built using “fontpackages”
caefd8