File figlet.spec of Package figlet

# spec file for package figlet (Version 2.2.2)
# Copyright (c) 2009 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:           figlet
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
License:        Other uncritical OpenSource License
Group:          Productivity/Text/Utilities
AutoReqProv:    on
Version:        2.2.2
Release:        138
Summary:        Tool for Creating Cool ASCII-Art Signatures
%if 0%{?BUILD_ORIG}
Source0:        figlet222.tar.bz2
# WARNING: This is not a comment, but a real command to repack souce:
#%(sh %{_sourcedir}/%{name} %{_sourcedir})
Source0:        figlet222-patched.tar.bz2
Source1:        contributed.tar.bz2
Source2:        international.tar.bz2
Source3:        ours.tar.bz2
Source4:        figlet222-8859tables.tar.bz2
Patch0:         figlet-config.patch
Patch1:         figlet-random.patch
Patch2:         figlet-implicit.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

FIGlet can create characters in many different styles and can kern and
"smush" these characters together in various ways. FIGlet output is
generally reminiscent of the sort of "signatures" many people like to
put at the end of e-mail and UseNet messages.

    Glenn Chappell <>
    Ian Chai <>
    Christiaan Keet <>

%setup -n figlet222 -a 1 -a 2 -a 3 -a 4


make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=%{buildroot} install
cp -a contributed %{buildroot}/usr/share/games/figlet/fonts
cp -a international %{buildroot}/usr/share/games/figlet/fonts
cp -a ours %{buildroot}/usr/share/games/figlet/fonts
chmod 0755 %{buildroot}/usr/games/showfigfonts %{buildroot}/usr/games/figlist

rm -rf "%{buildroot}"

%doc /usr/share/man/man6/*