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