From 778afa213be2631a76c3e45224bc98936b6621c2c1139fd68a2d2b0ca0f75b63 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 21 Jun 2007 22:18:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/figlet?expand=0&rev=4 --- figlet-licpatch.sh | 20 ++++++++++++++++++++ figlet.changes | 5 +++++ figlet.spec | 18 ++++++++++++++---- 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 figlet-licpatch.sh diff --git a/figlet-licpatch.sh b/figlet-licpatch.sh new file mode 100644 index 0000000..b65834a --- /dev/null +++ b/figlet-licpatch.sh @@ -0,0 +1,20 @@ +# removes stuff under old Unicode license +# $1 is directory with tarballs +set -o errexit +if test -f "$1/figlet222.tar.bz2" ; then + TMPDIR=`mktemp -d` + if test -d $TMPDIR ; then + trap "rm -rf \"$TMPDIR\" \"$1/figlet222-patched.tar.bz2\"" ERR + cd $TMPDIR + tar -xjf "$1/figlet222.tar.bz2" + rm -f figlet222/fonts/jis0201.flc figlet222/fonts/8859-*.flc + tar -cjf "$1/figlet222-patched.tar.bz2" figlet222 + cd - 1>/dev/null + rm -Rf $TMPDIR + else + echo "creating tmp dir failed" + fi +else + echo "file: $1/figlet222.tar.bz2 doesn't exist" +fi + diff --git a/figlet.changes b/figlet.changes index 4a42a4b..5037739 100644 --- a/figlet.changes +++ b/figlet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/figlet.spec b/figlet.spec index ac6310d..e942c6e 100644 --- a/figlet.spec +++ b/figlet.spec @@ -11,19 +11,28 @@ # norootforbuild Name: figlet +# 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, Academic Free License version 2.1 Group: Productivity/Text/Utilities Autoreqprov: on Version: 2.2.2 -Release: 58 +Release: 59 Summary: Tool for Creating Cool ASCII-Art Signatures -Source: figlet222.tar.bz2 +%if 0%{?BUILD_ORIG} +Source0: figlet222.tar.bz2 +%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 +%endif Source1: contributed.tar.bz2 Source2: international.tar.bz2 Source3: ours.tar.bz2 Source4: figlet222-8859tables.tar.bz2 -Patch: figlet-config.patch +Source5: figlet-licpatch.sh +Patch0: figlet-config.patch Patch1: figlet-random.patch Patch2: figlet-implicit.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -47,7 +56,6 @@ Authors: %patch %patch1 %patch2 -rm fonts/jis0201.flc %build make CFLAGS="$RPM_OPT_FLAGS" @@ -70,6 +78,8 @@ rm -rf "%{buildroot}" %doc LICENSE CHANGES README FAQ %changelog +* Thu Jun 21 2007 - pcerny@suse.cz +- more update due to [#285171] * Mon Jun 18 2007 - pcerny@suse.cz - updated some files from unicode.org [#285171] * Thu Jun 14 2007 - pcerny@suse.cz