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