2007-01-16 00:12:20 +01:00
|
|
|
#
|
2011-07-18 09:20:07 +02:00
|
|
|
# spec file for package figlet
|
2007-01-16 00:12:20 +01:00
|
|
|
#
|
2011-07-18 09:20:07 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:12:20 +01:00
|
|
|
#
|
2009-06-17 19:34:06 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-06-15 00:19:52 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:12:20 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-17 19:34:06 +02:00
|
|
|
|
2007-06-15 00:19:52 +02:00
|
|
|
Name: figlet
|
2011-07-18 09:20:07 +02:00
|
|
|
Version: 2.2.4
|
|
|
|
Release: 1
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Summary: Tool for Creating Cool ASCII-Art Signatures
|
2009-06-17 19:34:06 +02:00
|
|
|
Url: http://www.figlet.org/
|
2007-06-15 00:19:52 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2011-07-18 09:20:07 +02:00
|
|
|
# Patched code is built by default.
|
|
|
|
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
|
2007-06-22 00:18:53 +02:00
|
|
|
%if 0%{?BUILD_ORIG}
|
2011-07-18 09:20:07 +02:00
|
|
|
Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/%{name}-%{version}.tar.gz
|
2007-06-22 00:18:53 +02:00
|
|
|
%else
|
2011-07-18 09:20:07 +02:00
|
|
|
# WARNING: This is not a comment, but a real command to repack source:
|
|
|
|
#%(sh %{_sourcedir}/figlet-licpatch.sh %{_sourcedir})
|
|
|
|
Source0: %{name}-%{version}-patched.tar.bz2
|
2007-06-22 00:18:53 +02:00
|
|
|
%endif
|
2011-07-18 09:20:07 +02:00
|
|
|
Source1: ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz
|
|
|
|
Source2: ftp://ftp.figlet.org/pub/figlet/fonts/international.tar.gz
|
|
|
|
Source3: ftp://ftp.figlet.org/pub/figlet/fonts/ours.tar.gz
|
2007-06-19 00:15:51 +02:00
|
|
|
Source4: figlet222-8859tables.tar.bz2
|
2011-07-18 09:20:07 +02:00
|
|
|
Source100: figlet-licpatch.sh
|
|
|
|
# PATCH-FIX-OPENSUSE figlet-config.patch -- Fix installation directories
|
2007-06-22 00:18:53 +02:00
|
|
|
Patch0: figlet-config.patch
|
2007-06-15 00:19:52 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-07-18 09:20:07 +02:00
|
|
|
BuildRequires: fdupes
|
2007-01-16 00:12:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2011-07-18 09:20:07 +02:00
|
|
|
%setup -q -a 1 -a 2 -a 3 -a 4
|
|
|
|
cd contributed
|
|
|
|
tar zxf Obanner-canon.tgz
|
|
|
|
rm Obanner-canon.tgz
|
|
|
|
tar zxf Obanner.tgz
|
|
|
|
rm Obanner.tgz
|
|
|
|
cd ..
|
|
|
|
cd international
|
|
|
|
tar zxf cjkfonts.tar.gz
|
|
|
|
rm cjkfonts.tar.gz
|
|
|
|
cd ..
|
2009-08-26 16:51:09 +02:00
|
|
|
%patch0
|
2007-01-16 00:12:20 +01:00
|
|
|
|
|
|
|
%build
|
2011-07-18 09:20:07 +02:00
|
|
|
make CFLAGS="%{optflags}"
|
2007-01-16 00:12:20 +01:00
|
|
|
|
|
|
|
%install
|
2011-07-18 09:20:07 +02:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
# For inclusion in documentation
|
|
|
|
mv contributed/bdffonts/bdf2flf.pl .
|
|
|
|
mv international/febrew .
|
|
|
|
|
|
|
|
cp -a contributed %{buildroot}%{_datadir}/figlet/
|
|
|
|
cp -a international %{buildroot}%{_datadir}/figlet/
|
|
|
|
cp -a ours %{buildroot}%{_datadir}/figlet/
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}
|
2007-01-16 00:12:20 +01:00
|
|
|
|
|
|
|
%clean
|
2011-07-18 09:20:07 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:12:20 +01:00
|
|
|
|
|
|
|
%files
|
2011-07-18 09:20:07 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES FAQ LICENSE README figfont.txt
|
|
|
|
%doc bdf2flf.pl febrew
|
|
|
|
%{_bindir}/chkfont
|
|
|
|
%{_bindir}/figlet
|
|
|
|
%{_bindir}/figlist
|
|
|
|
%{_bindir}/showfigfonts
|
|
|
|
%{_datadir}/figlet/
|
|
|
|
%doc %{_mandir}/man6/chkfont.6%{ext_man}
|
|
|
|
%doc %{_mandir}/man6/figlet.6%{ext_man}
|
|
|
|
%doc %{_mandir}/man6/figlist.6%{ext_man}
|
|
|
|
%doc %{_mandir}/man6/showfigfonts.6%{ext_man}
|
2007-01-16 00:12:20 +01:00
|
|
|
|
2007-06-15 00:19:52 +02:00
|
|
|
%changelog
|