]>
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 |
7e548dc0 | 3 | Name: fonts-TTF-RedHat-liberation |
674eeed7 | 4 | Version: 2.00.0 |
7bd035df | 5 | Release: 2 |
151ed272 | 6 | Epoch: 1 |
674eeed7 | 7 | License: OFL |
7e548dc0 | 8 | Group: Fonts |
216fadfc | 9 | Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz |
d3a023b3 | 10 | # Source0-md5: 5b5055ed755025891f908b7726fea482 |
7bd035df AM |
11 | Source1: generate.pe |
12 | Source2: 59-liberation-mono.conf | |
13 | Source3: 59-liberation-sans.conf | |
14 | Source4: 59-liberation-serif.conf | |
f8070bf6 | 15 | URL: https://fedorahosted.org/liberation-fonts/ |
216fadfc | 16 | BuildRequires: fontforge >= 20090923 |
7e548dc0 PZ |
17 | Requires(post,postun): fontpostinst |
18 | Requires: %{_fontsdir}/TTF | |
cee98cc6 | 19 | Obsoletes: liberation-fonts-ttf |
7e548dc0 PZ |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _ttffontsdir %{_fontsdir}/TTF | |
24 | ||
25 | %description | |
26 | The Liberation Fonts are intended to be replacements for the three | |
0110d3a4 AM |
27 | most commonly used fonts on Microsoft systems. |
28 | ||
29 | There are three sets: Sans (a substitute for Arial, Albany, Helvetica, | |
30 | Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times | |
31 | New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono | |
32 | (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and | |
33 | Bitstream Vera Sans Mono). | |
7e548dc0 | 34 | |
cec7558f JB |
35 | %description -l pl.UTF-8 |
36 | Fonty Liberation mają być zamiennikami trzech najczęściej używanych | |
0110d3a4 AM |
37 | fontów z systemów Microsoftu. |
38 | ||
39 | Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany, | |
40 | Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla | |
41 | Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i | |
42 | Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i | |
43 | Bitstream Vera Sans Mono). | |
cec7558f | 44 | |
7e548dc0 | 45 | %prep |
216fadfc | 46 | %setup -q -n liberation-fonts-%{version} |
2774d5a0 | 47 | install -p %{SOURCE1} . |
216fadfc AM |
48 | |
49 | %build | |
c2b8ec50 | 50 | rm -f *.ttf |
fda433e4 | 51 | ./generate.pe src/*.sfd |
7e548dc0 | 52 | |
9c2fa979 AM |
53 | mv LiberationMono.ttf LiberationMono-Regular.ttf |
54 | mv LiberationSerif.ttf LiberationSerif-Regular.ttf | |
55 | mv LiberationSans.ttf LiberationSans-Regular.ttf | |
56 | ||
2774d5a0 ER |
57 | %install |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/{conf.d,conf.avail}} | |
60 | ||
61 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
7bd035df | 62 | |
2774d5a0 ER |
63 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-mono.conf |
64 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-sans.conf | |
65 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-serif.conf | |
7bd035df AM |
66 | |
67 | ln -s ../conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
68 | ln -s ../conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
69 | ln -s ../conf.avail/59-liberation-serif.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) | |
674eeed7 | 82 | %doc AUTHORS ChangeLog README TODO |
c2b8ec50 AM |
83 | %{_ttffontsdir}/LiberationMono*.ttf |
84 | %{_ttffontsdir}/LiberationSans*.ttf | |
85 | %{_ttffontsdir}/LiberationSerif*.ttf | |
7bd035df AM |
86 | %{_sysconfdir}/fonts/conf.avail/59-liberation-*.conf |
87 | %{_sysconfdir}/fonts/conf.d/59-liberation-*.conf |