Blame SPECS/google-droid-fonts.spec

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