]>
Commit | Line | Data |
---|---|---|
7e548dc0 | 1 | Summary: Fonts to replace commonly used Microsoft Windows Fonts |
cec7558f | 2 | Summary(pl.UTF-8): Fonty zastępujące popularne fonty z Microsoft Windows |
64f112b4 | 3 | Name: fonts-TTF-RedHat-liberation1 |
ebd74780 | 4 | Version: 1.07.3 |
550e84a5 | 5 | Release: 1 |
7e548dc0 PZ |
6 | License: GPL v2 + exceptions |
7 | Group: Fonts | |
216fadfc | 8 | Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz |
ebd74780 | 9 | # Source0-md5: 2b0ab5b0ecf00409d2b92740d29421b8 |
64f112b4 AM |
10 | Source1: liberation-fonts-mono.conf |
11 | Source2: liberation-fonts-sans.conf | |
12 | Source3: liberation-fonts-serif.conf | |
13 | Source4: liberation-fonts-narrow.conf | |
ebd74780 | 14 | Patch0: liberation-fonts-bug-715309.patch |
f8070bf6 | 15 | URL: https://fedorahosted.org/liberation-fonts/ |
216fadfc | 16 | BuildRequires: fontforge >= 20090923 |
64f112b4 | 17 | BuildRequires: fonttools |
7e548dc0 PZ |
18 | Requires(post,postun): fontpostinst |
19 | Requires: %{_fontsdir}/TTF | |
cee98cc6 | 20 | Obsoletes: liberation-fonts-ttf |
f28f1298 | 21 | Obsoletes: fonts-TTF-RedHat-liberation |
7e548dc0 PZ |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %define _ttffontsdir %{_fontsdir}/TTF | |
26 | ||
27 | %description | |
28 | The Liberation Fonts are intended to be replacements for the three | |
0110d3a4 AM |
29 | most commonly used fonts on Microsoft systems. |
30 | ||
31 | There are three sets: Sans (a substitute for Arial, Albany, Helvetica, | |
32 | Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times | |
33 | New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono | |
34 | (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and | |
35 | Bitstream Vera Sans Mono). | |
7e548dc0 | 36 | |
cec7558f JB |
37 | %description -l pl.UTF-8 |
38 | Fonty Liberation mają być zamiennikami trzech najczęściej używanych | |
0110d3a4 AM |
39 | fontów z systemów Microsoftu. |
40 | ||
41 | Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany, | |
42 | Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla | |
43 | Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i | |
44 | Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i | |
45 | Bitstream Vera Sans Mono). | |
cec7558f | 46 | |
7e548dc0 | 47 | %prep |
216fadfc | 48 | %setup -q -n liberation-fonts-%{version} |
64f112b4 | 49 | %patch0 -p1 |
216fadfc AM |
50 | |
51 | %build | |
64f112b4 AM |
52 | %{__make} |
53 | mv liberation-fonts-ttf-%{version}/* . | |
7e548dc0 PZ |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
64f112b4 | 57 | install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail} |
b5f5d58f | 58 | |
64f112b4 AM |
59 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} |
60 | ||
61 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf | |
62 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf | |
63 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf | |
64 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf | |
65 | ||
66 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
67 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
68 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
69 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
7e548dc0 PZ |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post | |
75 | fontpostinst TTF | |
76 | ||
77 | %postun | |
78 | fontpostinst TTF | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
fda433e4 | 82 | %doc AUTHORS ChangeLog License.txt README TODO |
64f112b4 AM |
83 | %{_ttffontsdir}/LiberationMono-*.ttf |
84 | %{_ttffontsdir}/LiberationSans-*.ttf | |
85 | %{_ttffontsdir}/LiberationSerif-*.ttf | |
86 | %{_ttffontsdir}/LiberationSansNarrow-*.ttf | |
87 | %{_datadir}/fontconfig/conf.avail/59-liberation-*.conf | |
88 | %{_sysconfdir}/fonts/conf.d/59-liberation-*.conf |