Experimenting with having the package include the pyc files for faster startup time...
[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.1"
11 __build__ = 0
12 __changelog__ = '''\
13 0.9.1 - "Get your hands off that"
14  * More flexible CSV support.  It now checks the header row for what column name/number are in
15
16 0.9.0 - "Slick as snot"
17  * Caching of contacts
18  * Refactoring to make working with the code easier
19  * Filesystem backed contacts but currently only supporting a specific csv format
20  * Gracefully handle lack of connection and connection transitions
21  * Gracefully handle failed login
22  * A tiny bit better error reporting
23
24 0.8.3 - "Extras Love"
25  * Version bump fighting the extras autobuilder, I hope this works
26
27 0.8.2 - "Feed is for horses, so what about feedback?"
28  * Merged addressbook
29  * many more smaller fixes
30
31 0.8.1 - "Two Beers"
32  * Thumb scrollbars ( Kudos Khertan )
33
34 0.8.0 - "Spit and polish"
35  * Addressbook support
36  * threaded networking for better interactivity
37  * Hold down back to clear number
38  * Standard about dialog
39  * many more smaller fixes
40 '''
41
42
43 __postinstall__ = '''#!/bin/sh
44
45 gtk-update-icon-cache /usr/share/icons/hicolor
46 '''
47
48
49 if __name__ == "__main__":
50         try:
51                 os.chdir(os.path.dirname(sys.argv[0]))
52         except:
53                 pass
54
55         p = Py2deb(__appname__)
56         p.description = __description__
57         p.author = __author__
58         p.mail = __email__
59         p.license = "lgpl"
60         p.depends = "python2.5, python2.5-gtk2"
61         # p.section = "user/utilities"
62         p.section = "user/communication"
63         p.arch = "all"
64         p.urgency = "low"
65         p.distribution = "chinook diablo"
66         p.repository = "extras-devel"
67         p.changelog = __changelog__
68         p.postinstall = __postinstall__
69         p.icon="26x26-dialcentral.png"
70         p["/usr/bin"] = [ "dialcentral.py" ]
71         p["/usr/lib/dialcentral"] = [
72                 "dialcentral.glade",
73                 "__init__.py",
74                 "dialer.py",
75                 "browser_emu.py",
76                 "file_backend.py",
77                 "evo_backend.py",
78                 "gc_backend.py",
79                 "gv_backend.py",
80                 "gc_views.py",
81                 "null_views.py",
82                 "gtk_toolbox.py",
83                 "__init__.pyc",
84                 "dialer.pyc",
85                 "browser_emu.pyc",
86                 "file_backend.pyc",
87                 "evo_backend.pyc",
88                 "gc_backend.pyc",
89                 "gv_backend.pyc",
90                 "gc_views.pyc",
91                 "null_views.pyc",
92                 "gtk_toolbox.pyc",
93         ]
94         p["/usr/share/applications/hildon"] = ["dialcentral.desktop"]
95         p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-dialcentral.png|dialcentral.png"]
96         p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-dialcentral.png|dialcentral.png"]
97         p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-dialcentral.png|dialcentral.png"]
98
99         print p
100         print p.generate(
101                 __version__, __build__, changelog=__changelog__,
102                 tar=True, dsc=True, changes=True, build=False, src=True
103         )