File system-config-printer-install-python.patch of Package system-config-printer
diff -ur system-config-printer-1.0.7.old/Makefile.am system-config-printer-1.0.7/Makefile.am
--- system-config-printer-1.0.7.old/Makefile.am 2008-08-29 12:32:49.000000000 +0200
+++ system-config-printer-1.0.7/Makefile.am 2008-09-05 16:27:31.000000000 +0200
@@ -48,14 +48,16 @@
fi
rm -f .stamp-distutils-in-builddir
-nobase_pkgdata_SCRIPTS= \
+appdir = $(pythondir)/system-config-printer
+
+nobase_app_SCRIPTS= \
my-default-printer.py \
pysmb.py \
system-config-printer.py \
troubleshoot/__init__.py \
applet.py
-nobase_pkgdata_DATA= \
+nobase_app_PYTHON= \
AdvancedServerSettings.py \
authconn.py \
config.py \
@@ -72,9 +74,7 @@
gtk_treeviewtooltips.py \
smburi.py \
statereason.py \
- system-config-printer.glade \
userdefault.py \
- icons/i-network-printer.png \
troubleshoot/base.py \
troubleshoot/CheckLocalServerPublishing.py \
troubleshoot/CheckNetworkServerSanity.py \
@@ -98,7 +98,11 @@
troubleshoot/SchedulerNotRunning.py \
troubleshoot/ServerFirewalled.py \
troubleshoot/Shrug.py \
- troubleshoot/Welcome.py \
+ troubleshoot/Welcome.py
+
+nobase_pkgdata_DATA= \
+ system-config-printer.glade \
+ icons/i-network-printer.png \
applet.glade
bin_SCRIPTS=\
@@ -163,9 +167,9 @@
rm -f $(DESTDIR)$(autostartdir)/redhat-print-applet.desktop
EXTRA_DIST=\
- $(nobase_pkgdata_SCRIPTS) \
+ $(nobase_app_SCRIPTS) \
+ $(nobase_app_PYTHON) \
$(nobase_pkgdata_DATA) \
- $(nobase_sbin_SCRIPTS) \
$(bin_SCRIPTS) \
setup.py \
$(EXPORT_MODULES) \
diff -ur system-config-printer-1.0.7.old/my-default-printer.in system-config-printer-1.0.7/my-default-printer.in
--- system-config-printer-1.0.7.old/my-default-printer.in 2008-08-28 15:30:27.000000000 +0200
+++ system-config-printer-1.0.7/my-default-printer.in 2008-09-05 16:19:20.000000000 +0200
@@ -1,3 +1,3 @@
#!/bin/sh
prefix=@prefix@
-exec @datarootdir@/@PACKAGE@/my-default-printer.py "$@"
+exec @pythondir@/@PACKAGE@/my-default-printer.py "$@"
diff -ur system-config-printer-1.0.7.old/system-config-printer-applet.in system-config-printer-1.0.7/system-config-printer-applet.in
--- system-config-printer-1.0.7.old/system-config-printer-applet.in 2008-08-28 15:30:27.000000000 +0200
+++ system-config-printer-1.0.7/system-config-printer-applet.in 2008-09-05 16:19:20.000000000 +0200
@@ -1,3 +1,3 @@
#!/bin/sh
prefix=@prefix@
-exec @datarootdir@/@PACKAGE@/applet.py "$@"
+exec @pythondir@/@PACKAGE@/applet.py "$@"
diff -ur system-config-printer-1.0.7.old/system-config-printer.in system-config-printer-1.0.7/system-config-printer.in
--- system-config-printer-1.0.7.old/system-config-printer.in 2008-08-28 15:30:27.000000000 +0200
+++ system-config-printer-1.0.7/system-config-printer.in 2008-09-05 16:19:20.000000000 +0200
@@ -1,3 +1,3 @@
#!/bin/sh
prefix=@prefix@
-exec @datarootdir@/@PACKAGE@/system-config-printer.py "$@"
+exec @pythondir@/@PACKAGE@/system-config-printer.py "$@"