Bump to 1.3.3-1
[gc-dialer] / support / builddeb.py
index 0870254..f3381a8 100755 (executable)
@@ -12,7 +12,7 @@ import constants
 
 
 __appname__ = constants.__app_name__
-__description__ = """Touch screen enhanced interface to the GoogleVoice phone service"
+__description__ = """Touch screen enhanced interface to the GoogleVoice phone service
 Features:
 .
 * Dialpad for quick call
@@ -30,21 +30,13 @@ __email__ = "eopage@byu.net"
 __version__ = constants.__version__
 __build__ = constants.__build__
 __changelog__ = """
-* First Qt Release (BETA)
-* Access to call cancel
-* Divider on various lists (for time ones, tried to balance heavy/light phone users)
-* Condensed history
-* Changed SMS Entry letter count style from GV to Nokia
-* Tabs are cached between launches
-* Display when history/messages tabs where last refreshed
+*Jut hoping to force the maemo.org package system along
 """.strip()
 
 
 __postinstall__ = """#!/bin/sh -e
 
 gtk-update-icon-cache -f /usr/share/icons/hicolor
-rm -f ~/.%(name)s/%(name)s.log
-rm -f ~/.%(name)s/notifier.log
 """ % {"name": constants.__app_name__}
 
 __preremove__ = """#!/bin/sh -e
@@ -89,15 +81,15 @@ def build_package(distribution):
        p.license = "lgpl"
        p.depends = ", ".join([
                "python2.6 | python2.5",
-               "python-gtk2 | python2.5-gtk2",
                "python-xml | python2.5-xml",
                "python-dbus | python2.5-dbus",
+               "python-simplejson",
        ])
-       maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon"
        p.depends += {
-               "debian": ", python-glade2",
-               "diablo": maemoSpecificDepends + ", python2.5-conic",
-               "fremantle": maemoSpecificDepends + ", python-glade2, python-alarm",
+               "debian": ", python-qt4",
+               "diablo": ", python2.5-qt4-core, python2.5-qt4-gui",
+               "fremantle": ", python2.5-qt4-core, python2.5-qt4-gui, python2.5-qt4-maemo5",
+               #"fremantle": ", python-pyside.qtgui, python-pyside.qtcore, python-pyside.qtmaemo5, python-qtmobility.contacts",
        }[distribution]
        p.recommends = ", ".join([
        ])
@@ -140,8 +132,8 @@ def build_package(distribution):
        p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-dialcentral.png|dialcentral.png"]
        p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-dialcentral.png|dialcentral.png"]
 
+       print p
        if distribution == "debian":
-               print p
                print p.generate(
                        version="%s-%s" % (__version__, __build__),
                        changelog=__changelog__,
@@ -150,9 +142,7 @@ def build_package(distribution):
                        changes=False,
                        dsc=False,
                )
-               print "Building for %s finished" % distribution
        else:
-               print p
                print p.generate(
                        version="%s-%s" % (__version__, __build__),
                        changelog=__changelog__,
@@ -161,20 +151,12 @@ def build_package(distribution):
                        changes=True,
                        dsc=True,
                )
-               print "Building for %s finished" % distribution
+       print "Building for %s finished" % distribution
 
 
 if __name__ == "__main__":
-       if len(sys.argv) > 1:
-               try:
-                       import optparse
-               except ImportError:
-                       optparse = None
-
-               if optparse is not None:
-                       parser = optparse.OptionParser()
-                       (commandOptions, commandArgs) = parser.parse_args()
+       if len(sys.argv) == 1:
+               distribution = "fremantle"
        else:
-               commandArgs = None
-               commandArgs = ["diablo"]
-       build_package(commandArgs[0])
+               distribution = sys.argv[1]
+       build_package(distribution)