]>
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 |
3cd7824f JB |
4 | Version: 2.1.5 |
5 | Release: 1 | |
151ed272 | 6 | Epoch: 1 |
674eeed7 | 7 | License: OFL |
7e548dc0 | 8 | Group: Fonts |
173daf37 | 9 | #Source0Download: https://github.com/liberationfonts/liberation-fonts/releases |
3cd7824f JB |
10 | Source0: https://github.com/liberationfonts/liberation-fonts/files/7261483/liberation-fonts-%{version}.tar.gz |
11 | # Source0-md5: 5c019e62dd91939981e65fc75cfcf119 | |
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 |
bb16b371 | 20 | Conflicts: fonts-TTF-RedHat-liberation1 |
70329d16 | 21 | Conflicts: fontconfig < 1:2.10.1 |
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} |
216fadfc AM |
49 | |
50 | %build | |
9357043b | 51 | %{__make} |
173daf37 | 52 | %{__mv} liberation-fonts-ttf-%{version}/* . |
9c2fa979 | 53 | |
2774d5a0 ER |
54 | %install |
55 | rm -rf $RPM_BUILD_ROOT | |
ad7bbe0c | 56 | install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail} |
2774d5a0 ER |
57 | |
58 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
7bd035df | 59 | |
9357043b AM |
60 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf |
61 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf | |
62 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf | |
7bd035df | 63 | |
b7cf6633 AM |
64 | ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d |
65 | ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
66 | ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
7e548dc0 PZ |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
37a88d1b ER |
71 | %triggerin -- fontpostinst |
72 | if [ "$1" = "1" ] && [ "$2" = "1" ]; then | |
73 | fontpostinst TTF | |
74 | fi | |
7e548dc0 | 75 | |
37a88d1b ER |
76 | %triggerun -- fontpostinst |
77 | if [ "$1" = "0" ] || [ "$2" = "0" ]; then | |
78 | fontpostinst TTF | |
79 | fi | |
7e548dc0 PZ |
80 | |
81 | %files | |
82 | %defattr(644,root,root,755) | |
3cd7824f | 83 | %doc AUTHORS ChangeLog README.md TODO |
c2b8ec50 AM |
84 | %{_ttffontsdir}/LiberationMono*.ttf |
85 | %{_ttffontsdir}/LiberationSans*.ttf | |
86 | %{_ttffontsdir}/LiberationSerif*.ttf | |
b7cf6633 AM |
87 | %{_datadir}/fontconfig/conf.avail/30-0-liberation-*.conf |
88 | %{_sysconfdir}/fonts/conf.d/30-0-liberation-*.conf |