--- python-2.6.spec	2009-12-26 07:54:01.000000000 +0000
+++ python-2.6.4.spec	2009-12-26 07:54:25.000000000 +0000
@@ -36,8 +36,9 @@
 #--start constants--
 %define version 2.6.4
 %define libver 2.6
+%define libvers 2.6
 #--end constants--
-%define release 1pydotorg
+%define release 1gpod
 %define __prefix /usr
 
 #  kludge to get around rpm <percent>define weirdness
@@ -54,19 +55,20 @@
 Name: %{name}%{binsuffix}
 Version: %{version}
 Release: %{release}
-Copyright: Modified CNRI Open Source License
+License: Modified CNRI Open Source License
 Group: Development/Languages
 Source: Python-%{version}.tar.bz2
 %if %{include_docs}
 Source1: html-%{version}.tar.bz2
 %endif
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
 BuildPrereq: expat-devel
 BuildPrereq: db4-devel
 BuildPrereq: gdbm-devel
 BuildPrereq: sqlite-devel
 Prefix: %{__prefix}
-Packager: Sean Reifschneider <jafo-rpms@tummy.com>
+Packager: pulegium <info@grenadepod.com>
+
 
 %description
 Python is an interpreted, interactive, object-oriented programming
@@ -134,6 +136,10 @@
 %endif
 
 %changelog
+* Sat Dec 26 2009 Pulegium <info@grenadepod.com> [2.6.4-1gpod]
+- Included patch from http://bugs.python.org/issue5063
+- Added tk and tools dirs
+
 * Mon Dec 20 2004 Sean Reifschneider <jafo-rpms@tummy.com> [2.4-2pydotorg]
 - Changing the idle wrapper so that it passes arguments to idle.
 
@@ -223,7 +229,8 @@
 #  BUILD
 ########
 %build
-./configure --enable-unicode=ucs4 %{ipv6} %{pymalloc} --prefix=%{__prefix}
+#We like shared libs over static.
+./configure --enable-shared --enable-unicode=ucs4 %{ipv6} %{pymalloc} --prefix=%{__prefix} --disable-rpath
 make
 
 ##########
@@ -256,7 +263,8 @@
 then
    ( cd $RPM_BUILD_ROOT%{__prefix}/bin; rm -f python[0-9a-zA-Z]*;
          mv -f python python"%{binsuffix}" )
-   ( cd $RPM_BUILD_ROOT%{__prefix}/man/man1; mv python.1 python%{binsuffix}.1 )
+   ( cd $RPM_BUILD_ROOT%{__prefix}/bin; mv -f python-config python"%{binsuffix}"-config )
+   ( cd $RPM_BUILD_ROOT%{__prefix}/share/man/man1; mv python.1 python%{binsuffix}.1 )
    ( cd $RPM_BUILD_ROOT%{__prefix}/bin; mv -f pydoc pydoc"%{binsuffix}" )
    ( cd $RPM_BUILD_ROOT%{__prefix}/bin; mv -f idle idle"%{binsuffix}" )
 fi
@@ -276,7 +284,7 @@
 find "$RPM_BUILD_ROOT""%{__prefix}"/%{libdirname}/python%{libvers}/lib-dynload -type f |
 	sed "s|^${RPM_BUILD_ROOT}|/|" |
 	grep -v -e '_tkinter.so$' >mainpkg.files
-find "$RPM_BUILD_ROOT""%{__prefix}"/bin -type f |
+find "$RPM_BUILD_ROOT""%{__prefix}"/bin -type f -o -type l |
 	sed "s|^${RPM_BUILD_ROOT}|/|" |
 	grep -v -e '/bin/idle%{binsuffix}$' >>mainpkg.files
 
@@ -341,14 +349,14 @@
 %defattr(-,root,root)
 %doc Misc/README Misc/cheatsheet Misc/Porting
 %doc LICENSE Misc/ACKS Misc/HISTORY Misc/NEWS
-%{__prefix}/man/man1/python%{binsuffix}.1*
+%{__prefix}/share/man/man1/python%{binsuffix}.1*
 
 %attr(755,root,root) %dir %{__prefix}/include/python%{libvers}
 %attr(755,root,root) %dir %{__prefix}/%{libdirname}/python%{libvers}/
 %{__prefix}/%{libdirname}/python%{libvers}/*.txt
 %{__prefix}/%{libdirname}/python%{libvers}/*.py*
 %{__prefix}/%{libdirname}/python%{libvers}/pdb.doc
-%{__prefix}/%{libdirname}/python%{libvers}/profile.doc
+#%{__prefix}/%{libdirname}/python%{libvers}/profile.doc
 %{__prefix}/%{libdirname}/python%{libvers}/curses
 %{__prefix}/%{libdirname}/python%{libvers}/distutils
 %{__prefix}/%{libdirname}/python%{libvers}/encodings
@@ -357,13 +365,23 @@
 %{__prefix}/%{libdirname}/python%{libvers}/test
 %{__prefix}/%{libdirname}/python%{libvers}/xml
 %{__prefix}/%{libdirname}/python%{libvers}/email
-%{__prefix}/%{libdirname}/python%{libvers}/email/mime
 %{__prefix}/%{libdirname}/python%{libvers}/sqlite3
 %{__prefix}/%{libdirname}/python%{libvers}/compiler
 %{__prefix}/%{libdirname}/python%{libvers}/bsddb
 %{__prefix}/%{libdirname}/python%{libvers}/hotshot
 %{__prefix}/%{libdirname}/python%{libvers}/logging
 %{__prefix}/%{libdirname}/python%{libvers}/lib-old
+%{__prefix}/%{libdirname}/python%{libvers}/multiprocessing
+%{__prefix}/%{libdirname}/python%{libvers}/lib2to3
+%{__prefix}/%{libdirname}/python%{libvers}/json
+%{__prefix}/%{libdirname}/python%{libvers}/ctypes
+%{__prefix}/%{libdirname}/python%{libvers}/wsgiref
+%{__prefix}/%{libdirname}/python%{libvers}/wsgiref.egg-info
+%{__prefix}/%{libdirname}/libpython%{libvers}.so*
+%{__prefix}/%{libdirname}/python%{libvers}/lib-tk
+%{__prefix}/%{libdirname}/python%{libvers}/Tools
+
+
 
 %files devel
 %defattr(-,root,root)
