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:
Andreas Jaeger 2011-07-18 07:20:07 +00:00 committed by Git OBS Bridge
parent b5c91c8e37
commit 3d6d710fa1
16 changed files with 131 additions and 160 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:238a8be55116dc4d46e9a0bb4e1b924ade5953faa64b5943b085e2f573aaaf88
size 1281726

BIN
contributed.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f6e68a8bffb82dcdd413f7e9d691b68ed383f5f01f7d29cbfbb18060938570e
size 182857

3
figlet-2.2.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e1801b3fd32ea33a470a92b5d04955fba5c7992feae777ee0e8b8ca52ad0ca7
size 229245

View File

@ -1,71 +1,18 @@
--- Makefile --- Makefile.orig 2011-01-26 12:36:21.000000000 +0200
+++ Makefile +++ Makefile 2011-07-16 17:30:18.210000038 +0300
@@ -4,7 +4,7 @@ @@ -29,13 +29,13 @@
# Copyright 1996, 1997, 1998, 1999, 2000, 2001 John Cowan XCFLAGS = -DTLF_FONTS
# Copyright 2002 Christiaan Keet
-# Please make sure DESTDIR, MANDIR, DEFAULTFONTDIR and # Where to install files
+# Please make sure BINDIR, MANDIR, DEFAULTFONTDIR and -prefix = /usr/local
# DEFAULTFONTFILE are defined to reflect the situation +prefix = /usr
# on your computer. See README for details.
@@ -15,15 +15,15 @@
CFLAGS = -g
# Where the executables should be put # Where the executables should be put
-DESTDIR = /usr/local/bin BINDIR = $(prefix)/bin
+BINDIR = /usr/games
# Where the man page should be put # Where the man page should be put
-MANDIR = /usr/local/man/man6 -MANDIR = $(prefix)/man
+MANDIR = /usr/share/man/man6 +MANDIR = $(prefix)/share/man
# Where figlet will search first for fonts (the ".flf" files). # Where figlet will search first for fonts (the ".flf" files).
-DEFAULTFONTDIR = /usr/local/share/figlet DEFAULTFONTDIR = $(prefix)/share/figlet
+DEFAULTFONTDIR = /usr/share/games/figlet/fonts
# Use this definition if you can't put things in /usr/local/share/figlet
-DEFAULTFONTDIR = fonts
+#DEFAULTFONTDIR = fonts
# The filename of the font to be used if no other is specified
# (standard.flf is recommended, but any other can be used).
@@ -52,11 +52,11 @@
rm -f *.o figlet chkfont
install: figlet chkfont
- mkdir -p $(DEFAULTFONTDIR)
- cp figlet $(DESTDIR)
- cp figlet.6 $(MANDIR)
- cp chkfont $(DESTDIR)
- cp figlist $(DESTDIR)
- cp showfigfonts $(DESTDIR)
- cp fonts/*.flf $(DEFAULTFONTDIR)
- cp fonts/*.flc $(DEFAULTFONTDIR)
+ mkdir -p $(DESTDIR)$(DEFAULTFONTDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
+ cp figlet $(DESTDIR)$(BINDIR)
+ cp figlet.6 $(DESTDIR)$(MANDIR)
+ cp chkfont $(DESTDIR)$(BINDIR)
+ cp figlist $(DESTDIR)$(BINDIR)
+ cp showfigfonts $(DESTDIR)$(BINDIR)
+ cp fonts/*.flf $(DESTDIR)$(DEFAULTFONTDIR)
+ cp fonts/*.flc $(DESTDIR)$(DEFAULTFONTDIR)
--- README
+++ README
@@ -90,13 +90,14 @@
nroff -man figlet.6 | more
(2) Do a complete installation. To do the this, set the variables
-DESTDIR and MANDIR in Makefile to the appropriate values. DESTDIR
+BINDIR and MANDIR in Makefile to the appropriate values. BINDIR
should be the full pathname of the directory in which the executable
files should be put (we recommend "/usr/games"); MANDIR should be the
full pathname of the directory in which the figlet man page should be
put, generally "/usr/man/man6". Once DEFAULTFONTDIR, DEFAULTFONTFILE,
-DESTDIR and MANDIR have been set, in the directory containing the FIGlet
-source, type "make install".
+BINDIR and MANDIR have been set, in the directory containing the FIGlet
+source, type "make install". You can relocate install objects into a
+staging area by "make DESTDIR=/tmp/figlet_staging_area install".
If space is a problem, the only files you absolutely must have to run
figlet are "figlet" (the executable) and at least one font (preferably

View File

@ -1,22 +0,0 @@
--- chkfont.c
+++ chkfont.c
@@ -1,6 +1,9 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#ifdef __STDC__
+#include <stdlib.h>
+#endif
#define DATE "20 Feb 1996"
#define VERSION "2.2"
--- figlet.c
+++ figlet.c
@@ -54,6 +54,7 @@
#endif
#include <stdio.h>
+#include <unistd.h>
#ifdef __STDC__
#include <stdlib.h>
#endif

View File

@ -1,20 +1,20 @@
# removes stuff under old Unicode license # removes stuff under old Unicode license
# $1 is directory with tarballs # $1 is directory with tarballs
set -o errexit set -o errexit
if test -f "$1/figlet222.tar.bz2" ; then VERSION=2.2.4
if test -f "$1/figlet-$VERSION.tar.gz" ; then
TMPDIR=`mktemp -d` TMPDIR=`mktemp -d`
if test -d $TMPDIR ; then if test -d $TMPDIR ; then
trap "rm -rf \"$TMPDIR\" \"$1/figlet222-patched.tar.bz2\"" ERR trap "rm -rf \"$TMPDIR\" \"$1/figlet-$VERSION-patched.tar.bz2\"" ERR
cd $TMPDIR cd $TMPDIR
tar -xjf "$1/figlet222.tar.bz2" tar -xzf "$1/figlet-$VERSION.tar.gz"
rm -f figlet222/fonts/jis0201.flc figlet222/fonts/8859-*.flc rm -f figlet-$VERSION/fonts/jis0201.flc figlet-$VERSION/fonts/8859-*.flc
tar -cjf "$1/figlet222-patched.tar.bz2" figlet222 tar -cjf "$1/figlet-$VERSION-patched.tar.bz2" figlet-$VERSION
cd - 1>/dev/null cd - 1>/dev/null
rm -Rf $TMPDIR rm -Rf $TMPDIR
else else
echo "creating tmp dir failed" echo "creating tmp dir failed"
fi fi
else else
echo "file: $1/figlet222.tar.bz2 doesn't exist" echo "file: $1/figlet-$VERSION.tar.gz doesn't exist"
fi fi

View File

@ -1,10 +0,0 @@
--- chkfont.c
+++ chkfont.c
@@ -68,6 +68,7 @@
ptr=(char *)malloc(size);
if (ptr==NULL) {
fprintf(stderr,"%s: Out of memory\n",myname);
+ return(NULL);
}
else {
return(ptr);

View File

@ -1,3 +1,47 @@
-------------------------------------------------------------------
Sat Jul 16 18:49:38 UTC 2011 - asterios.dramis@gmail.com
- Update to version 2.2.4:
* Add support to Sam Hocevar's TOIlet TLF fonts containing UTF-8
encoded Unicode characters.
* Add infocode 5 to list supported font formats
* Fix rendering error caused by the previous attempt to fix invalid
memory accesses when smushing at start of line
* New environment variable FIGLET_FONTDIR can be used to specify
the path to search for fonts
* Add regression tests
From 2.2.3:
* License changed from "Academic Free License" to "New BSD License"
(3-clause) as agreed by FIGlet authors
* New JIS X 0201 control file (Micah Cowan)
* Fix behavior of JIS0201 SHIFT-OUT and SHIFT-IN that were previouly
inverted (Micah Cowan)
* Fix memory violation when smushing at line start
* Fix handling of memory allocation errors
* Relicense Ed Hamrick zipio under the MIT license. This should
eliminate any concerns about redistribution of FIGlet as libre
software.
* Update Makefile to meet modern standards in variable naming, using
BINDIR as the pathname for binary files and reservind DESTDIR
as the extra prefix commonly used in package building.
* Add a Turbo C makefile, just because I had the compiler. (this
also tests portability to old compilers and foreign platforms)
* Add Jonathon Abbott's man pages for figlist, showfigfonts and
chkfont originally contributed to the Debian Project
- Spec file updates:
* Changes based on spec-cleaner run.
* Changed License: to BSD-3-Clause.
* Install binaries in /usr/bin and fonts in /usr/share/figlet.
* Minor other updates.
- Rebased figlet-config.patch to apply cleanly.
- Removed figlet-random.patch and figlet-implicit.patch (fixed upstream).
-------------------------------------------------------------------
Mon Mar 7 19:13:36 UTC 2011 - cdenicolo@novell.com
- license update: AFLv2.1
license is AFLv2.1
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de

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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,31 +19,30 @@
Name: figlet 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. # Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code. # 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} %if 0%{?BUILD_ORIG}
Source0: figlet222.tar.bz2 Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/%{name}-%{version}.tar.gz
%else %else
# WARNING: This is not a comment, but a real command to repack souce: # WARNING: This is not a comment, but a real command to repack source:
#%(sh %{_sourcedir}/%{name}-licpatch.sh %{_sourcedir}) #%(sh %{_sourcedir}/figlet-licpatch.sh %{_sourcedir})
Source0: figlet222-patched.tar.bz2 Source0: %{name}-%{version}-patched.tar.bz2
%endif %endif
Source1: contributed.tar.bz2 Source1: ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz
Source2: international.tar.bz2 Source2: ftp://ftp.figlet.org/pub/figlet/fonts/international.tar.gz
Source3: ours.tar.bz2 Source3: ftp://ftp.figlet.org/pub/figlet/fonts/ours.tar.gz
Source4: figlet222-8859tables.tar.bz2 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 Patch0: figlet-config.patch
Patch1: figlet-random.patch
Patch2: figlet-implicit.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
%description %description
FIGlet can create characters in many different styles and can kern and 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 generally reminiscent of the sort of "signatures" many people like to
put at the end of e-mail and UseNet messages. 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 %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 %patch0
%patch1
%patch2
%build %build
make CFLAGS="$RPM_OPT_FLAGS" make CFLAGS="%{optflags}"
%install %install
make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=%{buildroot} install %make_install
cp -a contributed %{buildroot}/usr/share/games/figlet/fonts
cp -a international %{buildroot}/usr/share/games/figlet/fonts # For inclusion in documentation
cp -a ours %{buildroot}/usr/share/games/figlet/fonts mv contributed/bdffonts/bdf2flf.pl .
chmod 0755 %{buildroot}/usr/games/showfigfonts %{buildroot}/usr/games/figlist 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 %clean
rm -rf "%{buildroot}" rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
/usr/games/* %doc CHANGES FAQ LICENSE README figfont.txt
/usr/share/games/figlet %doc bdf2flf.pl febrew
%doc /usr/share/man/man6/* %{_bindir}/chkfont
%doc LICENSE CHANGES README FAQ %{_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 %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:38834f5264ee47a83be54c2fcd572d9c8bf6f447bdd0d1efa78dbf064af30bb3
size 134455

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:951b381a7beb3c5698bfd6a1828e808ff92130c27c0e3f17cdc565cadeed5e02
size 140057

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1d19d4bf876cbdade32119331a6846f743e7882f58dda5eb706b832e40baa30
size 3692477

BIN
international.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53faf6c0ba07d27a47626e96d4806d96c8a73a6e875771be52b61d984de0340b
size 35483

BIN
ours.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.