SUNWgnome-python26-libs.spec
changeset 16624 7e793d4eb0ab
parent 16614 c151ffbda133
child 17192 c5c0431245ff
--- a/SUNWgnome-python26-libs.spec	Wed Sep 23 18:06:26 2009 +0000
+++ b/SUNWgnome-python26-libs.spec	Wed Sep 23 18:36:39 2009 +0000
@@ -104,7 +104,9 @@
 %gnome_python.build -d %name-%version
 
 export CFLAGS="`echo %optflags | sed -e 's/-xregs=no.frameptr//'`"
+export PKG_CONFIG_TOP_BUILD_DIR=%{_builddir}/%name-%version/pygtksourceview-%{pygtksourceview.version}
 %pygtksourceview.build -d %name-%version
+unset PKG_CONFIG_TOP_BUILD_DIR
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -162,6 +164,10 @@
 %{_prefix}/demo/jds/bin/pygtk-demo-2.6
 
 %changelog
+* Wed Sep 23 2009 - [email protected]
+- Use PKG_CONFIG_TOP_BUILD_DIR environment variable when building pygtk and
+  pygtksourceview, so that pkg-config expands $(top_builddir), otherwise
+  pygobject pkg-config variables do not expand nicely and the build fails.
 * Sat Jun 20 2009 - [email protected]
 - Minor pkg'ing fix.
 * Wed Mar 25 2009 - [email protected]