packages: gtk+2/gtk+2.spec - use direct python shebang in gtk-builder-convert

qboosh qboosh at pld-linux.org
Fri Feb 11 20:22:30 CET 2011


Author: qboosh                       Date: Fri Feb 11 19:22:30 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use direct python shebang in gtk-builder-convert

---- Files affected:
packages/gtk+2:
   gtk+2.spec (1.346 -> 1.347) 

---- Diffs:

================================================================
Index: packages/gtk+2/gtk+2.spec
diff -u packages/gtk+2/gtk+2.spec:1.346 packages/gtk+2/gtk+2.spec:1.347
--- packages/gtk+2/gtk+2.spec:1.346	Thu Feb 10 17:47:17 2011
+++ packages/gtk+2/gtk+2.spec	Fri Feb 11 20:22:25 2011
@@ -1,11 +1,5 @@
 # $Revision$, $Date$
-# TODO
-# - papi print backend?
-# - solve this:
-#| /tmp/gtk+2-2.12.8-root-glen $ find -type f|xargs file|grep -i python
-#| ./usr/bin/gtk-builder-convert:                                     a python script text executable
-#| /tmp/gtk+2-2.12.8-root-glen $ head -n 1 ./usr/bin/gtk-builder-convert
-#| !/usr/bin/env python
+# TODO: papi print backend?
 #
 # Conditional build:
 %bcond_without	apidocs		# disable gtk-doc
@@ -53,6 +47,7 @@
 BuildRequires:	pkgconfig
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.311
+BuildRequires:	sed >= 4.0
 BuildRequires:	sqlite3-devel
 BuildRequires:	xorg-lib-libX11-devel
 BuildRequires:	xorg-lib-libXcomposite-devel
@@ -236,6 +231,8 @@
 %patch0 -p1
 %patch1 -p1
 
+%{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' gtk/gtk-builder-convert
+
 %build
 %{?with_apidocs:%{__gtkdocize}}
 %{__libtoolize}
@@ -427,6 +424,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.347  2011/02/11 19:22:25  qboosh
+- use direct python shebang in gtk-builder-convert
+
 Revision 1.346  2011/02/10 16:47:17  qboosh
 - versioned cairo devel dependency
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gtk+2/gtk+2.spec?r1=1.346&r2=1.347&f=u



More information about the pld-cvs-commit mailing list