~ubuntu-branches/ubuntu/maverick/webservice-office-zoho/maverick

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python

from distutils.version import StrictVersion
import os
import glob

try:
    import DistUtilsExtra.auto
except ImportError:
    import sys
    print >> sys.stderr, 'To build webservice-office-zoho you need https://launchpad.net/python-distutils-extra'
    sys.exit(1)

assert StrictVersion(DistUtilsExtra.auto.__version__) >= '2.4', 'needs DistUtilsExtra.auto >= 2.4'

packageFolder = 'share/webservice-office-zoho'

DistUtilsExtra.auto.setup(
    name='webservice-office-zoho',
    version='0.1',
    description='Ubuntu web service for office documents using Zoho',
    long_description='webservice-office-zoho allows office documents to be viewed online using the Zoho web services',
    url='http://launchpad.net/webservice-office-zoho',
    license='GPL v3',
    author='Jamie Bennett',
    author_email='jb@canonical.com',
    scripts=['bin/webservice-office-zoho'],
    data_files=[(packageFolder, ['doc/empty-zoho-document.odt', 
				 'doc/empty-zoho-document.ods',
				 'doc/empty-zoho-document.odp']),
                ('share/icons/hicolor/32x32/apps', glob.glob("images/icons/32x32/*.png")),
                ('share/icons/hicolor/24x24/apps', glob.glob("images/icons/24x24/*.png")),
                ('share/icons/hicolor/22x22/apps', glob.glob("images/icons/22x22/*.png")),
                ('share/icons/hicolor/16x16/apps', glob.glob("images/icons/16x16/*.png")),
                ('share/icons/hicolor/12x12/apps', glob.glob("images/icons/12x12/*.png"))]
)