]>
Commit | Line | Data |
---|---|---|
1 | Summary: The Roboto family of fonts | |
2 | Name: fonts-TTF-Roboto | |
3 | Version: 2.136 | |
4 | Release: 1 | |
5 | License: Apache | |
6 | Group: Fonts | |
7 | Source0: https://github.com/google/roboto/releases/download/v%{version}/roboto-unhinted.zip?/roboto-unhinted-%{version}.zip | |
8 | # Source0-md5: cc3c1a0fa741618283c19fdf987fad95 | |
9 | URL: https://github.com/google/roboto/ | |
10 | BuildRequires: unzip | |
11 | Requires(post,postun): fontpostinst | |
12 | BuildArch: noarch | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %define ttffontsdir %{_fontsdir}/TTF | |
16 | ||
17 | %description | |
18 | Roboto: Google's signature family of fonts, the default font on | |
19 | Android and Chrome OS, and the recommended font for Google's visual | |
20 | language, Material Design. | |
21 | ||
22 | %prep | |
23 | %setup -q -n roboto-unhinted | |
24 | ||
25 | %install | |
26 | rm -rf $RPM_BUILD_ROOT | |
27 | install -d $RPM_BUILD_ROOT%{ttffontsdir} | |
28 | ||
29 | cp -p *.ttf $RPM_BUILD_ROOT%{ttffontsdir} | |
30 | ||
31 | %clean | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | ||
34 | %post | |
35 | fontpostinst TTF | |
36 | ||
37 | %postun | |
38 | fontpostinst TTF | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %{ttffontsdir}/Roboto*.ttf |