%define fname liberation %define _fontsdir %_datadir/fonts/ttf Name: fonts-ttf-%fname Version: 0.2 Release: alt2 Summary: Fonts to replace commonly used Microsoft Windows Fonts License: GPL+exception Group: System/Fonts/True type Url: https://www.redhat.com/promo/fonts/ Packager: Valery Inozemtsev PreReq: fontconfig >= 2.4.2 Source: https://www.redhat.com/f/fonts/liberation-fonts-ttf-3.tar.gz BuildArch: noarch BuildRequires: mkfontscale %description The Liberation Fonts are intended to be replacements for the three most commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier New. %prep %setup -q -n %fname-fonts-%version %install %__mkdir_p %buildroot%_fontsdir/%fname %__install -m644 *.ttf %buildroot%_fontsdir/%fname %_bindir/mkfontscale %buildroot%_fontsdir/%fname %__ln_s fonts.scale %buildroot%_fontsdir/%fname/fonts.dir %__mkdir_p %buildroot%_sysconfdir/X11/fontpath.d %__ln_s ../../..%_fontsdir/%fname %buildroot%_sysconfdir/X11/fontpath.d/ttf-%fname:pri=50 %triggerin -- %name <= 0.2-alt1 [ ! -x %_sbindir/chkfontpath -a ! -f %_sysconfdir/X11/fs/config ] || \ %_sbindir/chkfontpath -q -r %_fontsdir/%fname ||: %post %_bindir/fc-cache %_fontsdir/%fname ||: %files %doc License.txt %_sysconfdir/X11/fontpath.d/* %_fontsdir/%fname %changelog * Tue Aug 28 2007 Valery Inzemtsev 0.2-alt2 - used %_sysconfdir/X11/fontpath.d, adieu chkfontpath * Mon Aug 06 2007 Valery Inzemtsev 0.2-alt1 - 0.2 * Sun May 13 2007 Vitaly Lipatov 0.1-alt1 - initial build for ALT Linux Sisyphus