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.28
Release:        3
License:        GPL-2.0+
Summary:        readable fixed width fonts for X11 and the Linux console
Url:            http://www.is-vn.bg/hamster/jimmy-en.html
Group:          System/X11/Fonts
#        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:         terminus-bitmap-fonts.patch
%if 0%{?suse_version} >= 1220
BuildRequires:  bdftopcf
%else
BuildRequires:  xorg-x11
%endif
%if 0%{?suse_version} < 1140
BuildRequires:  freetype2-devel
%endif
Requires(pre):  %suseconfig_fonts_prereq
Provides:       locale(ru;bg)
# FIXME: This causes a rpmlint warning; change <= to < once here's a new upstream version
Obsoletes:      terminus-font <= %{version}
Provides:       terminus-font = %{version}
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 -p1
%define x11dir /usr/share/fonts/misc/
%define psfdir /usr/share/kbd/consolefonts

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

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

%clean
#[ %{buildroot} != "/" ] && [ -d %{buildroot} ] && rm -rf %{buildroot}

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

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

%changelog
openSUSE Build Service is sponsored by