]>
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 |
173daf37 JB |
4 | Version: 2.00.4 |
5 | Release: 1 | |
151ed272 | 6 | Epoch: 1 |
674eeed7 | 7 | License: OFL |
7e548dc0 | 8 | Group: Fonts |
173daf37 JB |
9 | #Source0Download: https://github.com/liberationfonts/liberation-fonts/releases |
10 | Source0: https://github.com/liberationfonts/liberation-fonts/files/2579282/liberation-fonts-%{version}.tar.gz | |
11 | # Source0-md5: 4953c1305b19e08158ea8827ad082aea | |
9357043b AM |
12 | Source1: 30-0-liberation-mono.conf |
13 | Source2: 30-0-liberation-sans.conf | |
14 | Source3: 30-0-liberation-serif.conf | |
173daf37 | 15 | URL: https://github.com/liberationfonts/liberation-fonts |
216fadfc | 16 | BuildRequires: fontforge >= 20090923 |
173daf37 | 17 | BuildRequires: python3-fonttools |
37a88d1b | 18 | Suggests: fontpostinst |
cee98cc6 | 19 | Obsoletes: liberation-fonts-ttf |
70329d16 | 20 | Conflicts: fontconfig < 1:2.10.1 |
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 | |
9357043b | 50 | %{__make} |
173daf37 | 51 | %{__mv} liberation-fonts-ttf-%{version}/* . |
9c2fa979 | 52 | |
2774d5a0 ER |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
ad7bbe0c | 55 | install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail} |
2774d5a0 ER |
56 | |
57 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
7bd035df | 58 | |
9357043b AM |
59 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf |
60 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf | |
61 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf | |
7bd035df | 62 | |
b7cf6633 AM |
63 | ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d |
64 | ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
65 | ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
7e548dc0 PZ |
66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
37a88d1b ER |
70 | %triggerin -- fontpostinst |
71 | if [ "$1" = "1" ] && [ "$2" = "1" ]; then | |
72 | fontpostinst TTF | |
73 | fi | |
7e548dc0 | 74 | |
37a88d1b ER |
75 | %triggerun -- fontpostinst |
76 | if [ "$1" = "0" ] || [ "$2" = "0" ]; then | |
77 | fontpostinst TTF | |
78 | fi | |
7e548dc0 PZ |
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 | |
b7cf6633 AM |
86 | %{_datadir}/fontconfig/conf.avail/30-0-liberation-*.conf |
87 | %{_sysconfdir}/fonts/conf.d/30-0-liberation-*.conf |