Info2: << Package: gnome-menus2-py%type_pkg[python] Version: 2.14.0 Revision: 1 Type: python (2.3 2.4) BuildDepends: pygtk2-py%type_pkg[python]-dev, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, intltool (>= 0.31-1), glib2-dev (>= 2.6.0-1), pkgconfig, gnome-menus2-dev (>= %v-1), automake1.9, gnome-common, libtool14 Depends: python%type_pkg[python], pygtk2-py%type_pkg[python], gnome-menus2-shlibs (>= %v-1), libgettext3-shlibs, libiconv, glib2-shlibs (>= 2.6.0-1), xdg-base #BuildDependsOnly: true Description: Python bindings for the gnome-menus lib Source: mirror:gnome:sources/gnome-menus/2.14/gnome-menus-%v.tar.bz2 Source-MD5: 7aa0c08fc8b9caabb4be46e1cfb595fc Patch: %{ni}.patch PatchScript: << mv simple-editor/gmenu-simple-editor.glade{,-%type_pkg[python]} perl -pi -e 's/(gmenu-simple-editor.glade)/\1-%type_pkg[python]/g' simple-editor/Makefile.am simple-editor/GMenuSimpleEditor/maindialog.py << SetCPPFLAGS: -I%p/include/gnome-menus ConfigureParams: --disable-dependency-tracking --enable-python CompileScript: << autoreconf -f -i PYTHON=%p/bin/python%type_raw[python] ./configure %c make << InstallScript: << #!/bin/sh -ev make install DESTDIR=%d for versionless in bin/gmenu-simple-editor share/applications/gmenu-simple-editor.desktop; do mv %i/${versionless} %i/${versionless}-%type_pkg[python] done << DocFiles: AUTHORS COPYING* ChangeLog po/ChangeLog:ChangeLog.po HACKING NEWS README PostInstScript: << update-alternatives \ --install %p/bin/gmenu-simple-editor gmenu-simple-editor %p/bin/gmenu-simple-editor-%type_pkg[python] %type_pkg[python] \ --slave %p/share/applications/gmenu-simple-editor.desktop gmenu-simple-editor.desktop %p/share/applications/gmenu-simple-editor.desktop-%type_pkg[python] << PostRmScript: << update-alternatives --remove gmenu-simple-editor %p/bin/gmenu-simple-editor-%type_pkg[python] << DescPackaging: << Redo with automake1.9 so py-compile understands DESTDIR See: http://bugzilla.gnome.org/show_bug.cgi?id=344047 Patch simple-editor to use the python interp determined by configure. See: http://bugzilla.gnome.org/show_bug.cgi?id=343978 << License: GPL/LGPL Maintainer: The Gnome Core Team Homepage: http://www.gnome.org/ <<