File terminus-bitmap-fonts.spec of Package terminus-bitmap-fonts

#
# spec file for package terminus-bitmap-fonts
#
# Copyright (c) 2012 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 http://bugs.opensuse.org/
#


%define fontname terminus-font

Name:           terminus-bitmap-fonts
Version:        4.38
Release:        0
Summary:        Readable Fixed Width Fonts for X11 and the Linux Console
License:        GPL-2.0+
Group:          System/X11/Fonts
Url:            http://www.is-vn.bg/hamster/jimmy-en.html
#        http://www.is-vn.bg/hamster/terminus-font-{version}.tar.bz2
Source0:        %{fontname}-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         %{name}.patch
BuildRequires:  fontpackages-devel
%if 0%{?suse_version} >= 1220
BuildRequires:  bdftopcf
%else
BuildRequires:  xorg-x11
%endif
%if 0%{?suse_version} < 1140
BuildRequires:  freetype2-devel
%endif
%reconfigure_fonts_prereq
Provides:       terminus-font
Provides:       locale(ru;bg)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
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
characters.

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).

%prep
%setup -q -n %{fontname}-%{version}
%patch1 
%define psfdir /usr/share/kbd/consolefonts

%build
chmod +x ./configure
./configure --prefix=/usr
make -e x11dir=%{_miscfontsdir} psfdir=%{psfdir}

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

%reconfigure_fonts_scriptlets

%files
%defattr(-, root,root)
%doc README*
%{_miscfontsdir}
%{psfdir}
%dir %{_datadir}/kbd

%changelog
openSUSE Build Service is sponsored by