File int10h-oldschoolpc-fonts.spec of Package int10h-oldschoolpc-fonts

#
# spec file for package int10h-oldschoolpc-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/
#


Name:           int10h-oldschoolpc-fonts
Version:        1.0
Release:        0
Summary:        Remakes of old computer hardware fonts
License:        CC-BY-SA-4.0
Group:          System/X11/Fonts
Url:            http://int10h.org/oldschool-pc-fonts/

Source:         http://int10h.org/oldschool-pc-fonts/download/ultimate_oldschool_pc_font_pack_v1.0.zip
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
%reconfigure_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This fontpack contains pixel-accurate remakes of various type styles
from text-mode era PCs — in modern Unicode-compatible TrueType form
(plus straight bitmap versions). The main focus is on hardware
character sets: the kind that's located in a ROM and shown by default
when working in text (or graphics) mode.

[These fonts are not corrected for the different pixel ratios used by
the eponymous historic hardware; you need to manually do this with e.g.
`xterm -fa "ATI 8x16:matrix=1 0 0 1.35"`]

%prep
%setup -Tcqa0

%build
iconv -f cp437 -t utf-8 <README.NFO | perl -i -pe 's{\r}{}g' >readme.txt
mv LICENSE.TXT license.txt

%install
c="%buildroot/%_ttfontsdir"
mkdir -p "$c"
install -pm 0644 */*.ttf "$c/"

%reconfigure_fonts_scriptlets

%files
%defattr(-, root,root)
%doc readme.txt license.txt
%_ttfontsdir/

%changelog
openSUSE Build Service is sponsored by