]>
Commit | Line | Data |
---|---|---|
7e548dc0 PZ |
1 | %define _name liberation-fonts |
2 | Summary: Fonts to replace commonly used Microsoft Windows Fonts | |
cec7558f | 3 | Summary(pl.UTF-8): Fonty zastępujące popularne fonty z Microsoft Windows |
7e548dc0 | 4 | Name: fonts-TTF-RedHat-liberation |
99c1de31 | 5 | Version: 1.0 |
7e548dc0 PZ |
6 | Release: 1 |
7 | License: GPL v2 + exceptions | |
8 | Group: Fonts | |
b5f5d58f AM |
9 | Source0: https://www.redhat.com/f/fonts/liberation-fonts.tar.gz |
10 | # Source0-md5: f7d82c491914a318a6f0d426c5eb1432 | |
99c1de31 | 11 | Source1: %{name}.fontconfig |
7e548dc0 PZ |
12 | URL: https://www.redhat.com/promo/fonts/ |
13 | Requires(post,postun): fontpostinst | |
14 | Requires: %{_fontsdir}/TTF | |
cee98cc6 | 15 | Obsoletes: liberation-fonts-ttf |
7e548dc0 PZ |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _ttffontsdir %{_fontsdir}/TTF | |
20 | ||
21 | %description | |
22 | The Liberation Fonts are intended to be replacements for the three | |
0110d3a4 AM |
23 | most commonly used fonts on Microsoft systems. |
24 | ||
25 | There are three sets: Sans (a substitute for Arial, Albany, Helvetica, | |
26 | Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times | |
27 | New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono | |
28 | (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and | |
29 | Bitstream Vera Sans Mono). | |
7e548dc0 | 30 | |
cec7558f JB |
31 | %description -l pl.UTF-8 |
32 | Fonty Liberation mają być zamiennikami trzech najczęściej używanych | |
0110d3a4 AM |
33 | fontów z systemów Microsoftu. |
34 | ||
35 | Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany, | |
36 | Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla | |
37 | Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i | |
38 | Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i | |
39 | Bitstream Vera Sans Mono). | |
cec7558f | 40 | |
7e548dc0 | 41 | %prep |
99c1de31 | 42 | %setup -q -c |
7e548dc0 PZ |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT%{_ttffontsdir} | |
99c1de31 | 47 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail |
b5f5d58f AM |
48 | |
49 | cp -a liberation-fonts/*.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
99c1de31 | 50 | install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf |
7e548dc0 PZ |
51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post | |
56 | fontpostinst TTF | |
57 | ||
58 | %postun | |
59 | fontpostinst TTF | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %{_ttffontsdir}/* | |
99c1de31 | 64 | %{_sysconfdir}/fonts/conf.avail/60-liberation.conf |