]>
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 |
d67fc8d4 | 4 | Version: 1.07.0 |
c2b8ec50 | 5 | Release: 2 |
151ed272 | 6 | Epoch: 1 |
7e548dc0 PZ |
7 | License: GPL v2 + exceptions |
8 | Group: Fonts | |
216fadfc | 9 | Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz |
d67fc8d4 | 10 | # Source0-md5: 87ba9eea831ebc6fab9578abcebda9a5 |
99c1de31 | 11 | Source1: %{name}.fontconfig |
c2b8ec50 | 12 | Source2: generate.pe |
f8070bf6 | 13 | URL: https://fedorahosted.org/liberation-fonts/ |
216fadfc | 14 | BuildRequires: fontforge >= 20090923 |
4ef0c9a0 | 15 | BuildRequires: unzip |
7e548dc0 PZ |
16 | Requires(post,postun): fontpostinst |
17 | Requires: %{_fontsdir}/TTF | |
cee98cc6 | 18 | Obsoletes: liberation-fonts-ttf |
7e548dc0 PZ |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _ttffontsdir %{_fontsdir}/TTF | |
23 | ||
24 | %description | |
25 | The Liberation Fonts are intended to be replacements for the three | |
0110d3a4 AM |
26 | most commonly used fonts on Microsoft systems. |
27 | ||
28 | There are three sets: Sans (a substitute for Arial, Albany, Helvetica, | |
29 | Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times | |
30 | New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono | |
31 | (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and | |
32 | Bitstream Vera Sans Mono). | |
7e548dc0 | 33 | |
cec7558f JB |
34 | %description -l pl.UTF-8 |
35 | Fonty Liberation mają być zamiennikami trzech najczęściej używanych | |
0110d3a4 AM |
36 | fontów z systemów Microsoftu. |
37 | ||
38 | Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany, | |
39 | Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla | |
40 | Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i | |
41 | Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i | |
42 | Bitstream Vera Sans Mono). | |
cec7558f | 43 | |
7e548dc0 | 44 | %prep |
216fadfc | 45 | %setup -q -n liberation-fonts-%{version} |
c2b8ec50 | 46 | install -m755 %{SOURCE2} . |
216fadfc AM |
47 | |
48 | %build | |
c2b8ec50 AM |
49 | rm -f *.ttf |
50 | ./generate.pe src/*.sfd | |
7e548dc0 PZ |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT%{_ttffontsdir} | |
99c1de31 | 55 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail |
155254a5 | 56 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d |
b5f5d58f | 57 | |
c2b8ec50 | 58 | cp -a *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} |
f8070bf6 | 59 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf |
155254a5 | 60 | ln -s ../conf.avail/60-liberation.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d |
7e548dc0 PZ |
61 | |
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post | |
66 | fontpostinst TTF | |
67 | ||
68 | %postun | |
69 | fontpostinst TTF | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
f8070bf6 | 73 | %doc AUTHORS ChangeLog License.txt README |
c2b8ec50 AM |
74 | %{_ttffontsdir}/LiberationMono*.ttf |
75 | %{_ttffontsdir}/LiberationSans*.ttf | |
76 | %{_ttffontsdir}/LiberationSerif*.ttf | |
99c1de31 | 77 | %{_sysconfdir}/fonts/conf.avail/60-liberation.conf |
155254a5 | 78 | %{_sysconfdir}/fonts/conf.d/60-liberation.conf |