File roboto-fonts.spec of Package roboto-fonts

#
# spec file for package roboto-fonts
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define ttf_fontdir %{_datadir}/fonts/truetype

Name:           roboto-fonts
Version:        1.0
Release:        0
License:        Apache-2.0
Summary:        Android Roboto Fonts
Url:            http://code.google.com/android/
Group:          System/X11/Fonts
# http://www.fontsquirrel.com/fonts/download/roboto
Source:         roboto.zip
Source1:        COPYING
BuildRequires:  unzip
Requires(pre):  %suseconfig_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Roboto is a Helvetica alike sans serif font that was introduced with Android
4.0 (Ice Cream Sandwich).

%prep
%setup -q -c "%{name}-%{version}"

%build
cp %{SOURCE1} .

%install
install -d "%{buildroot}%{ttf_fontdir}"
install -m0644 *.ttf "%{buildroot}%{ttf_fontdir}/"

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%clean
%{?buildroot:rm -rf %{buildroot}}

%files
%defattr(-,root,root)
%doc *.txt COPYING
%dir %{ttf_fontdir}
%{ttf_fontdir}/*.ttf

%changelog