diff --git a/efax-0.9-viewcmd.patch b/efax-0.9-viewcmd.patch new file mode 100644 index 0000000..043aaf2 --- /dev/null +++ b/efax-0.9-viewcmd.patch @@ -0,0 +1,19 @@ +--- efax-0.9/fax.orig 2005-10-10 11:05:57.000000000 +0200 ++++ efax-0.9/fax 2005-10-10 11:08:01.000000000 +0200 +@@ -60,9 +60,13 @@ + # The command to view a Portable Gray Map (PGM) image from the + # standard input. Typically "xv -" or "xloadimage stdin". + +-VIEWCMD="xloadimage stdin" # best +-# VIEWCMD="pnmtoxwd | xwud" # slower alternative +-# VIEWCMD="xv -" # much slower alternative ++VIEWCMD="pnmtoxwd | xwud" ++if [ -x /usr/bin/display ] ; then ++ VIEWCMD="display -" ++elif [ -x /usr/X11R6/bin/xloadimage ] ; then ++ VIEWCMD="xloadimage stdin" # best ++fi ++# VIEWCMD="xv -" # much slower alternative + + # The name of the Ghostscript executable including full path if + # necessary. Only required if faxing Postscript files. diff --git a/efax.spec b/efax.spec index a38867d..e93393f 100644 --- a/efax.spec +++ b/efax.spec @@ -1,7 +1,7 @@ Summary: A program for faxing using a Class 1, 2 or 2.0 fax modem. Name: efax Version: 0.9 -Release: 24 +Release: 25 License: GPL Group: Applications/Communications Url: http://www.cce.com/efax/ @@ -12,9 +12,12 @@ Patch2: efax08a-time.patch Patch3: efax-0.9-manpage.patch Patch5: efax-0.9-nullptr.patch Patch6: efax-0.9-misc.patch +Patch7: efax-0.9-viewcmd.patch + ExcludeArch: s390 s390x BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: make +Requires: netpbm-progs %description Efax is a small ANSI C/POSIX program that sends and receives faxes @@ -31,6 +34,7 @@ Class 1, 2 or 2.0 fax modem. %patch3 -p0 -b .manpage %patch5 -p1 -b .nullptr %patch6 -p1 -b .misc +%patch7 -p1 -b .viewcmd %build make RPM_OPT_FLAGS="-ansi $RPM_OPT_FLAGS" @@ -56,6 +60,9 @@ rm -rf %{buildroot} %dir %{_localstatedir}/log/fax %changelog +* Mon Oct 10 2005 Than Ngo 0.9-25 +- use pnmtoxwd instead xloadimage which is not in the core anymore #169413 + * Sat Mar 05 2005 Than Ngo 0.9-24 - rebuilt