Line | |
---|
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: 1.0 |
---|
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/style/typography.html |
---|
13 | Source0: roboto-font-%{version}.tar.xz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildArch: noarch |
---|
17 | Requires: %{name}-doc |
---|
18 | |
---|
19 | %description |
---|
20 | Roboto is new font that introduced with Android OS 4.0 |
---|
21 | "Ice Cream Sandwich". |
---|
22 | |
---|
23 | %description -l ja |
---|
24 | Roboto は Android OS 4.0 "Ice Cream Sandwich" と |
---|
25 | 一緒に紹介された新しいフォントです。 |
---|
26 | |
---|
27 | %package doc |
---|
28 | Summary: Robot font Documents |
---|
29 | Summary(ja): Roboto フォントドキュメント |
---|
30 | Group: User Interface/X |
---|
31 | |
---|
32 | %description doc |
---|
33 | This package includes important documents for Roboto font |
---|
34 | includes enduser license. |
---|
35 | |
---|
36 | %description -l ja doc |
---|
37 | このパッケージには Roboto フォントのライセンスを含む |
---|
38 | ドキュメント類が含まれています。 |
---|
39 | |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -qn roboto-font |
---|
43 | |
---|
44 | %clean |
---|
45 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
46 | rm -rf ${RPM_BUILD_ROOT} |
---|
47 | fi |
---|
48 | |
---|
49 | %build |
---|
50 | |
---|
51 | %install |
---|
52 | rm -rf %{buildroot} |
---|
53 | |
---|
54 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
---|
55 | cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} |
---|
56 | |
---|
57 | %post |
---|
58 | %__font_install_post %{_fontdir} |
---|
59 | |
---|
60 | %postun |
---|
61 | %__font_install_postun %{_fontdir} |
---|
62 | |
---|
63 | %files |
---|
64 | %{_fontdir}/Roboto-*.ttf |
---|
65 | |
---|
66 | %files doc |
---|
67 | %doc MODULE_LICENSE_APACHE2 NOTICE README.txt |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1 |
---|
71 | - initial build for VineSeed |
---|
Note: See
TracBrowser
for help on using the repository browser.