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