bd6121c
%global fontname google-droid
6443f2a
eeb5231
%global download_root http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/
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 \
6443f2a
other screen text.
6443f2a
6443f2a
Name:    %{fontname}-fonts
e917e60
# No sane versionning upstream, use the date we did a git dump
e917e60
Version: 20090906
e917e60
Release: 1%{?dist}
6443f2a
Summary: General-purpose fonts released by Google as part of Android
6443f2a
6443f2a
Group:     User Interface/X
6443f2a
License:   ASL 2.0
6443f2a
URL:       http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts
eeb5231
Source1:   %{download_root}DroidSans.ttf
eeb5231
Source2:   %{download_root}DroidSans-Bold.ttf
eeb5231
Source3:   %{download_root}DroidSansJapanese.ttf
eeb5231
Source4:   %{download_root}DroidSansFallback.ttf
eeb5231
Source5:   %{download_root}DroidSansMono.ttf
eeb5231
Source6:   %{download_root}DroidSerif-Regular.ttf
eeb5231
Source7:   %{download_root}DroidSerif-Bold.ttf
eeb5231
Source8:   %{download_root}DroidSerif-Italic.ttf
eeb5231
Source9:   %{download_root}DroidSerif-BoldItalic.ttf
eeb5231
Source20:  %{download_root}NOTICE
eeb5231
Source21:  %{download_root}README.txt
eeb5231
Source31:  %{name}-sans-fontconfig.conf
eeb5231
Source32:  %{name}-sans-mono-fontconfig.conf
eeb5231
Source33:  %{name}-serif-fontconfig.conf
6443f2a
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
6443f2a
6443f2a
BuildArch:     noarch
6443f2a
BuildRequires: fontpackages-devel
6443f2a
6443f2a
%description
6443f2a
%common_desc
6443f2a
6443f2a
6443f2a
%package common
6443f2a
Summary:  Common files of the Droid font set
6443f2a
Requires: fontpackages-filesystem
6443f2a
6443f2a
%description common
6443f2a
%common_desc
6443f2a
6443f2a
This package consists of files used by other %{name} packages.
6443f2a
6443f2a
%package -n %{fontname}-sans-fonts
6443f2a
Summary:  A humanist sans serif typeface
6443f2a
Requires: %{name}-common = %{version}-%{release}
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
eeb5231
%_font_pkg -n sans -f ??-%{fontname}-sans.conf DroidSans.ttf DroidSans-Bold.ttf DroidSansJapanese.ttf DroidSansFallback.ttf
6443f2a
6443f2a
6443f2a
%package -n %{fontname}-sans-mono-fonts
6443f2a
Summary:  A humanist monospace sans serif typeface
6443f2a
Requires: %{name}-common = %{version}-%{release}
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
6443f2a
6443f2a
6443f2a
%package -n %{fontname}-serif-fonts
6443f2a
Summary:  A serif typeface
6443f2a
Requires: %{name}-common = %{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.
6443f2a
6443f2a
%_font_pkg -n serif -f ??-%{fontname}-serif.conf DroidSerif*ttf
6443f2a
6443f2a
6443f2a
%prep
6443f2a
%setup -q -c -T
eeb5231
install -m 0644 -p %{SOURCE20}  notice.txt
eeb5231
install -m 0644 -p %{SOURCE21} readme.txt
6443f2a
6443f2a
6443f2a
%build
6443f2a
6443f2a
6443f2a
%install
6443f2a
rm -fr %{buildroot}
6443f2a
6443f2a
install -m 0755 -d %{buildroot}%{_fontdir}
6443f2a
6443f2a
install -m 0644 -p  %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
eeb5231
                    %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
eeb5231
                    %{buildroot}%{_fontdir}
6443f2a
6443f2a
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
6443f2a
                   %{buildroot}%{_fontconfig_confdir}
6443f2a
eeb5231
install -m 0644 -p %{SOURCE31} \
6443f2a
        %{buildroot}%{_fontconfig_templatedir}/65-%{fontname}-sans.conf
eeb5231
install -m 0644 -p %{SOURCE32} \
6443f2a
        %{buildroot}%{_fontconfig_templatedir}/60-%{fontname}-sans-mono.conf
eeb5231
install -m 0644 -p %{SOURCE33} \
6443f2a
        %{buildroot}%{_fontconfig_templatedir}/59-%{fontname}-serif.conf
6443f2a
24dcfca
for fontconf in 65-%{fontname}-sans.conf \
24dcfca
                60-%{fontname}-sans-mono.conf \
6443f2a
                59-%{fontname}-serif.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
%files common
6443f2a
%defattr(0644,root,root,0755)
6443f2a
%doc *.txt
6443f2a
6443f2a
6443f2a
%changelog
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