Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 djview4 (4.10-3) unstable; urgency=medium
 .
   * gzip --no-name option for build reproducibility (closes: #778432)
Author: Barak A. Pearlmutter <bap@debian.org>
Bug-Debian: https://bugs.debian.org/778432

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- djview4-4.10.orig/config/acinclude.m4
+++ djview4-4.10/config/acinclude.m4
@@ -305,8 +305,8 @@ Defining QTDIR can help although it is d
   mkdir conftest.d
   cat > conftest.d/conftest.pro <<\EOF
 changequote(<<, >>)dnl
-message(QMAKE_UIC="$$QMAKE_UIC")
-message(QMAKE_MOC="$$QMAKE_MOC")
+message(QMAKE_UIC="$$QMAKE_UIC")dnl qt4 only
+message(QMAKE_MOC="$$QMAKE_MOC")dnl qt4 only
 message(QT_VERSION="$$[QT_VERSION]")
 message(QT_INSTALL_PREFIX="$$[QT_INSTALL_PREFIX]")
 message(QT_INSTALL_DATA="$$[QT_INSTALL_DATA]")
@@ -324,6 +324,9 @@ EOF
 Please define variable QMAKE to a working qmake.
 If you define QMAKESPEC, make sure it is correct.])
   fi
+  AC_MSG_CHECKING([for real qmake path])
+  test -x "$QT_INSTALL_BINS/qmake" && QMAKE="$QT_INSTALL_BINS/qmake"
+  AC_MSG_RESULT([$QMAKE])
   AC_MSG_CHECKING([Qt version])
   case "$QT_VERSION" in
     4.*)
--- djview4-4.10.orig/desktopfiles/Makefile.am
+++ djview4-4.10/desktopfiles/Makefile.am
@@ -57,8 +57,7 @@ else
 	  cp ${top_srcdir}/desktopfiles/prebuilt-hi$${s}-djview4.png $@
 endif
 
-svg_process =\
-cat $< | gzip >$@
+svg_process = gzip --no-name <$< >$@
 
 svg_verbose = $(svg_verbose_@AM_V@)
 svg_verbose_ = $(svg_verbose_@AM_DEFAULT_V@)
