]>
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 |
2a9bef83 | 4 | Version: 1.07.5 |
550e84a5 | 5 | Release: 1 |
7e548dc0 PZ |
6 | License: GPL v2 + exceptions |
7 | Group: Fonts | |
2a9bef83 JB |
8 | #Source0Download: https://github.com/liberationfonts/liberation-1.7-fonts/releases |
9 | Source0: https://github.com/liberationfonts/liberation-1.7-fonts/files/2175696/liberation-fonts-%{version}.tar.gz | |
10 | # Source0-md5: 341038c2ebfbf0ce54954556e7696d3b | |
64f112b4 AM |
11 | Source1: liberation-fonts-mono.conf |
12 | Source2: liberation-fonts-sans.conf | |
13 | Source3: liberation-fonts-serif.conf | |
2a9bef83 | 14 | URL: https://github.com/liberationfonts/liberation-1.7-fonts |
216fadfc | 15 | BuildRequires: fontforge >= 20090923 |
7e548dc0 PZ |
16 | Requires(post,postun): fontpostinst |
17 | Requires: %{_fontsdir}/TTF | |
2a9bef83 | 18 | Suggests: fonts-TTF-RedHat-liberation-narrow |
cee98cc6 | 19 | Obsoletes: liberation-fonts-ttf |
2a9bef83 | 20 | Obsoletes: fonts-TTF-RedHat-liberation < 2 |
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} |
216fadfc AM |
48 | |
49 | %build | |
64f112b4 | 50 | %{__make} |
2a9bef83 JB |
51 | |
52 | %{__mv} liberation-fonts-ttf-%{version}/* . | |
7e548dc0 PZ |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
64f112b4 | 56 | install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail} |
b5f5d58f | 57 | |
64f112b4 AM |
58 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} |
59 | ||
60 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf | |
61 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf | |
62 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf | |
64f112b4 AM |
63 | |
64 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
65 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
66 | ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
7e548dc0 PZ |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post | |
72 | fontpostinst TTF | |
73 | ||
74 | %postun | |
75 | fontpostinst TTF | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
2a9bef83 | 79 | %doc AUTHORS ChangeLog License.txt README.rst TODO |
64f112b4 AM |
80 | %{_ttffontsdir}/LiberationMono-*.ttf |
81 | %{_ttffontsdir}/LiberationSans-*.ttf | |
82 | %{_ttffontsdir}/LiberationSerif-*.ttf | |
2a9bef83 JB |
83 | %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf |
84 | %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf | |
85 | %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf | |
86 | %{_sysconfdir}/fonts/conf.d/59-liberation-mono.conf | |
87 | %{_sysconfdir}/fonts/conf.d/59-liberation-sans.conf | |
88 | %{_sysconfdir}/fonts/conf.d/59-liberation-serif.conf |