commit a82a2b17c02aec12cd2d32b432ada70ec1d8b8fd Author: Adrian Schröter Date: Wed Jun 7 09:55:09 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 figlet revision dd2b21fa546e71e51a4e541f649ccf4c diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/contributed.tar.gz b/contributed.tar.gz new file mode 100644 index 0000000..2730504 --- /dev/null +++ b/contributed.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c569e052e638b28e4205023ae717f7b07e05695b728e4c80f4ce700354b18c8 +size 1393560 diff --git a/figlet-2.2.5-patched.tar.bz2 b/figlet-2.2.5-patched.tar.bz2 new file mode 100644 index 0000000..704cde2 --- /dev/null +++ b/figlet-2.2.5-patched.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f37429b4eda7b43ac1c4c1129e7075575367002e03be388f7588cf82f53e81ff +size 189662 diff --git a/figlet-2.2.5.tar.gz b/figlet-2.2.5.tar.gz new file mode 100644 index 0000000..fcffa0a --- /dev/null +++ b/figlet-2.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d +size 233201 diff --git a/figlet-config.patch b/figlet-config.patch new file mode 100644 index 0000000..416df62 --- /dev/null +++ b/figlet-config.patch @@ -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 diff --git a/figlet-licpatch.sh b/figlet-licpatch.sh new file mode 100644 index 0000000..a551e6b --- /dev/null +++ b/figlet-licpatch.sh @@ -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 diff --git a/figlet.changes b/figlet.changes new file mode 100644 index 0000000..4642417 --- /dev/null +++ b/figlet.changes @@ -0,0 +1,156 @@ +------------------------------------------------------------------- +Tue May 23 04:33:32 UTC 2023 - Jiri Srain + +- 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 + + diff --git a/figlet.spec b/figlet.spec new file mode 100644 index 0000000..0c9fa93 --- /dev/null +++ b/figlet.spec @@ -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 diff --git a/international.tar.gz b/international.tar.gz new file mode 100644 index 0000000..da76950 --- /dev/null +++ b/international.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6493f51c96f8671c29ab879a533c50b31ade681acfb59e50bae6b765e70c65a +size 3683121 diff --git a/ours.tar.gz b/ours.tar.gz new file mode 100644 index 0000000..335c61a --- /dev/null +++ b/ours.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10184c883faa63e91c8c7d99f100fe2f76195221ff8863d29c1beef88f666e69 +size 46339