|
|
6c15ec5 |
%global pkgname roboto
|
|
|
6c15ec5 |
%global fontname google-roboto
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
Name: google-roboto-fonts
|
|
|
6a08d1a |
# No idea what version this is supposed to be. The last versioned tarball from
|
|
|
6a08d1a |
# http://developer.android.com/design/style/typography.html was version 1.2,
|
|
|
6a08d1a |
# so I will just continue using that version.
|
|
|
6c15ec5 |
Version: 1.2
|
|
|
8a6ce4e |
Release: 7%{?dist}
|
|
|
6c15ec5 |
Summary: Google Roboto fonts
|
|
|
6c15ec5 |
|
|
|
f2fd0b2 |
# Only the metainfo.xml files are CC0
|
|
|
f2fd0b2 |
License: ASL 2.0 and CC0
|
|
|
6c15ec5 |
URL: https://www.google.com/fonts/specimen/Roboto
|
|
|
6a08d1a |
# Oh, yeah... Thank you for the predictable download URL, Google! And
|
|
|
6a08d1a |
# I really do not want versioned tarball, because I really love to play
|
|
|
6a08d1a |
# the "find if there has been a new release" game...
|
|
|
6a08d1a |
# Downloaded on: 2014-12-17
|
|
|
6a08d1a |
Source0: http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B08MbvYZK1iNZGNoWmJqVEhQYTQ/RobotoTTF.zip
|
|
|
6c15ec5 |
Source1: 64-%{fontname}-condensed-fontconfig.conf
|
|
|
6c15ec5 |
Source2: 64-%{fontname}-fontconfig.conf
|
|
|
f2fd0b2 |
Source3: %{fontname}-condensed.metainfo.xml
|
|
|
f2fd0b2 |
Source4: %{fontname}.metainfo.xml
|
|
|
6a08d1a |
Source5: LICENSE.txt
|
|
|
6a08d1a |
|
|
|
6c15ec5 |
BuildArch: noarch
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
BuildRequires: fontpackages-devel
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%global fontconf 64-%{fontname}
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%description
|
|
|
6c15ec5 |
Roboto is a sans-serif typeface family introduced with Android Ice Cream
|
|
|
6c15ec5 |
Sandwich operating system. Google describes the font as "modern, yet
|
|
|
6c15ec5 |
approachable" and "emotional".
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%package -n %{fontname}-condensed-fonts
|
|
|
6c15ec5 |
Summary: Google Roboto condensed fonts
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%description -n %{fontname}-condensed-fonts
|
|
|
6c15ec5 |
Google Roboto condensed fonts.
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%prep
|
|
|
6c15ec5 |
%autosetup -c -n %{name}-%{version}
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%build
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%install
|
|
|
6c15ec5 |
# install fonts
|
|
|
6c15ec5 |
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
6a08d1a |
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
# install fontconfig files
|
|
|
6c15ec5 |
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
|
|
6c15ec5 |
%{buildroot}%{_fontconfig_confdir}
|
|
|
6c15ec5 |
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
|
|
|
6c15ec5 |
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-condensed.conf
|
|
|
6c15ec5 |
for fconf in %{fontconf}.conf %{fontconf}-condensed.conf; do
|
|
|
6c15ec5 |
ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
|
|
|
6c15ec5 |
done
|
|
|
6c15ec5 |
|
|
|
f2fd0b2 |
# install appdata
|
|
|
f2fd0b2 |
install -m 0755 -d %{buildroot}%{_datadir}/appdata
|
|
|
f2fd0b2 |
install -m 0644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata
|
|
|
f2fd0b2 |
|
|
|
6a08d1a |
# install license
|
|
|
6a08d1a |
install -m 0755 -d %{buildroot}%{_docdir}/%{fontname}-fonts \
|
|
|
6a08d1a |
%{buildroot}%{_docdir}/%{fontname}-condensed-fonts
|
|
|
6a08d1a |
install -m 0644 -p %{SOURCE5} %{buildroot}%{_docdir}/%{fontname}-fonts/LICENSE.txt
|
|
|
6a08d1a |
install -m 0644 -p %{SOURCE5} %{buildroot}%{_docdir}/%{fontname}-condensed-fonts/LICENSE.txt
|
|
|
6a08d1a |
|
|
|
6c15ec5 |
%_font_pkg -f %{fontconf}.conf Roboto-*.ttf
|
|
|
f2fd0b2 |
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
|
6a08d1a |
%doc %{_docdir}/%{fontname}-fonts/LICENSE.txt
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%_font_pkg -n condensed -f %{fontconf}-condensed.conf RobotoCondensed-*.ttf
|
|
|
f2fd0b2 |
%{_datadir}/appdata/%{fontname}-condensed.metainfo.xml
|
|
|
6a08d1a |
%doc %{_docdir}/%{fontname}-condensed-fonts/LICENSE.txt
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
%changelog
|
|
|
8a6ce4e |
* Tue Dec 23 2014 David Tardon <dtardon@redhat.com> - 1.2-7
|
|
|
8a6ce4e |
- drop obsolete requires
|
|
|
8a6ce4e |
|
|
|
6a08d1a |
* Wed Dec 17 2014 David Tardon <dtardon@redhat.com> - 1.2-6
|
|
|
6a08d1a |
- Resolves: rhbz#1174935 update to what is presumably the latest release
|
|
|
6a08d1a |
of the font
|
|
|
6a08d1a |
|
|
|
3b3d769 |
* Mon Nov 24 2014 David Tardon <dtardon@redhat.com> - 1.2-5
|
|
|
3b3d769 |
- use just Roboto as the font's name in metainfo
|
|
|
3b3d769 |
|
|
|
d2b00f9 |
* Thu Nov 20 2014 David Tardon <dtardon@redhat.com> - 1.2-4
|
|
|
d2b00f9 |
- add AppData files
|
|
|
d2b00f9 |
|
|
|
e6e53f0 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
|
e6e53f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e6e53f0 |
|
|
|
6c15ec5 |
* Mon Apr 07 2014 David Tardon <dtardon@redhat.com> - 1.2-2
|
|
|
6c15ec5 |
- integrate package review suggestions
|
|
|
6c15ec5 |
|
|
|
6c15ec5 |
* Thu Apr 03 2014 David Tardon <dtardon@redhat.com> - 1.2-1
|
|
|
6c15ec5 |
- initial import
|