]> git.pld-linux.org Git - packages/mailcap.git/commitdiff
lynx doesn't support copiousoutput, stop it from using such handlers master auto/th/mailcap-2.3.45-4
authorTomasz Pala <gotar@pld-linux.org>
Mon, 2 Apr 2018 08:58:13 +0000 (10:58 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Mon, 2 Apr 2018 08:58:13 +0000 (10:58 +0200)
mailcap
mailcap.spec

diff --git a/mailcap b/mailcap
index 5faf4d9eac318f8972e983838fa1623405a86ad6..4c5f3c41f921f7ebca3e342eb3378ccbbbc86fae 100644 (file)
--- a/mailcap
+++ b/mailcap
@@ -2,9 +2,9 @@ image/*; /usr/bin/eog %s; test=[ -n "$DISPLAY" -a -x /usr/bin/eog ]
 image/*; /usr/bin/qiv -Rl %s; test=[ -n "$DISPLAY" ]
 image/*; /usr/bin/asciiview %s; test=[ -z "$DISPLAY" ]; needsterminal
 image/*; /usr/bin/cacaview %s; test=[ -z "$DISPLAY" ]; needsterminal
-image/*; /usr/bin/identify -verbose %s; copiousoutput
+image/*; /usr/bin/identify -verbose %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
-audio/mpeg; /usr/bin/id3v2 -l %s; copiousoutput
+audio/mpeg; /usr/bin/id3v2 -l %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 audio/mod; /usr/bin/mikmod %s
 
@@ -20,13 +20,13 @@ video/mpeg; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ]
 video/mpeg; /usr/bin/xterm -name mplayer -e /usr/bin/mplayer %s & /bin/sleep 1; test=[ -n "$DISPLAY" ]
 
 application/pdf; /usr/bin/xpdf %s; test=[ -n "$DISPLAY" ]
-application/pdf; /usr/bin/pdftotext -layout -nopgbrk %s -; copiousoutput
+application/pdf; /usr/bin/pdftotext -layout -nopgbrk %s -; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 application/postscript; /usr/bin/gv -safer %s; test=[ -n "$DISPLAY" ]
-application/postscript; /usr/bin/ps2ascii %s; copiousoutput
+application/postscript; /usr/bin/ps2ascii %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 application/x-dvi; /usr/bin/xdvi %s; test=[ -n "$DISPLAY" ]
-application/x-dvi; /usr/bin/dvi2tty -w123 %s; copiousoutput
+application/x-dvi; /usr/bin/dvi2tty -w123 %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 text/html; /usr/bin/htmlview %s; copiousoutput; test=[ -x /usr/bin/htmlview ]
 text/html; /usr/bin/elinks %s; nametemplate=%s.html; test=[ -z "$DISPLAY" ]
@@ -37,11 +37,11 @@ text/html; /usr/bin/elinks -dump -eval 'set document.codepage.assume = "%{charse
 
 application/x-shockwave-flash; /usr/bin/swfplayer %s & sleep 2; test=[ -n "$DISPLAY" ]
 
-application/rtf; /usr/bin/unrtf --nopict --text --quiet %s; copiousoutput
+application/rtf; /usr/bin/unrtf --nopict --text --quiet %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
-application/vnd.oasis.opendocument.presentation; odt2txt %s; copiousoutput; test=[ -z "$DISPLAY" ]
-application/vnd.oasis.opendocument.spreadsheet; odt2txt %s; copiousoutput; test=[ -z "$DISPLAY" ]
-application/vnd.oasis.opendocument.text; odt2txt %s; copiousoutput; test=[ -z "$DISPLAY" ]
+application/vnd.oasis.opendocument.presentation;odt2txt %s; copiousoutput; test=[ -z "$LYNX_VERSION" -a -z "$DISPLAY" ]
+application/vnd.oasis.opendocument.spreadsheet; odt2txt %s; copiousoutput; test=[ -z "$LYNX_VERSION" -a -z "$DISPLAY" ]
+application/vnd.oasis.opendocument.text;       odt2txt %s; copiousoutput; test=[ -z "$LYNX_VERSION" -a -z "$DISPLAY" ]
 
 application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \
@@ -58,7 +58,7 @@ application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
 application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \
        /usr/bin/elinks -dump content.html\; \
-       /bin/rm -rf "$tmp"; copiousoutput
+       /bin/rm -rf "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        /usr/bin/wvHtml %s --targetdir="$tmp" page.html -1\; \
@@ -75,7 +75,7 @@ application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
 application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        /usr/bin/wvHtml %s --targetdir="$tmp" page.html -1\; \
        /usr/bin/elinks -dump "$tmp/page.html"\; \
-       /bin/rm -rf "$tmp"; copiousoutput
+       /bin/rm -rf "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \
@@ -92,7 +92,7 @@ application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
 application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \
        /usr/bin/elinks -dump "$tmp/page.html"\; \
-       /bin/rm -rf "$tmp"; copiousoutput
+       /bin/rm -rf "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
 
 application/vnd.ms-powerpoint; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
        /usr/bin/ppthtml %s > "$tmp/page.html"\; \
@@ -109,15 +109,15 @@ application/vnd.ms-powerpoint; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
 application/vnd.ms-powerpoint; tmp=`/bin/mktemp %s.XXXXXX`\; \
        /usr/bin/ppthtml %s > "$tmp"\; \
        /usr/bin/elinks -dump "$tmp"\; \
-       /bin/rm -f "$tmp"; copiousoutput
-
-application/x-bzip-compressed-tar; /bin/tar jtvvf %s; copiousoutput
-application/x-tar; /bin/tar tvvf %s; copiousoutput
-application/x-tgz; /bin/tar ztvvf %s; copiousoutput
-application/x-rar-compressed; /usr/bin/unrar v -c- %s; copiousoutput
-application/x-zip-compressed; /usr/bin/unzip -v %s; copiousoutput
-application/zip; /usr/bin/unzip -v %s; copiousoutput
-application/x-rpm; /bin/rpm -qpilv %s; copiousoutput
-application/ms-tnef; /usr/bin/tnef -vt %s; copiousoutput
-application/pgp-encrypted; /usr/bin/gpg -vv %s 2>&1; copiousoutput
-application/pgp-signature; /usr/bin/gpg -vv %s 2>&1; copiousoutput
+       /bin/rm -f "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
+
+application/x-bzip-compressed-tar; /bin/tar jtvvf %s;  copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/x-tar; /bin/tar tvvf %s;                   copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/x-tgz; /bin/tar ztvvf %s;                  copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/x-rar-compressed; /usr/bin/unrar v -c- %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/x-zip-compressed; /usr/bin/unzip -v %s;    copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/zip; /usr/bin/unzip -v %s;                 copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/x-rpm; /bin/rpm -qpilv %s;                 copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/ms-tnef; /usr/bin/tnef -vt %s;             copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/pgp-encrypted; /usr/bin/gpg -vv %s 2>&1;   copiousoutput; test=[ -z "$LYNX_VERSION" ]
+application/pgp-signature; /usr/bin/gpg -vv %s 2>&1;   copiousoutput; test=[ -z "$LYNX_VERSION" ]
index da40406dd166393d3b728262f126d518a35c92da..2d2a75bdd05b74330e84be3587bb607694bbcf47 100644 (file)
@@ -16,7 +16,7 @@ Summary(pt_BR.UTF-8): Define aplicações auxiliares multimídia para vários pr
 Summary(tr.UTF-8):     Çeşitli programlar için çokluortam yardımcı uygulamaları tanımlar
 Name:          mailcap
 Version:       %{ver}
-Release:       3
+Release:       4
 License:       Public Domain
 Group:         Base
 Source0:       https://fedorahosted.org/released/mailcap/%{name}-%{fcver}.tar.xz
This page took 0.122483 seconds and 4 git commands to generate.