Bump to 0.7.13-1
[quicknote] / support / builddeb.py
index 29a7e3a..0b7ff58 100755 (executable)
@@ -21,37 +21,8 @@ __email__ = "n800@axique.net"
 __version__ = constants.__version__
 __build__ = constants.__build__
 __changelog__ = """
-0.7.8
- * Spell checking
- * Fixing the application title
-
-0.7.7
- * Slight modifications to the note history and SQL dialogs
- * On zoom, also hiding the history status and button
- * Touched up the note list, making it ellipsize at the end rather than scroll
- * Storing of zoom, wordwrap, and fullscreen settings
-
-0.7.6
-  * Line-wrap
-  * Zoom
-
-0.7.4
-  * fixed small bugs
-  * move category
-
-0.7.3
-  * fixed small bugs
-  * move category
-
-0.7.2
-  * improved sync, fixed a small bug
-
-0.7.1
-  * improved sync
-
-0.7.0
-  * Initial Release.
-"""
+* New icon
+""".strip()
 
 
 __postinstall__ = """#!/bin/sh -e
@@ -94,7 +65,6 @@ def build_package(distribution):
        p.prettyName = constants.__pretty_app_name__
        p.description = __description__
        p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=quicknote"
-       #p.upgradeDescription = __changelog__.split("\n\n", 1)[0]
        p.author = __author__
        p.mail = __email__
        p.license = "gpl"
@@ -102,34 +72,29 @@ def build_package(distribution):
                "python2.6 | python2.5",
                "python-gtk2 | python2.5-gtk2",
                "python-xml | python2.5-xml",
+               "python-dbus | python2.5-dbus",
        ])
        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.section = {
-               "debian": "accessories",
-               "chinook": "accessories",
+               "debian": "editors",
                "diablo": "user/office",
                "fremantle": "user/office",
-               "mer": "user/office",
        }[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.icon = {
-               "debian": "26x26-quicknote.png",
-               "chinook": "26x26-quicknote.png",
-               "diablo": "26x26-quicknote.png",
-               "fremantle": "48x48-quicknote.png", # Fremantle natively uses 48x48
-               "mer": "48x48-quicknote.png",
+               "debian": "24_quicknote.png",
+               "diablo": "32_quicknote.png",
+               "fremantle": "48_quicknote.png", # Fremantle natively uses 48x48
        }[distribution]
        p["/usr/bin"] = [ "quicknote.py" ]
        for relPath, files in unflatten_files(find_files(".", "locale")).iteritems():
@@ -149,22 +114,33 @@ def build_package(distribution):
                        for (oldName, newName) in files
                )
        p["/usr/share/applications/hildon"] = ["quicknote.desktop"]
-       #p["/usr/share/dbus-1/services"] = ["quicknote.service"]
-       p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-quicknote.png|quicknote.png"]
-       p["/usr/share/icons/hicolor/40x40/hildon"] = ["40x40-quicknote.png|quicknote.png"]
-       p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-quicknote.png|quicknote.png"]
-       p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-quicknote.png|quicknote.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
+       p["/usr/share/icons/hicolor/24x24/hildon"] = ["24_quicknote.png|quicknote.png"]
+       p["/usr/share/icons/hicolor/32x32/hildon"] = ["32_quicknote.png|quicknote.png"]
+       p["/usr/share/icons/hicolor/48x48/hildon"] = ["48_quicknote.png|quicknote.png"]
+       p["/usr/share/icons/hicolor/72x72/hildon"] = ["72_quicknote.png|quicknote.png"]
+
+       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__":