]>
Commit | Line | Data |
---|---|---|
d75a2cae AM |
1 | Summary: The width-compatible fonts for improved on-screen readability |
2 | Name: fonts-TTF-Google-croscore | |
3 | Version: 1.21.0 | |
4 | Release: 1 | |
5 | License: OFL | |
6 | Group: Fonts | |
7 | Source0: http://gsdview.appspot.com/chromeos-localmirror/distfiles/croscorefonts-%{version}.tar.gz | |
8 | # Source0-md5: 61f59e4110781cbe66b46449eadac231 | |
9 | Source1: 62-google-croscore-arimo-fontconfig.conf | |
10 | Source2: 62-google-croscore-cousine-fontconfig.conf | |
11 | Source3: 62-google-croscore-tinos-fontconfig.conf | |
12 | Source4: 30-0-google-croscore-arimo-fontconfig.conf | |
13 | Source5: 30-0-google-croscore-cousine-fontconfig.conf | |
14 | Source6: 30-0-google-croscore-tinos-fontconfig.conf | |
15 | Source7: 62-google-croscore-symbolneu-fontconfig.conf | |
16 | Requires(post,postun): fontpostinst | |
17 | Requires: %{_fontsdir}/TTF | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _ttffontsdir %{_fontsdir}/TTF | |
22 | ||
23 | %description | |
24 | This package contains a collections of fonts that offers improved | |
25 | on-screen \ readability characteristics and the pan-European WGL | |
26 | character set and solves \ the needs of developers looking for | |
27 | width-compatible fonts to address document \ portability across | |
28 | platforms. | |
29 | ||
30 | %prep | |
31 | %setup -q -n croscorefonts-%{version} | |
32 | ||
33 | %build | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fonts/conf.{avail,d},%{_ttffontsdir}} | |
39 | install -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
40 | ||
41 | # Repeat for every font family | |
42 | install -p %{SOURCE1} \ | |
43 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/62-google-croscore-arimo.conf | |
44 | install -p %{SOURCE2} \ | |
45 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/62-google-croscore-cousine.conf | |
46 | install -p %{SOURCE3} \ | |
47 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/62-google-croscore-tinos.conf | |
48 | install -p %{SOURCE4} \ | |
49 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/30-0-google-croscore-arimo.conf | |
50 | install -p %{SOURCE5} \ | |
51 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/30-0-google-croscore-cousine.conf | |
52 | install -p %{SOURCE6} \ | |
53 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/30-0-google-croscore-tinos.conf | |
54 | install -p %{SOURCE7} \ | |
55 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/62-google-croscore-symbolneu.conf | |
56 | ||
57 | for fconf in 62-google-croscore-arimo.conf 30-0-google-croscore-arimo.conf \ | |
58 | 62-google-croscore-cousine.conf 30-0-google-croscore-cousine.conf \ | |
59 | 62-google-croscore-tinos.conf 30-0-google-croscore-tinos.conf \ | |
60 | 62-google-croscore-symbolneu.conf; do | |
61 | ln -s %{_sysconfdir}/fonts/conf.avail/$fconf \ | |
62 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/$fconf | |
63 | done | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %post | |
69 | fontpostinst TTF | |
70 | ||
71 | %postun | |
72 | fontpostinst TTF | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc LICENSE | |
77 | %{_ttffontsdir}/Arimo*.ttf | |
78 | %{_ttffontsdir}/Cousine*.ttf | |
79 | %{_ttffontsdir}/Symbol*.ttf | |
80 | %{_ttffontsdir}/Tinos*.ttf | |
81 | %{_sysconfdir}/fonts/conf.avail/*.conf | |
82 | %{_sysconfdir}/fonts/conf.d/*.conf |