]>
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 | |
7e107244 | 4 | Release: 3 |
d75a2cae AM |
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 | |
8ef46ca6 | 18 | Requires: fontconfig >= 1:2.10.1 |
d75a2cae AM |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _ttffontsdir %{_fontsdir}/TTF | |
23 | ||
24 | %description | |
25 | This package contains a collections of fonts that offers improved | |
26 | on-screen \ readability characteristics and the pan-European WGL | |
27 | character set and solves \ the needs of developers looking for | |
28 | width-compatible fonts to address document \ portability across | |
29 | platforms. | |
30 | ||
31 | %prep | |
32 | %setup -q -n croscorefonts-%{version} | |
33 | ||
34 | %build | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
8ef46ca6 JR |
39 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fonts/conf.d,%{_ttffontsdir}} |
40 | install -d $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail | |
d75a2cae AM |
41 | install -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} |
42 | ||
43 | # Repeat for every font family | |
8ef46ca6 JR |
44 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/62-google-croscore-arimo.conf |
45 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/62-google-croscore-cousine.conf | |
46 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/62-google-croscore-tinos.conf | |
47 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-google-croscore-arimo.conf | |
48 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-google-croscore-cousine.conf | |
49 | install -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-google-croscore-tinos.conf | |
50 | install -p %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/62-google-croscore-symbolneu.conf | |
d75a2cae AM |
51 | |
52 | for fconf in 62-google-croscore-arimo.conf 30-0-google-croscore-arimo.conf \ | |
53 | 62-google-croscore-cousine.conf 30-0-google-croscore-cousine.conf \ | |
54 | 62-google-croscore-tinos.conf 30-0-google-croscore-tinos.conf \ | |
55 | 62-google-croscore-symbolneu.conf; do | |
8ef46ca6 | 56 | ln -s %{_datadir}/fontconfig/conf.avail/$fconf \ |
d75a2cae AM |
57 | $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/$fconf |
58 | done | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post | |
64 | fontpostinst TTF | |
65 | ||
66 | %postun | |
67 | fontpostinst TTF | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc LICENSE | |
72 | %{_ttffontsdir}/Arimo*.ttf | |
73 | %{_ttffontsdir}/Cousine*.ttf | |
74 | %{_ttffontsdir}/Symbol*.ttf | |
75 | %{_ttffontsdir}/Tinos*.ttf | |
8ef46ca6 | 76 | %{_datadir}/fontconfig/conf.avail/*.conf |
d75a2cae | 77 | %{_sysconfdir}/fonts/conf.d/*.conf |