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
12 Source2: 59-liberation-mono.conf
13 Source3: 59-liberation-sans.conf
14 Source4: 59-liberation-serif.conf
15 URL: https://fedorahosted.org/liberation-fonts/
16 BuildRequires: fontforge >= 20090923
17 Requires(post,postun): fontpostinst
18 Requires: %{_fontsdir}/TTF
19 Obsoletes: liberation-fonts-ttf
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _ttffontsdir %{_fontsdir}/TTF
26 The Liberation Fonts are intended to be replacements for the three
27 most commonly used fonts on Microsoft systems.
29 There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
30 Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
31 New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
32 (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
33 Bitstream Vera Sans Mono).
35 %description -l pl.UTF-8
36 Fonty Liberation mają być zamiennikami trzech najczęściej używanych
37 fontów z systemów Microsoftu.
39 Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany,
40 Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla
41 Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i
42 Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i
43 Bitstream Vera Sans Mono).
46 %setup -q -n liberation-fonts-%{version}
47 install -m755 %{SOURCE1} .
51 ./generate.pe src/*.sfd
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_ttffontsdir}
56 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
57 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
59 mv LiberationMono.ttf LiberationMono-Regular.ttf
60 mv LiberationSerif.ttf LiberationSerif-Regular.ttf
61 mv LiberationSans.ttf LiberationSans-Regular.ttf
63 cp -a *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
65 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-mono.conf
66 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-sans.conf
67 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-serif.conf
69 ln -s ../conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
70 ln -s ../conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
71 ln -s ../conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
74 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog README TODO
85 %{_ttffontsdir}/LiberationMono*.ttf
86 %{_ttffontsdir}/LiberationSans*.ttf
87 %{_ttffontsdir}/LiberationSerif*.ttf
88 %{_sysconfdir}/fonts/conf.avail/59-liberation-*.conf
89 %{_sysconfdir}/fonts/conf.d/59-liberation-*.conf