File terminus-bitmap-fonts.spec of Package terminus-font
#
# 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
%define _miscfontsdir /usr/share/fonts/misc
%define psfdir /usr/share/kbd/consolefonts
Name: terminus-bitmap-fonts
Version: 4.39
Release: 1.1
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
Source0: %{fontname}-%{version}.tar.gz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: %{name}.patch
BuildRequires: fontconfig-devel
%if 0%{?suse_version} >= 1220
BuildRequires: bdftopcf
%else
BuildRequires: xorg-x11
%endif
%if 0%{?suse_version} < 1140
BuildRequires: freetype2-devel
%endif
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
%files
%defattr(-, root,root)
%doc README*
%{_miscfontsdir}
%{psfdir}
%dir %{_datadir}/kbd
%changelog
* Sat Sep 1 2012 toms@opensuse.org
- Updated to version 4.38 (no changelog found)
- SPEC file changes
. corrected patch terminus-bitmap-fonts.patch
. corrected provides and obsoletes
* Wed Jul 4 2012 pgajdos@suse.cz
- amend spec file to reflect new font packaging scheme
(see openFATE#313536);
* Sat Jun 30 2012 i@marguerite.su
- fix builds for 12.2
* now bdftopcf is a separated package from xorg-x11.
* Thu May 17 2012 pgajdos@suse.com
- call spec-cleaner
* Thu May 3 2012 pgajdos@suse.com
- renamed terminus-font -> terminus-bitmap-fonts
* Thu Apr 8 2010 tiwai@suse.de
- remove unnecessary buildrequires for too old distros
* Sun Aug 30 2009 aj@suse.de
- Remove support for old distros.
- remove percent sign from changes for rpm 4.7.
* Sat Apr 18 2009 bernhard.walle@gmx.de
- update to 4.28.
* Wed Aug 9 2006 mfabian@suse.de
- update to 4.20.
* Tue Aug 8 2006 dmueller@suse.de
- install fonts under /usr/share/fonts
* Sun Mar 26 2006 ro@suse.de
- remove ifarched BuildReq (no ifarch in noarch package)
* Wed Mar 1 2006 mfabian@suse.de
- add "Provides: locale(ru;bg)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri May 20 2005 mfabian@suse.de
- update to 4.12.
* Fri Feb 11 2005 uli@suse.de
- added /usr/share/kbd directory to file list (no kbd package on s390*;
console fonts being useless on s390* the clean fix would be to
ifarch them, but this would make the package non-noarch)
* Fri Dec 3 2004 mfabian@suse.de
- update to 4.11.
- use new macro "%%run_suseconfig_fonts".
* Sun Jul 25 2004 ro@suse.de
- added kbd to neededforbuild
* Fri Mar 19 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Tue Jan 20 2004 mfabian@suse.de
- add mmj's check for existence of sbin/conf.d/SuSEconfig.pango
again.
* Tue Jan 20 2004 mfabian@suse.de
- update to 4.06.
- run SuSEconfig also in %%postun
* Mon Jan 12 2004 mmj@suse.de
- Also call SuSEconfig.pango
* Mon Jan 12 2004 mmj@suse.de
- Run SuSEconfig.fonts in %%post
* Mon Nov 3 2003 ro@suse.de
- updated neededforbuild
- don't build as root
* Tue Aug 19 2003 mfabian@suse.de
- new package: version 4.03.