File mftrace-python-compile.patch of Package mftrace

The timestamp embedded in the python bytecode file (mtime of
original source in 2006) isn't equal to the mtime of the installed
source file (now), which will force the interpreter to recompile
the .py source every time, ignoring the saved bytecode.

This patch should fix it by moving compilation to the install

Index: mftrace-1.2.17/
--- mftrace-1.2.17.orig/
+++ mftrace-1.2.17/
@@ -1,7 +1,6 @@
 # -*-makefile-*-
 	gf2pbm.c mftrace.1 \
@@ -65,18 +64,16 @@ GNUmakefile: configure
 	chmod a-w GNUmakefile
-	$(PYTHON) -c 'import py_compile; py_compile.compile ("$<", cfile="$@")'
-install: mftrace gf2pbm $(PYC_MODULES) install-man install-py
+install: mftrace gf2pbm install-man install-py
 	install -d $(DESTDIR)$(bindir) 
 	install mftrace $(DESTDIR)$(bindir)
 	install gf2pbm$(EXEEXT) $(DESTDIR)$(bindir)/gf2pbm$(EXEEXT)
-install-py: $(PY_MODULES) $(PYC_MODULES) 
+install-py: $(PY_MODULES)
 	install -d $(DESTDIR)$(datadir)
 	install -m644 $^ $(DESTDIR)$(datadir) 
+	$(PYTHON) -m compileall -d $(datadir) $(DESTDIR)$(datadir)
 install-man: $(MANPAGES)
 	install -d $(DESTDIR)$(mandir)/man1
@@ -95,7 +92,7 @@ uninstall:
 	rm -f config.cache config.h config.log config.status GNUmakefile
-	rm -f mftrace gf2pbm $(PYC_MODULES)
+	rm -f mftrace gf2pbm
 	rm -f *'~' '#'*