1 Summary: Fonts to replace commonly used Microsoft Windows Fonts
2 Summary(pl.UTF-8): Fonty zastępujące popularne fonty z Microsoft Windows
3 Name: fonts-TTF-RedHat-liberation
9 Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
10 # Source0-md5: 5b5055ed755025891f908b7726fea482
11 Source1: %{name}.fontconfig
13 URL: https://fedorahosted.org/liberation-fonts/
14 BuildRequires: fontforge >= 20090923
15 Requires(post,postun): fontpostinst
16 Requires: %{_fontsdir}/TTF
17 Obsoletes: liberation-fonts-ttf
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _ttffontsdir %{_fontsdir}/TTF
24 The Liberation Fonts are intended to be replacements for the three
25 most commonly used fonts on Microsoft systems.
27 There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
28 Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
29 New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
30 (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
31 Bitstream Vera Sans Mono).
33 %description -l pl.UTF-8
34 Fonty Liberation mają być zamiennikami trzech najczęściej używanych
35 fontów z systemów Microsoftu.
37 Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany,
38 Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla
39 Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i
40 Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i
41 Bitstream Vera Sans Mono).
44 %setup -q -n liberation-fonts-%{version}
45 install -m755 %{SOURCE2} .
49 ./generate.pe src/*.sfd
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_ttffontsdir}
54 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
55 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
57 cp -a *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
58 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf
59 ln -s ../conf.avail/60-liberation.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
62 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %doc AUTHORS ChangeLog README TODO
73 %{_ttffontsdir}/LiberationMono*.ttf
74 %{_ttffontsdir}/LiberationSans*.ttf
75 %{_ttffontsdir}/LiberationSerif*.ttf
76 %{_sysconfdir}/fonts/conf.avail/60-liberation.conf
77 %{_sysconfdir}/fonts/conf.d/60-liberation.conf