Author: gotar Date: Sun Mar 7 18:07:46 2010 GMT Module: packages Tag: HEAD ---- Log message: - added asciiview-lame_bashizm.patch, rel. 6
---- Files affected: packages/aview: aview.spec (1.38 -> 1.39) , asciiview-lame_bashizm.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/aview/aview.spec diff -u packages/aview/aview.spec:1.38 packages/aview/aview.spec:1.39 --- packages/aview/aview.spec:1.38 Mon Feb 12 22:23:48 2007 +++ packages/aview/aview.spec Sun Mar 7 19:07:41 2010 @@ -3,11 +3,12 @@ Summary(pl.UTF-8): Przeglądarka obrazków i animacji jako ASCII Art Name: aview Version: 1.3.0rc1 -Release: 5 -License: GPL +Release: 6 +License: GPL v2 Group: Applications/Graphics Source0: http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz # Source0-md5: 093f298e7787591e229b59d039c72f4d +Patch0: asciiview-lame_bashizm.patch URL: http://aa-project.sourceforge.net/aview/ BuildRequires: aalib-devel BuildRequires: autoconf @@ -39,6 +40,7 @@ %prep %setup -q -n %{name}-1.3.0 +%patch0 -p0 %build %{__autoconf} @@ -60,7 +62,7 @@ %files %defattr(644,root,root,755) -%doc ANNOUNCE ChangeLog AUTHORS NEWS README README.flip TODO +%doc ANNOUNCE AUTHORS ChangeLog NEWS README README.flip TODO %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* @@ -70,6 +72,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.39 2010/03/07 18:07:41 gotar +- added asciiview-lame_bashizm.patch, rel. 6 + Revision 1.38 2007/02/12 21:23:48 glen - tabs in preamble ================================================================ Index: packages/aview/asciiview-lame_bashizm.patch diff -u /dev/null packages/aview/asciiview-lame_bashizm.patch:1.1 --- /dev/null Sun Mar 7 19:07:46 2010 +++ packages/aview/asciiview-lame_bashizm.patch Sun Mar 7 19:07:41 2010 @@ -0,0 +1,69 @@ +--- asciiview 2001-04-25 17:59:22.000000000 +0200 ++++ /usr/bin/asciiview 2010-03-07 18:58:25.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # asciiview - an ascii art image browser script. Front end for aview/aaflip + clear() + { +@@ -7,9 +7,9 @@ + } + myconvert() + { +- if anytopnm $1 >/tmp/aview$$.pgm 2>/dev/null ; then ++ if anytopnm "$1" >/tmp/aview$$.pgm 2>/dev/null; then + exit +- elif convert -colorspace gray $1 pgm:- 2>/dev/null ; then ++ elif convert -colorspace gray "$1" pgm:- 2>/dev/null; then + exit + fi + echo "Failed to convert file format to PNM by both convert and anytopnm" >&2 +@@ -17,7 +17,7 @@ + echo "0 " + done + } +-filenames="" ++set -A filenames + options="" + if [ "$1" = "" ]; then + echo "$0 - an ascii art image/animation browser. +@@ -45,29 +45,30 @@ + shift + ;; + *) +- filenames="$filenames $1" ++ filenames[${#filenam...@]}]="$1" + shift + ;; + esac + done +-trap clear 0 ++trap clear 0 2 3 9 15 + mkfifo /tmp/aview$$.pgm +-outfile=/tmp/aview$$.pgm +-for name in $filenames ; do +-if test -r $name ; then +-case $name in ++i=0 ++while [ $i -lt ${#filenam...@]} ]; do ++ name=${filenames[$i]} ++ if [ -r "$name" ]; then ++ case "$name" in + *.fli | *.lfc | *.flic ) + PATH="$PATH:." +- aaflip $options $name ++ aaflip $options "$name" + ;; + *) +- myconvert $name >/tmp/aview$$.pgm & ++ myconvert "$name" > /tmp/aview$$.pgm & + pid=$! +- PATH="$PATH:." + aview $options /tmp/aview$$.pgm + kill $pid 2>/dev/null + esac + else + echo "$name could not be opended" + fi ++ i=$((i+1)) + done ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/aview/aview.spec?r1=1.38&r2=1.39&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
