Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 0f789f5d9b93bf583deb1f0776dc39b5 > files > 9

hplip-3.14.6-8.1.mga5.src.rpm

Index: hplip-3.13.2/Makefile.am
===================================================================
--- hplip-3.13.2/Makefile.am
+++ hplip-3.13.2/Makefile.am	2013-09-27 14:38:55.869037404 +0200
@@ -3,6 +3,11 @@
 #
 #  (c) 2004-2015 Copyright Hewlett-Packard Development Company, LP
 #  Author: David Suffield, Naga Samrat Chowdary Narla, Sarbeswar Meher
+
+# Generic rules
+%.py: %.ui
+	$(PYUIC4) -x -o $@ $<
+
 INCLUDES = -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -Icommon/
 AUTOMAKE_OPTIONS = subdir-objects
 CFLAGS+= -DCONFDIR=\"$(hplip_confdir)\"
Index: hplip-3.13.2/configure.in
===================================================================
--- hplip-3.13.2/configure.in
+++ hplip-3.13.2/configure.in	2013-09-27 14:38:55.870037402 +0200
@@ -536,6 +536,8 @@
    AC_MSG_RESULT("using $PYTHONINCLUDEDIR")
    AC_ARG_VAR(PYTHONINCLUDEDIR, [path to Python.h C header file])
    AC_CHECK_HEADERS(python$PYTHON_VERSION/Python.h, ,[AC_MSG_ERROR([cannot find python-devel support], 6)])
+   AC_ARG_VAR([PYUIC4], [PyQT pyuic4 .ui to .py compiler command])
+   AC_CHECK_TOOLS([PYUIC4], [pyuic4])
 fi
 
 if test "$hpijs_only_build" = "no" && test "$scan_build" = "yes" && test "$hpcups_only_build" = "no"; then