SHA256
1
0
forked from pool/figlet

Accepting request 76334 from home:adra:branches:Base:System

Update to version 2.2.4, Spec file updates, Rebased figlet-config.patch to apply cleanly, Removed figlet-random.patch and figlet-implicit.patch (fixed upstream)

OBS-URL: https://build.opensuse.org/request/show/76334
OBS-URL: https://build.opensuse.org/package/show/Base:System/figlet?expand=0&rev=6
This commit is contained in:
2011-07-18 07:20:07 +00:00
committed by Git OBS Bridge
parent de76d84403
commit 4d3f48ac6a
16 changed files with 131 additions and 160 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package figlet (Version 2.2.2)
# spec file for package figlet
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 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
@@ -19,31 +19,30 @@
Name: figlet
Version: 2.2.4
Release: 1
License: BSD-3-Clause
Summary: Tool for Creating Cool ASCII-Art Signatures
Url: http://www.figlet.org/
Group: Productivity/Text/Utilities
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
Url: http://www.figlet.org/
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
Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/%{name}-%{version}.tar.gz
%else
# WARNING: This is not a comment, but a real command to repack souce:
#%(sh %{_sourcedir}/%{name}-licpatch.sh %{_sourcedir})
Source0: figlet222-patched.tar.bz2
# 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
%endif
Source1: contributed.tar.bz2
Source2: international.tar.bz2
Source3: ours.tar.bz2
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
Source4: figlet222-8859tables.tar.bz2
Source5: figlet-licpatch.sh
Source100: figlet-licpatch.sh
# PATCH-FIX-OPENSUSE figlet-config.patch -- Fix installation directories
Patch0: figlet-config.patch
Patch1: figlet-random.patch
Patch2: figlet-implicit.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
%description
FIGlet can create characters in many different styles and can kern and
@@ -51,38 +50,51 @@ FIGlet can create characters in many different styles and can kern and
generally reminiscent of the sort of "signatures" many people like to
put at the end of e-mail and UseNet messages.
Authors:
--------
Glenn Chappell <c486scm@semovm.semo.edu>
Ian Chai <ianchai@usa.net>
Christiaan Keet <info@figlet.org>
%prep
%setup -n figlet222 -a 1 -a 2 -a 3 -a 4
%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 ..
%patch0
%patch1
%patch2
%build
make CFLAGS="$RPM_OPT_FLAGS"
make CFLAGS="%{optflags}"
%install
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
%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}
%clean
rm -rf "%{buildroot}"
rm -rf %{buildroot}
%files
%defattr(-,root,root)
/usr/games/*
/usr/share/games/figlet
%doc /usr/share/man/man6/*
%doc LICENSE CHANGES README FAQ
%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}
%changelog