Package vera-fonts-ttf: Specfile

%define ttfdir %_datadir/fonts/default/TrueType-vera
%define origname ttf-bitstream-vera

Name: vera-fonts-ttf
Version: 1.10
Release: alt2

Summary: Bitstream Vera Fonts
License: Freely distributable
Group: System/Fonts/True type

Url: http://www.gnome.org/fonts
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%origname/%origname-%version.tar.bz2

BuildArch: noarch

PreReq: fontconfig chkfontpath freetype
BuildRequires: freetype

Summary(ru_RU.KOI8-R): \xfb\xd2\xc9\xc6\xd4\xd9 Bitstream Vera
Summary(uk_UA.KOI8-U): \xfb\xd2\xc9\xc6\xd4\xc9 Bitstream Vera

%description
This package contains Bitstream Vera fonts.

%description -l ru_RU.KOI8-R
\xfc\xd4\xcf\xd4 \xd0\xc1\xcb\xc5\xd4 \xd3\xcf\xc4\xc5\xd2\xd6\xc9\xd4 \xd3\xd7\xcf\xc2\xcf\xc4\xce\xcf \xd2\xc1\xd3\xd0\xd2\xcf\xd3\xd4\xd2\xc1\xce\xd1\xc5\xcd\xd9\xc5 \xdb\xd2\xc9\xc6\xd4\xd9 Bitstream Vera.

%description -l uk_UA.KOI8-U
\xe3\xc5\xca \xd0\xc1\xcb\xd5\xce\xcf\xcb ͦ\xd3\xd4\xc9\xd4\xd8 צ\xcc\xd8\xce\xcf \xd2\xcf\xda\xd0\xcf\xd7\xd3\xc0\xc4\xd6\xd5\xd7\xc1Φ \xdb\xd2\xc9\xc6\xd4\xc9 Bitstream Vera.

%prep
%setup -q -n %origname-%version

%build
%install
%__mkdir_p %buildroot%ttfdir/
%__install -p -m644 *.ttf %buildroot%ttfdir/
cd %buildroot%ttfdir
%_sbindir/ttmkfdir -o ./fonts.dir >& /dev/null
%__ln_s %_sysconfdir/X11/encodings.dir encodings.dir
touch fonts.cache-1

%post
%_bindir/fc-cache %ttfdir ||:
%_sbindir/chkfontpath -q --add %ttfdir ||:

%postun
if [ "$1" = "0" ]; then
	%_sbindir/chkfontpath -q --remove %ttfdir ||:
fi

%triggerpostun -- %name < 1.10-alt2
%_sbindir/chkfontpath -q --add %ttfdir ||:

%files
%doc COPYRIGHT.TXT local.conf README.TXT RELEASENOTES.TXT
%ttfdir

%changelog
* Thu Feb 12 2004 Michael Shigorin <mike@altlinux.ru> 1.10-alt2
- fixed #3691

* Sun Jan 04 2004 Michael Shigorin <mike@altlinux.ru> 1.10-alt1
- built for ALT Linux
  (looking at thai-fonts-ttf-0.1-alt2 spec by Vyacheslav Dikonov <slava@>)

* Thu Apr 17 2003 G\xf6tz Waschk <waschk linux-mandrake com> 1.10-2mdk
- add fonts.dir and fonts.scale for chkfontpath

* Thu Apr 17 2003 Frederic Crozat <fcrozat mandrakesoft com> - 1.10-1mdk
- Initial build.