6c15ec5
%global pkgname roboto
6c15ec5
%global fontname google-roboto
6c15ec5
6c15ec5
Name: google-roboto-fonts
6c15ec5
Version: 1.2
9aac9d4
Release: 8%{?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
9aac9d4
Source0: http://developer.android.com/downloads/design/%{pkgname}-%{version}.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
6c15ec5
BuildArch: noarch
6c15ec5
9aac9d4
BuildRequires: dos2unix
6c15ec5
BuildRequires: fontpackages-devel
6c15ec5
9aac9d4
Requires: %{fontname}-common = %{version}-%{release}
9aac9d4
9aac9d4
%global archivename %{pkgname}-%{version}
9aac9d4
%global fontsrcdir Roboto_v%{version}
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
9aac9d4
Requires: %{fontname}-common = %{version}-%{release}
6c15ec5
6c15ec5
%description -n %{fontname}-condensed-fonts
6c15ec5
Google Roboto condensed fonts.
6c15ec5
9aac9d4
%package -n %{fontname}-common
9aac9d4
Summary: Common files for Google Roboto fonts
9aac9d4
Requires: fontpackages-filesystem
9aac9d4
9aac9d4
%description -n %{fontname}-common
9aac9d4
Common files for Google Roboto fonts.
9aac9d4
6c15ec5
%prep
6c15ec5
%autosetup -c -n %{name}-%{version}
9aac9d4
dos2unix %{fontsrcdir}/*/LICENSE.txt
6c15ec5
6c15ec5
%build
6c15ec5
6c15ec5
%install
6c15ec5
# install fonts
6c15ec5
install -m 0755 -d %{buildroot}%{_fontdir}
9aac9d4
install -m 0644 -p %{fontsrcdir}/Roboto/*.ttf %{buildroot}%{_fontdir}
9aac9d4
install -m 0644 -p %{fontsrcdir}/RobotoCondensed/*.ttf %{buildroot}%{_fontdir}
6c15ec5
6c15ec5
# install fontconfig files
6c15ec5
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
6c15ec5
                   %{buildroot}%{_fontconfig_confdir}
91752df
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
91752df
install -m 0644 -p %{SOURCE1} %{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
6c15ec5
%_font_pkg -f %{fontconf}.conf Roboto-*.ttf
f2fd0b2
%{_datadir}/appdata/%{fontname}.metainfo.xml
6c15ec5
6c15ec5
%_font_pkg -n condensed -f %{fontconf}-condensed.conf RobotoCondensed-*.ttf
f2fd0b2
%{_datadir}/appdata/%{fontname}-condensed.metainfo.xml
9aac9d4
9aac9d4
%files -n %{fontname}-common
9aac9d4
%doc %{fontsrcdir}/Roboto/LICENSE.txt
9aac9d4
%doc %{fontsrcdir}/RobotoSpecimenBook.pdf
6c15ec5
6c15ec5
%changelog
9aac9d4
* Tue Dec 23 2014 David Tardon <dtardon@redhat.com> - 1.2-8
9aac9d4
- revert the previous "update"
4da80d8
- Resolves: rhbz#1174935 fix font metadata
9aac9d4
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