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-liberation1
6 License: GPL v2 + exceptions
8 #Source0Download: https://github.com/liberationfonts/liberation-1.7-fonts/releases
9 Source0: https://github.com/liberationfonts/liberation-1.7-fonts/files/2175696/liberation-fonts-%{version}.tar.gz
10 # Source0-md5: 341038c2ebfbf0ce54954556e7696d3b
11 Source1: liberation-fonts-mono.conf
12 Source2: liberation-fonts-sans.conf
13 Source3: liberation-fonts-serif.conf
14 URL: https://github.com/liberationfonts/liberation-1.7-fonts
15 BuildRequires: fontforge >= 20090923
16 Requires(post,postun): fontpostinst
17 Requires: %{_fontsdir}/TTF
18 Suggests: fonts-TTF-RedHat-liberation-narrow
19 Obsoletes: liberation-fonts-ttf
20 Obsoletes: fonts-TTF-RedHat-liberation < 2
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _ttffontsdir %{_fontsdir}/TTF
27 The Liberation Fonts are intended to be replacements for the three
28 most commonly used fonts on Microsoft systems.
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).
36 %description -l pl.UTF-8
37 Fonty Liberation mają być zamiennikami trzech najczęściej używanych
38 fontów z systemów Microsoftu.
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).
47 %setup -q -n liberation-fonts-%{version}
52 %{__mv} liberation-fonts-ttf-%{version}/* .
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
58 cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
60 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf
61 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf
62 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf
64 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
65 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
66 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
69 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog License.txt README.rst TODO
80 %{_ttffontsdir}/LiberationMono-*.ttf
81 %{_ttffontsdir}/LiberationSans-*.ttf
82 %{_ttffontsdir}/LiberationSerif-*.ttf
83 %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf
84 %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf
85 %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf
86 %{_sysconfdir}/fonts/conf.d/59-liberation-mono.conf
87 %{_sysconfdir}/fonts/conf.d/59-liberation-sans.conf
88 %{_sysconfdir}/fonts/conf.d/59-liberation-serif.conf