12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
-
- import py2deb
- import os
- if __name__ == "__main__":
- try:
- os.chdir(os.path.dirname(sys.argv[0]))
- except:
- pass
- print
- p=py2deb.Py2deb("qonso")
- p.maemodisplayname="Qonso"
- p.description = dict()
- p.description['default']="Mobile phone plan information"
- p.description['fr_FR']="Suivi conso pour forfaits mobiles"
- p.upgradedescription='Use MicroB user agent, useful for SFR'
- version = "0.5.1"
- build = "1"
- p.author="Gérald Fauvelle"
- p.mail="maemo@fauvelle.net"
- p.depends = "python2.5, python2.5-qt4-gui,python2.5-qt4-core, python2.5-qt4-network,python2.5-qt4-webkit"
- p.section="user/network"
- p.icon = "src/usr/share/icons/hicolor/40x40/apps/qonso.png"
- p.arch="all"
- p.urgency="low"
- p.distribution="fremantle"
- p.repository="extras-devel"
- p.xsbc_bugtracker="https://projects.forum.nokia.com/Qonso/query?status=!closed&order=priority"
-
- p.postinstall="""#!/bin/sh
- chmod +x /opt/qonso/*.py
- """
-
-
-
-
-
-
- changeloginformation = p.upgradedescription
- dir_name = "src"
-
- for root, dirs, files in os.walk(dir_name):
- real_dir = root[len(dir_name):]
- fake_file = []
- for f in files:
- if f.endswith(".pyc") or f.endswith(".pyo"):
- continue
- fake_file.append(root + os.sep + f + "|" + f)
- if len(fake_file) > 0:
- p[real_dir] = fake_file
- print p
- r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
|