diff -u pythoncad-0.1.35/debian/dirs pythoncad-0.1.35/debian/dirs --- pythoncad-0.1.35/debian/dirs +++ pythoncad-0.1.35/debian/dirs @@ -1 +1,3 @@ -usr/bin \ Nessun a capo alla fine del file +usr/bin +usr/share/pixmaps +usr/share/applications diff -u pythoncad-0.1.35/debian/menu pythoncad-0.1.35/debian/menu --- pythoncad-0.1.35/debian/menu +++ pythoncad-0.1.35/debian/menu @@ -2 +2,2 @@ - title="PythonCAD" command="/usr/bin/pythoncad" + title="PythonCAD" command="/usr/bin/pythoncad"\ + icon="/usr/share/pixmaps/gtkpycad.xpm" diff -u pythoncad-0.1.35/debian/patches/00list pythoncad-0.1.35/debian/patches/00list --- pythoncad-0.1.35/debian/patches/00list +++ pythoncad-0.1.35/debian/patches/00list @@ -2,0 +3 @@ +desktopfile diff -u pythoncad-0.1.35/debian/rules pythoncad-0.1.35/debian/rules --- pythoncad-0.1.35/debian/rules +++ pythoncad-0.1.35/debian/rules @@ -33,6 +33,10 @@ # Add here commands to install the package into debian/pythoncad. python setup.py install --no-compile --prefix debian/pythoncad/usr install gtkpycad.py debian/pythoncad/usr/bin/pythoncad + # Install icons and desktop file + cp gtkpycad.png debian/pythoncad/usr/share/pixmaps + cp debian/gtkpycad.xpm debian/pythoncad/usr/share/pixmaps + cp pythoncad.desktop debian/pythoncad/usr/share/applications # Build architecture-independent files here. binary-indep: build install diff -u pythoncad-0.1.35/debian/control pythoncad-0.1.35/debian/control --- pythoncad-0.1.35/debian/control +++ pythoncad-0.1.35/debian/control @@ -4,7 +4,7 @@ Maintainer: Debian QA Group Build-Depends-Indep: python, python-dev, python-support (>= 0.4) Build-Depends: debhelper (>= 5.0.37.2), dpatch -Standards-Version: 3.7.2 +Standards-Version: 3.7.3 Package: pythoncad Architecture: all diff -u pythoncad-0.1.35/debian/changelog pythoncad-0.1.35/debian/changelog --- pythoncad-0.1.35/debian/changelog +++ pythoncad-0.1.35/debian/changelog @@ -1,3 +1,13 @@ +pythoncad (0.1.35-3ubuntu1) intrepid; urgency=low + + * Add debian/gtkpycad.xpm icon. + * debian/rules: install icons and desktop file (LP: #236391). + * debian/menu: add icon field. + * Add debian/desktopfile.dpatch patch to modify desktop file. + * Bump Standards-Version to 3.7.3. + + -- Devid Filoni Mon, 02 Jun 2008 18:08:27 +0200 + pythoncad (0.1.35-3) unstable; urgency=low * Orphaned only in patch2: unchanged: --- pythoncad-0.1.35.orig/debian/patches/desktopfile.dpatch +++ pythoncad-0.1.35/debian/patches/desktopfile.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## desktopfile.dpatch by Devid Filoni +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad pythoncad-0.1.35~/pythoncad.desktop pythoncad-0.1.35/pythoncad.desktop +--- pythoncad-0.1.35~/pythoncad.desktop 2004-10-23 15:34:22.000000000 +0200 ++++ pythoncad-0.1.35/pythoncad.desktop 2008-06-02 18:50:39.000000000 +0200 +@@ -1,10 +1,10 @@ + [Desktop Entry] + Name=PyCAD + Comment=PythonCAD +-Icon=/usr/share/pixmaps/gtkpycad.png +-Exec=/usr/bin/gtkpycad.py ++Icon=/usr/share/pixmaps/gtkpycad ++Exec=/usr/bin/pythoncad + Terminal=false + Type=Application + Encoding=UTF-8 + X-Desktop-File-Install-Version=0.3 +-Categories=Office;Graphics;Application;Utility;X-Red-Hat-Base; ++Categories=Office;X-Red-Hat-Base; only in patch2: unchanged: --- pythoncad-0.1.35.orig/debian/gtkpycad.xpm +++ pythoncad-0.1.35/debian/gtkpycad.xpm @@ -0,0 +1,37 @@ +/* XPM */ +static char * gtkpycad_xpm[] = { +"32 32 2 1", +" c None", +". c #000000", +" ", +" ", +" .... ", +" .. ..... ", +" ... ..... ", +" .... ........ ", +" ...... ........ ", +" ...... ...... ", +" .. .... ....... ", +" .. .... ........ ", +" .. .... ........... ", +" .. .... .... ..... ", +" .. ... ..... .... ", +" .. ........ ... ", +" .. ..... . ", +" .. .... ", +" .. ....... ", +" .. ........ ", +" .. .... .... ", +" .. .... .... ", +" .. ..... .... ", +" .. .... .... ", +" .. .... .... ", +" .. ... .... ", +" ..... .... ", +" .... ... ", +" ....................... ", +" ...................... ", +" ", +" ", +" ", +" "};