Sync from SUSE:ALP:Source:Standard:1.0 figlet revision dd2b21fa546e71e51a4e541f649ccf4c

This commit is contained in:
Adrian Schröter 2023-06-07 09:55:09 +02:00
commit a82a2b17c0
10 changed files with 330 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

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

Binary file not shown.

BIN
figlet-2.2.5-patched.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
figlet-2.2.5.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

18
figlet-config.patch Normal file
View File

@ -0,0 +1,18 @@
--- Makefile.orig 2011-01-26 12:36:21.000000000 +0200
+++ Makefile 2011-07-16 17:30:18.210000038 +0300
@@ -29,13 +29,13 @@
XCFLAGS = -DTLF_FONTS
# Where to install files
-prefix = /usr/local
+prefix = /usr
# Where the executables should be put
BINDIR = $(prefix)/bin
# Where the man page should be put
-MANDIR = $(prefix)/man
+MANDIR = $(prefix)/share/man
# Where figlet will search first for fonts (the ".flf" files).
DEFAULTFONTDIR = $(prefix)/share/figlet

21
figlet-licpatch.sh Normal file
View File

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

156
figlet.changes Normal file
View File

@ -0,0 +1,156 @@
-------------------------------------------------------------------
Tue May 23 04:33:32 UTC 2023 - Jiri Srain <jsrain@suse.com>
- adjust .spec-file to list all sources independently on the
build options
- flag the license properly
-------------------------------------------------------------------
Wed May 31 09:57:37 UTC 2017 - bwiedemann@suse.com
- delete file from tar without repacking
to make build reproducible
-------------------------------------------------------------------
Sat Mar 14 14:26:36 UTC 2015 - benoit.monin@gmx.fr
- update to version 2.2.5:
* Add regression tests for uskata and jis0201 control files
* Properly escape minus signs in figlist(6) man page
* Fix chkfont coredump on invalid input
* Update ISO8859 map files to fix licensing issue raised in Debian
bugs 673096 and 674844
* Re-add missing figmagic and getopt.c files which were left out
of releases 2.2.3 and 2.2.4
* Fix output of test script in MacOS X
- remove source figlet222-8859tables.tar.bz2: fixed upstream
- update figlet-licpatch.sh: iso8859 files fixed updtream
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
- Apply packaging guidelines (remove redundant/obsolete
tags/sections from specfile, etc.)
-------------------------------------------------------------------
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
- make patch0 usage consistent
-------------------------------------------------------------------
Thu Jun 21 13:39:31 CEST 2007 - pcerny@suse.cz
- more update due to [#285171]
-------------------------------------------------------------------
Mon Jun 18 20:29:51 CEST 2007 - pcerny@suse.cz
- updated some files from unicode.org [#285171]
-------------------------------------------------------------------
Thu Jun 14 19:21:26 CEST 2007 - pcerny@suse.cz
- changed permissions for showfigfonts and figlist (#281419)
-------------------------------------------------------------------
Wed Jan 25 21:35:53 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Nov 8 14:51:59 CET 2005 - dmueller@suse.de
- don't build as root
-------------------------------------------------------------------
Wed Jul 20 18:32:19 CEST 2005 - sbrabec@suse.cz
- Updated to version 2.2.2.
-------------------------------------------------------------------
Tue Oct 15 18:06:59 CEST 2002 - sbrabec@suse.cz
- Update to version 2.2.1.
- Make build root install.
- FHS fixes (use games specific paths).
-------------------------------------------------------------------
Thu Dec 6 01:55:44 CET 2001 - ro@suse.de
- install manpage into right place
-------------------------------------------------------------------
Mon Jul 16 14:05:11 CEST 2001 - rvasice@suse.cz
- fix bug [9215]
-------------------------------------------------------------------
Tue May 8 11:59:19 CEST 2001 - mfabian@suse.de
- bzip2 some sources
-------------------------------------------------------------------
Sat Dec 9 18:43:19 MET 2000 - nashif@suse.de
- sorted
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Mon Apr 20 22:46:12 MEST 1998 - ray@suse.de
- move to /usr/lib/figlet
-------------------------------------------------------------------
Tue Apr 7 12:45:09 MEST 1998 - ray@suse.de
- new package figlet V2.2

97
figlet.spec Normal file
View File

@ -0,0 +1,97 @@
#
# spec file for package figlet
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: figlet
Version: 2.2.5
Release: 0
Summary: Tool for Creating Cool ASCII-Art Signatures
License: BSD-3-Clause
Group: Productivity/Text/Utilities
URL: http://www.figlet.org/
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
%if 0%{?BUILD_ORIG}
Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/%{name}-%{version}.tar.gz
Source999: %{name}-%{version}-patched.tar.bz2
%else
# 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
Source999: ftp://ftp.figlet.org/pub/figlet/program/unix/%{name}-%{version}.tar.gz
%endif
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
Source100: figlet-licpatch.sh
# PATCH-FIX-OPENSUSE figlet-config.patch -- Fix installation directories
Patch0: figlet-config.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
%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
%setup -q -a 1 -a 2 -a 3
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
%build
make CFLAGS="%{optflags}" %{?_smp_mflags}
%install
%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}
%files
%defattr(-,root,root,-)
%doc CHANGES FAQ README figfont.txt
%license LICENSE
%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

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

Binary file not shown.

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

Binary file not shown.