root/branches/gajim_0.10.1/autopackage/default.apspec

Revision 4782, 2.8 kB (checked in by nk, 3 years ago)

[filip] req pysqlite2 too

Line 
1# -*-shell-script-*-
2
3[Meta]
4RootName: @gajim.org/gajim:$SOFTWAREVERSION
5DisplayName: Gajim Jabber Client
6ShortName: gajim
7Maintainer: The Gajim Developers <gajim-devel-subscribe@gajim.org>
8Packager: Filippos Papadopoulos <filip@cs.uoi.gr>
9Summary: Gajim is a Jabber client written in Python.
10URL: http://www.gajim.org/
11License: GNU General Public License, Version 2
12SoftwareVersion: 0.9
13AutopackageTarget: 1.0
14PackageVersion: 1
15
16# Only uncomment InterfaceVersion if your package exposes interfaces to other software,
17# for instance if it includes DSOs or python/perl modules. See the developer guide for more info,
18# or ask on autopackage-dev if you don't understand interface versioning in autopackage.
19#
20# InterfaceVersion: 0.0
21
22[Description]
23Gajim is a jabber client written in PyGTK. The goal of Gajim is to provide a full featured and easy to use xmpp
24client for the GTK+ users. Gajim does not require GNOME to run, eventhough it exists with it nicely. Gajim is
25released under the GNU General Public License. Features: Tabbed chat windows, Groupchat support (with MUC protocol),
26File tranfers, Emoticons, URL grabber, Systray icon, GPG support, Multiple accounts support and much more!
27
28
29
30[BuildPrepare]
31echo "-------==========$USER i am making the package...===============------"
32export build_root="/tmp/build-root.$$"
33echo "Build root is $build_root"
34mkdir "$build_root"
35make PREFIX=$build_root CC=apgcc CXX=apg++ || exit 1
36make install PREFIX=$build_root CC=apgcc CXX=apg++ || exit 1
37
38
39
40[BuildUnprepare]
41unprepareBuild
42
43
44[Imports]
45echo '*' | import
46import <<EOF
47$source_dir/gajim.desktop
48$source_dir/gajim.1
49EOF
50
51
52[Prepare]
53# Dependency checking
54#PyGTK 2.4 requires python 2.3
55
56require @python.org/python 2.3
57require @python.org/python-xml 2.3
58require @gtk.org/gtk 2.6
59require @gnome.org/pygtk 2.5
60require @gnome.org/pyglade 2.5
61require @glade.gnome.org/libglade 2
62require @pysqlite.org/pysqlite 2
63recommend @gtkspell.sourceforge.net/gtkspell 0
64if ! require @dnspython.org/dnspython 1; then
65recommend @pydns.sourceforge.net/pydns 2
66fi
67
68#recommend @dnspython.org/dnspython 1
69#recommend @pydns.sourceforge.net/pydns 2
70
71
72
73[Install]
74# Put your installation script here
75
76copyFiles  lib/gajim "$PREFIX/lib"
77copyFiles  share/gajim "$PREFIX/share/"
78installLocale share/locale
79installIcon share/pixmaps/gajim.png
80installDesktop "Network/Instant Messaging" gajim.desktop
81installMan 1 gajim.1
82#In the following safeSed we assume that the original Makefile is a bit modified so that to be relocatable by AP
83#so you have to manually remove the sed in Makefile for AP to work
84safeSed bin/gajim "s!PREFIX!$PREFIX!g"
85safeSed bin/gajim-remote "s!PREFIX!$PREFIX!g"
86installExe bin/*
87chmod +x "$PREFIX/bin/gajim"
88chmod +x "$PREFIX/bin/gajim-remote"
89
90
91[Uninstall]
92# Usually just the following line is enough to uninstall everything
93uninstallFromLog
Note: See TracBrowser for help on using the browser.