File suds-insecure-cache-tempdir.patch of Package python-suds

diff -ruN a/suds/cache.py b/suds/cache.py
--- a/suds/cache.py	2010-04-14 21:04:17.000000000 +0200
+++ b/suds/cache.py	2013-11-27 14:16:34.968138726 +0100
@@ -19,8 +19,9 @@
 """
 
 import os
+import shutil
 import suds
-from tempfile import gettempdir as tmp
+import tempfile
 from suds.transport import *
 from suds.sax.parser import Parser
 from suds.sax.element import Element
@@ -138,11 +139,15 @@
         @type duration: {unit:value}
         """
         if location is None:
-            location = os.path.join(tmp(), 'suds')
+            location = tempfile.mkdtemp()
         self.location = location
         self.duration = (None, 0)
         self.setduration(**duration)
         self.checkversion()
+
+    def __del__(self):
+        if self.location.startswith("/tmp"):
+            shutil.rmtree(self.location)
         
     def fnsuffix(self):
         """