]>
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 |
ad7bbe0c | 5 | Release: 3 |
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 | |
ad7bbe0c | 19 | Requires: fontconfig >= 1:2.10.1 |
cee98cc6 | 20 | Obsoletes: liberation-fonts-ttf |
7e548dc0 PZ |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define _ttffontsdir %{_fontsdir}/TTF | |
25 | ||
26 | %description | |
27 | The Liberation Fonts are intended to be replacements for the three | |
0110d3a4 AM |
28 | most commonly used fonts on Microsoft systems. |
29 | ||
30 | There are three sets: Sans (a substitute for Arial, Albany, Helvetica, | |
31 | Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times | |
32 | New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono | |
33 | (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and | |
34 | Bitstream Vera Sans Mono). | |
7e548dc0 | 35 | |
cec7558f JB |
36 | %description -l pl.UTF-8 |
37 | Fonty Liberation mają być zamiennikami trzech najczęściej używanych | |
0110d3a4 AM |
38 | fontów z systemów Microsoftu. |
39 | ||
40 | Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany, | |
41 | Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla | |
42 | Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i | |
43 | Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i | |
44 | Bitstream Vera Sans Mono). | |
cec7558f | 45 | |
7e548dc0 | 46 | %prep |
216fadfc | 47 | %setup -q -n liberation-fonts-%{version} |
2774d5a0 | 48 | install -p %{SOURCE1} . |
216fadfc AM |
49 | |
50 | %build | |
c2b8ec50 | 51 | rm -f *.ttf |
fda433e4 | 52 | ./generate.pe src/*.sfd |
7e548dc0 | 53 | |
9c2fa979 AM |
54 | mv LiberationMono.ttf LiberationMono-Regular.ttf |
55 | mv LiberationSerif.ttf LiberationSerif-Regular.ttf | |
56 | mv LiberationSans.ttf LiberationSans-Regular.ttf | |
57 | ||
2774d5a0 ER |
58 | %install |
59 | rm -rf $RPM_BUILD_ROOT | |
ad7bbe0c | 60 | install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail} |
2774d5a0 ER |
61 | |
62 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
7bd035df | 63 | |
ad7bbe0c JR |
64 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf |
65 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf | |
66 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf | |
7bd035df | 67 | |
ad7bbe0c JR |
68 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d |
69 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
70 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
7e548dc0 PZ |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post | |
76 | fontpostinst TTF | |
77 | ||
78 | %postun | |
79 | fontpostinst TTF | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
674eeed7 | 83 | %doc AUTHORS ChangeLog README TODO |
c2b8ec50 AM |
84 | %{_ttffontsdir}/LiberationMono*.ttf |
85 | %{_ttffontsdir}/LiberationSans*.ttf | |
86 | %{_ttffontsdir}/LiberationSerif*.ttf | |
ad7bbe0c | 87 | %{_datadir}/fontconfig/conf.avail/59-liberation-*.conf |
7bd035df | 88 | %{_sysconfdir}/fonts/conf.d/59-liberation-*.conf |