1 | %define fontname roboto |
---|
2 | %define _fontdir %{_datadir}/fonts/TrueType-%{fontname} |
---|
3 | |
---|
4 | Name: TrueType-%{fontname} |
---|
5 | Summary: Roboto font |
---|
6 | Summary(ja): Roboto フォント |
---|
7 | Version: 20120823 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | License: apache License 2.0 |
---|
10 | Group: User Interface/X |
---|
11 | #URL: https://github.com/android/platform_frameworks_base/tree/master/data/fonts |
---|
12 | URL: http://developer.android.com/design/downloads/index.html |
---|
13 | Source0: Roboto_Hinted_%{version}.zip |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildArch: noarch |
---|
17 | BuildRequires: unzip |
---|
18 | Requires: %{name}-doc |
---|
19 | |
---|
20 | %description |
---|
21 | Roboto is new font that introduced with Android OS 4.0 |
---|
22 | "Ice Cream Sandwich". |
---|
23 | |
---|
24 | %description -l ja |
---|
25 | Roboto は Android OS 4.0 "Ice Cream Sandwich" と |
---|
26 | 一緒に紹介された新しいフォントです。 |
---|
27 | |
---|
28 | %package doc |
---|
29 | Summary: Robot font Documents |
---|
30 | Summary(ja): Roboto フォントドキュメント |
---|
31 | Group: User Interface/X |
---|
32 | |
---|
33 | %description doc |
---|
34 | This package includes important documents for Roboto font |
---|
35 | includes enduser license. |
---|
36 | |
---|
37 | %description -l ja doc |
---|
38 | このパッケージには Roboto フォントのライセンスを含む |
---|
39 | ドキュメント類が含まれています。 |
---|
40 | |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -c -T |
---|
44 | %{_bindir}/unzip -oq %{SOURCE0} |
---|
45 | |
---|
46 | %clean |
---|
47 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
48 | rm -rf ${RPM_BUILD_ROOT} |
---|
49 | fi |
---|
50 | |
---|
51 | %build |
---|
52 | |
---|
53 | %install |
---|
54 | rm -rf %{buildroot} |
---|
55 | |
---|
56 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
---|
57 | cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} |
---|
58 | |
---|
59 | %post |
---|
60 | %__font_install_post %{_fontdir} |
---|
61 | |
---|
62 | %postun |
---|
63 | %__font_install_postun %{_fontdir} |
---|
64 | |
---|
65 | %files |
---|
66 | %{_fontdir}/Roboto-*.ttf |
---|
67 | |
---|
68 | %files doc |
---|
69 | %doc COPYING.txt RobotoSpecimenBook.pdf |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Sun Oct 13 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 20120823-1 |
---|
73 | - new upstream release |
---|
74 | - changed URL and Source |
---|
75 | - added BuildRequires: unzip |
---|
76 | - changed versioning |
---|
77 | |
---|
78 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1 |
---|
79 | - initial build for VineSeed |
---|