Group :: System/Fonts/Type1
RPM: fonts-ttf-xorg
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define xf86 XFree86
%define xorgold xorg-x11
%define _fontsdir %_datadir/fonts/ttf
Name: fonts-ttf-xorg
Version: 1.0.0
Release: alt1
Serial: 1
Summary: TrueType fonts provided by the X Window System
Group: System/Fonts/Type1
License: MIT/X11
Url: http://xorg.freedesktop.org
Source0: font-bh-ttf-%version.tar.bz2
Packager: XOrg Maintainer Team <xorg at packages.altlinux.org>
PreReq: chkfontpath
Obsoletes: %xf86-ttf-fonts %xorgold-ttf-fonts
Provides: %xf86-ttf-fonts = 4.4
Provides: %xorgold-ttf-fonts = 7.0.0-%release
BuildArch: noarch
BuildRequires: mkfontdir mkfontscale
%description
A collection of truetype fonts which are part of the core X Window System
distribution.
%prep
%setup -q -n font-bh-ttf-%version
%install
%__mkdir_p %buildroot%_fontsdir/TTF
%__install -m644 *.ttf %buildroot%_fontsdir/TTF/
mkfontscale %buildroot%_fontsdir/TTF
mkfontdir %buildroot%_fontsdir/TTF
touch %buildroot%_fontsdir/TTF/fonts.cache-1
%post
%_sbindir/chkfontpath -q -a %_fontsdir/TTF
%postun
if [ "$1" = "0" ]; then
%_sbindir/chkfontpath -q -r %_fontsdir/TTF
fi
%files
%ghost %_fontsdir/TTF/fonts.cache-1
%_fontsdir/TTF
%changelog
…
Full changelog you can see here
%define xorgold xorg-x11
%define _fontsdir %_datadir/fonts/ttf
Name: fonts-ttf-xorg
Version: 1.0.0
Release: alt1
Serial: 1
Summary: TrueType fonts provided by the X Window System
Group: System/Fonts/Type1
License: MIT/X11
Url: http://xorg.freedesktop.org
Source0: font-bh-ttf-%version.tar.bz2
Packager: XOrg Maintainer Team <xorg at packages.altlinux.org>
PreReq: chkfontpath
Obsoletes: %xf86-ttf-fonts %xorgold-ttf-fonts
Provides: %xf86-ttf-fonts = 4.4
Provides: %xorgold-ttf-fonts = 7.0.0-%release
BuildArch: noarch
BuildRequires: mkfontdir mkfontscale
%description
A collection of truetype fonts which are part of the core X Window System
distribution.
%prep
%setup -q -n font-bh-ttf-%version
%install
%__mkdir_p %buildroot%_fontsdir/TTF
%__install -m644 *.ttf %buildroot%_fontsdir/TTF/
mkfontscale %buildroot%_fontsdir/TTF
mkfontdir %buildroot%_fontsdir/TTF
touch %buildroot%_fontsdir/TTF/fonts.cache-1
%post
%_sbindir/chkfontpath -q -a %_fontsdir/TTF
%postun
if [ "$1" = "0" ]; then
%_sbindir/chkfontpath -q -r %_fontsdir/TTF
fi
%files
%ghost %_fontsdir/TTF/fonts.cache-1
%_fontsdir/TTF
%changelog
…
Full changelog you can see here