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 #Source0Download: https://github.com/liberationfonts/liberation-fonts/releases
10 Source0: https://github.com/liberationfonts/liberation-fonts/files/7261483/liberation-fonts-%{version}.tar.gz
11 # Source0-md5: 5c019e62dd91939981e65fc75cfcf119
12 Source1: 30-0-liberation-mono.conf
13 Source2: 30-0-liberation-sans.conf
14 Source3: 30-0-liberation-serif.conf
15 URL: https://github.com/liberationfonts/liberation-fonts
16 BuildRequires: fontforge >= 20090923
17 BuildRequires: python3-fonttools
18 Suggests: fontpostinst
19 Obsoletes: liberation-fonts-ttf
20 Conflicts: fonts-TTF-RedHat-liberation1
21 Conflicts: fontconfig < 1:2.10.1
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _ttffontsdir %{_fontsdir}/TTF
28 The Liberation Fonts are intended to be replacements for the three
29 most commonly used fonts on Microsoft systems.
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).
37 %description -l pl.UTF-8
38 Fonty Liberation mają być zamiennikami trzech najczęściej używanych
39 fontów z systemów Microsoftu.
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).
48 %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/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
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
69 rm -rf $RPM_BUILD_ROOT
71 %triggerin -- fontpostinst
72 if [ "$1" = "1" ] && [ "$2" = "1" ]; then
76 %triggerun -- fontpostinst
77 if [ "$1" = "0" ] || [ "$2" = "0" ]; then
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog README.md TODO
84 %{_ttffontsdir}/LiberationMono*.ttf
85 %{_ttffontsdir}/LiberationSans*.ttf
86 %{_ttffontsdir}/LiberationSerif*.ttf
87 %{_datadir}/fontconfig/conf.avail/30-0-liberation-*.conf
88 %{_sysconfdir}/fonts/conf.d/30-0-liberation-*.conf