File terminus-font.spec of Package terminus-font

# spec file for package terminus-font (Version 4.28)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           terminus-font
BuildRequires:  xorg-x11
License:        GPLv2+
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(ru;bg)
Version:        4.28
Release:        3
Patch1:         terminus-font.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Summary:        readable fixed width fonts for X11 and the Linux console

Terminus Font is designed for long (8 and more hours per day) work with
computers. Version 4.03 contains 538 characters, covering code pages
ISO8859-1/2/5/9/15/16, Windows-1250/1251/1252/1254,
IBM-437/852/855/866, KOI8-R/U/E/F, Bulgarian-MIK, Paratype-PT154/PT254
and Macintosh-Ukrainian, and also the vt100 and xterm pseudographic

The sizes and styles present are 8x14-normal, 8x14-bold,
8x14-EGA/VGA-bold, 8x16-normal, 8x16-bold, 8x16-EGA/VGA-bold,
10x20-normal, 10x20-bold, 12x24-normal, 12x24-bold and 14x28-normal
(which's weight is actually between normal and bold).

    Dimitar Toshkov Zhekov <>

%setup -q
%patch1 -p1
%define x11dir /usr/share/fonts/misc/
%define psfdir /usr/share/kbd/consolefonts

./configure --prefix=/usr
make -e x11dir=%{x11dir} psfdir=%{psfdir}

make -e DESTDIR=${RPM_BUILD_ROOT}  x11dir=%{x11dir} psfdir=%{psfdir} install
rm -f ${RPM_BUILD_ROOT}%{x11dir}/fonts.dir
pushd ${RPM_BUILD_ROOT}%{psfdir}
    rename .psf.gz .psfu.gz *.psf.gz

#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT



%defattr(-, root,root)
%doc README*
%dir /usr/share/kbd