File symlink-destdir.patch of Package python-kde3

Index: PyKDE-3.16.0/configure.py
===================================================================
--- PyKDE-3.16.0.orig/configure.py	2006-09-22 05:05:49.000000000 -0300
+++ PyKDE-3.16.0/configure.py	2007-06-29 09:43:15.000000000 -0300
@@ -768,7 +768,7 @@ def create_makefiles():
         f.close ()
         target  = os.path.join (opt_kdelibdir, "kde3", "libkonsolepart.so")
         symlink = os.path.join (opt_kdelibdir, "libkonsolepart.so")
-        buff = buff.replace ("install:\n", "install:\n\tln -sf %s %s\n" % (target, symlink))
+        buff = buff.replace ("install:\n", "install:\n\tinstall -d $(DESTDIR)%s\n\tln -sf %s $(DESTDIR)%s\n" % (opt_kdelibdir, target, symlink))
         buff = buff.replace ("\nclean", "\tldconfig\n\nclean")
         f = open ("Makefile.new", "w")
         f.write (buff)
openSUSE Build Service is sponsored by