Updating changelist comments
[gc-dialer] / support / builddeb.py
1 #!/usr/bin/python2.5
2
3 from py2deb import *
4
5
6 __appname__ = "dialcentral"
7 __description__ = "Simple interface to Google's GrandCentral(tm) service"
8 __author__ = "Ed Page"
9 __email__ = "eopage@byu.net"
10 __version__ = "0.9.7"
11 __build__ = 0
12 __changelog__ = '''
13 0.9.7
14  * Force Refresh for when wanting to check for more messages
15  * Removed timeouts that forced refreshes on various tabs
16  * Added support for a settings file, fairly primitive right now
17
18 0.9.6
19  * Experimenting with the tabs being on the side
20  * Now the phone selector is used always, even if there is just one phone number
21  * Added a Messages Tab, which displays SMS and Voicemail messages
22  * Added option to send SMS messages
23
24 0.9.5
25  * Fixed a login issue due to Google changing their webpage
26
27 0.9.4 - ""
28  * Misc Bug fixes and experiments
29
30 0.9.3 - ""
31  * Removed the much disliked contact source ID
32  * Added saving of callback number when using GoogleVoice
33  * Got proper formatting on things ("&" rather than "&")
34  * Misc Bug fixes
35
36 0.9.2 - "Two heads are better than one"
37  * Adding of UI to switch between GC and GV
38  * Minimized flashing the dial button between grayed out and not on startup
39  * Bug fixes
40
41 0.9.1 - "Get your hands off that"
42  * GoogleVoice Support, what a pain
43  * More flexible CSV support.  It now checks the header row for what column name/number are in
44  * Experimenting with faster startup by caching PYC files with the package
45  * Fixing of some bad error handling
46  * More debug output for when people run into issues
47
48 0.9.0 - "Slick as snot"
49  * Caching of contacts
50  * Refactoring to make working with the code easier
51  * Filesystem backed contacts but currently only supporting a specific csv format
52  * Gracefully handle lack of connection and connection transitions
53  * Gracefully handle failed login
54  * A tiny bit better error reporting
55
56 0.8.3 - "Extras Love"
57  * Version bump fighting the extras autobuilder, I hope this works
58
59 0.8.2 - "Feed is for horses, so what about feedback?"
60  * Merged addressbook
61  * many more smaller fixes
62
63 0.8.1 - "Two Beers"
64  * Thumb scrollbars ( Kudos Khertan )
65
66 0.8.0 - "Spit and polish"
67  * Addressbook support
68  * threaded networking for better interactivity
69  * Hold down back to clear number
70  * Standard about dialog
71  * many more smaller fixes
72 '''
73
74
75 __postinstall__ = '''#!/bin/sh
76
77 gtk-update-icon-cache /usr/share/icons/hicolor
78 '''
79
80
81 def find_files(path):
82         for root, dirs, files in os.walk(path):
83                 for file in files:
84                         if file.startswith("src-"):
85                                 fileParts = file.split("-")
86                                 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
87                                 assert unused == "src"
88                                 relPath = os.sep.join(relPathParts)
89                                 yield relPath, file, newName
90
91
92 def unflatten_files(files):
93         d = {}
94         for relPath, oldName, newName in files:
95                 if relPath not in d:
96                         d[relPath] = []
97                 d[relPath].append((oldName, newName))
98         return d
99
100
101 if __name__ == "__main__":
102         try:
103                 os.chdir(os.path.dirname(sys.argv[0]))
104         except:
105                 pass
106
107         p = Py2deb(__appname__)
108         p.description = __description__
109         p.author = __author__
110         p.mail = __email__
111         p.license = "lgpl"
112         p.depends = "python2.5, python2.5-gtk2, python2.5-xml"
113         p.section = "user/communication"
114         p.arch = "all"
115         p.urgency = "low"
116         p.distribution = "chinook diablo"
117         p.repository = "extras-devel"
118         p.changelog = __changelog__
119         p.postinstall = __postinstall__
120         p.icon="26x26-dialcentral.png"
121         p["/usr/bin"] = [ "dialcentral.py" ]
122         for relPath, files in unflatten_files(find_files(".")).iteritems():
123                 fullPath = "/usr/lib/dialcentral"
124                 if relPath:
125                         fullPath += os.sep+relPath
126                 p[fullPath] = list(
127                         "|".join((oldName, newName))
128                         for (oldName, newName) in files
129                 )
130         p["/usr/share/applications/hildon"] = ["dialcentral.desktop"]
131         p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-dialcentral.png|dialcentral.png"]
132         p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-dialcentral.png|dialcentral.png"]
133         p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-dialcentral.png|dialcentral.png"]
134
135         print p
136         print p.generate(
137                 __version__, __build__, changelog=__changelog__,
138                 tar=True, dsc=True, changes=True, build=False, src=True
139         )