diff -urNp pygtk-2.12.1-orig/codegen/Makefile.am pygtk-2.12.1-new/codegen/Makefile.am --- pygtk-2.12.1-orig/codegen/Makefile.am 2008-04-14 16:15:08.000000000 +0530 +++ pygtk-2.12.1-new/codegen/Makefile.am 2008-04-14 16:48:50.000000000 +0530 @@ -2,7 +2,10 @@ PLATFORM_VERSION = 2.0 bin_SCRIPTS = pygtk-codegen-$(PLATFORM_VERSION) -codegendir = $(pkgdatadir)/$(PLATFORM_VERSION)/codegen +# pygtk scripts +pkgpythondir = $(pyexecdir)/gtk-2.0 + +codegendir = $(pkgpythondir)/codegen codegen_PYTHON = \ __init__.py \ diff -urNp pygtk-2.12.1-orig/codegen/pygtk-codegen-2.0.in pygtk-2.12.1-new/codegen/pygtk-codegen-2.0.in --- pygtk-2.12.1-orig/codegen/pygtk-codegen-2.0.in 2008-04-14 16:15:08.000000000 +0530 +++ pygtk-2.12.1-new/codegen/pygtk-codegen-2.0.in 2008-04-14 16:48:47.000000000 +0530 @@ -1,9 +1,9 @@ #!/bin/sh prefix=@prefix@ -datarootdir=@datarootdir@ -datadir=@datadir@ -codegendir=${datadir}/pygtk/2.0/codegen +exec_prefix=@exec_prefix@ +pyexecdir=@pyexecdir@ +codegendir=${pyexecdir}/gtk-2.0/codegen PYTHONPATH=$codegendir export PYTHONPATH diff -urNp pygtk-2.12.1-orig/pygtk-2.0.pc.in pygtk-2.12.1-new/pygtk-2.0.pc.in --- pygtk-2.12.1-orig/pygtk-2.0.pc.in 2008-04-14 16:15:08.000000000 +0530 +++ pygtk-2.12.1-new/pygtk-2.0.pc.in 2008-04-14 19:40:18.000000000 +0530 @@ -12,7 +12,7 @@ pygtkincludedir=${includedir}/pygtk-2.0 # same here. Useful when calling the code generator in addon packages. defsdir=${datadir}/pygtk/2.0/defs -codegendir=${datadir}/pygtk/2.0/codegen +codegendir=${pyexecdir}/gtk-2.0/codegen Name: PyGTK Description: Python bindings for GTK+ and related libraries