Bump to 0.3.9
[gonvert] / support / builddeb.py
index 8685250..4a680eb 100755 (executable)
@@ -14,16 +14,37 @@ A conversion utility that allows conversion between many units like CGS, Ancient
 .
 Homepage: http://www.unihedron.com/projects/gonvert/index.php
 """
-__author__ = "Ed Page (Maemo Porter)"
-__email__ = "eopage@byu.net"
+__author__ = "Anthony Tekatch"
+__email__ = "anthony@unihedron.com"
 __version__ = constants.__version__
 __build__ = constants.__build__
 __changelog__ = """
-0.2.24
+0.9.3
+* Rotation support through Ctrl+o
+* Switching from scrollbar to panning
+
+0.9.2
+* Added search toggle to the menu
+* Maemo 5: Added sorting to the app menu
+
+0.9.1
+* Added support for creating generic .deb files
+* Added an apothecary unit
+* Bug fix: Can directly enter numbers after selecting category
+* Bug fix: font of the category button was inconsistent
+* Bug fix: Improved up/down arrow keys
+
+0.9.0
+* Added Radioactivity and Radiation dose categories.
+* Aligning the numbers by their decimal place
 * Added shortcuts for fullscreen
 * Switched to Find being brought up by CTRL+F
 * Added Find Previous and Find Next shortcuts (CTRL+P, CTRL+N)
+* Adjusted the sizing on various widgets
+* Removed unused UI features for polish
+* Bug fix: improved behavior when corner case values are inputted (like floats for base conversions)
 * Debugging: Added logging support
+* Marketting: Huge version bump to express a basic level of feature complete
 * Internal: Massive cleanup of code
 
 0.2.23  - Added UK currency category and other UK measurements thanks to Dale Hair
@@ -130,7 +151,7 @@ __changelog__ = """
 __postinstall__ = """#!/bin/sh -e
 
 gtk-update-icon-cache -f /usr/share/icons/hicolor
-rm -f ~/.gonvert/gonvert.log
+rm -f ~/.gonvert/gonvert.log ~/.gonvert/selections.dat ~/.gonvert/window.dat
 """
 
 __preremove__ = """#!/bin/sh -e
@@ -167,11 +188,11 @@ def build_package(distribution):
        p = py2deb.Py2deb(__appname__)
        p.prettyName = constants.__pretty_app_name__
        p.description = __description__
-       p.bugTracker = ""
+       p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=Gonvert"
        p.upgradeDescription = __changelog__.split("\n\n", 1)[0]
        p.author = __author__
        p.mail = __email__
-       p.license = "lgpl"
+       p.license = "gpl"
        p.depends = ", ".join([
                "python2.6 | python2.5",
                "python-gtk2 | python2.5-gtk2",
@@ -181,33 +202,27 @@ def build_package(distribution):
        maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon"
        p.depends += {
                "debian": ", python-glade2",
-               "chinook": maemoSpecificDepends,
                "diablo": maemoSpecificDepends,
                "fremantle": maemoSpecificDepends + ", python-glade2",
-               "mer": maemoSpecificDepends + ", python-glade2",
        }[distribution]
        p.recommends = ", ".join([
        ])
        p.section = {
                "debian": "science",
-               "chinook": "other",
                "diablo": "user/science",
                "fremantle": "user/science",
-               "mer": "user/science",
        }[distribution]
        p.arch = "all"
        p.urgency = "low"
-       p.distribution = "chinook diablo fremantle mer debian"
+       p.distribution = "diablo fremantle debian"
        p.repository = "extras"
        p.changelog = __changelog__
        p.postinstall = __postinstall__
        p.preremove = __preremove__
        p.icon = {
                "debian": "data-pixmaps-gonvert.png",
-               "chinook": "data-pixmaps-gonvert.png",
                "diablo": "data-pixmaps-gonvert.png",
                "fremantle": "data-pixmaps-gonvert.png", # Fremantle natively uses 48x48
-               "mer": "data-pixmaps-gonvert.png",
        }[distribution]
        p["/usr/bin"] = [ "gonvert.py" ]
        for relPath, files in unflatten_files(find_files("src", ".")).iteritems():
@@ -219,7 +234,7 @@ def build_package(distribution):
                        for (oldName, newName) in files
                )
        for relPath, files in unflatten_files(find_files("data", ".")).iteritems():
-               fullPath = "/usr/lib/gonvert"
+               fullPath = "/usr/share/gonvert"
                if relPath:
                        fullPath += os.sep+relPath
                p[fullPath] = list(
@@ -231,16 +246,28 @@ def build_package(distribution):
        p["/usr/share/icons/hicolor/64x64/hildon"] = ["data-pixmaps-gonvert.png|gonvert.png"]
        p["/usr/share/icons/hicolor/scalable/hildon"] = ["data-pixmaps-gonvert.png|gonvert.png"]
 
-       print p
-       print p.generate(
-               version="%s-%s" % (__version__, __build__),
-               changelog=__changelog__,
-               build=False,
-               tar=True,
-               changes=True,
-               dsc=True,
-       )
-       print "Building for %s finished" % distribution
+       if distribution == "debian":
+               print p
+               print p.generate(
+                       version="%s-%s" % (__version__, __build__),
+                       changelog=__changelog__,
+                       build=True,
+                       tar=False,
+                       changes=False,
+                       dsc=False,
+               )
+               print "Building for %s finished" % distribution
+       else:
+               print p
+               print p.generate(
+                       version="%s-%s" % (__version__, __build__),
+                       changelog=__changelog__,
+                       build=False,
+                       tar=True,
+                       changes=True,
+                       dsc=True,
+               )
+               print "Building for %s finished" % distribution
 
 
 if __name__ == "__main__":