Пакет fonts-ttf-malayalam: Specfile

%define _fontsdir %_datadir/fonts/ttf/malayalam

Name: fonts-ttf-malayalam
Version: 1.0
Release: alt6

Summary: Free Malayalam TrueType font
Summary (ru_RU.UTF-8): Малайский TrueType шрифт
License: GPL
Group: System/Fonts/True type
Url: http://savannah.nongnu.org/download/smc/free-mal-fonts.pkg/1.0

Source: malotf.tar.bz2

PreReq: fontconfig >= 2.4.2
Obsoletes: malayalam-fonts-ttf
Provides: malayalam-fonts-ttf = %version

BuildArch: noarch
BuildRequires: mkfontscale

%description
This Package provides free Malayalam TrueType font.

%description -l ru_RU.UTF-8
В этом пакете находится малайский TrueType шрифт.

%prep
%setup -q -n malotf

%install
mkdir -p %buildroot%_fontsdir
install -m644 *.ttf %buildroot%_fontsdir

mkfontscale %buildroot%_fontsdir
ln -s fonts.scale %buildroot%_fontsdir/fonts.dir

mkdir -p %buildroot%_sysconfdir/X11/fontpath.d
ln -s ../../..%_fontsdir %buildroot%_sysconfdir/X11/fontpath.d/ttf-malayalam:pri=50

%post
%_bindir/fc-cache %_fontsdir ||:

%files
%doc MalOtf.txt
%_sysconfdir/X11/fontpath.d/*
%_fontsdir

%changelog
* Fri Aug 31 2007 Valery Inozemtsev <shrek@altlinux.ru> 1.0-alt6
- rebuild with fonts policy
- used %_sysconfdir/X11/fontpath.d, adieu chkfontpath

* Mon Jul 11 2005 Vyacheslav Dikonov <slava@altlinux.ru> 1.0-alt5
- link to encodings.dir removed, no longer requires freetype

* Thu Dec 16 2004 Vyacheslav Dikonov <slava@altlinux.ru> 1.0-alt4
- link to encodings.dir fixed

* Wed Feb 18 2004 Vyacheslav Dikonov <slava@altlinux.ru> 1.0-alt3
- %postun script fix

* Sun Aug 24 2003 Vyacheslav Dikonov <slava@altlinux.ru> 1.0-alt2
- Changed dir
- Cleanups

* Wed Nov 27 2002 Vyacheslav Dikonov <slava@altlinux.ru> 1.0-alt1
- ALTLinux build