root/branches/gajim_0.11.3-bugfixes/autopackage/default.apspec

Revision 6264, 2.6 kB (checked in by asterix, 3 years ago)

[Filippos] updated autopackage file

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 <psybases@gmail.com>
9Summary: Gajim is a Jabber client written in Python.
10URL: http://www.gajim.org/
11License: GNU General Public License, Version 2
12SoftwareVersion: 0.10
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
55require @python.org/python 2.4
56require @python.org/python-xml 2.4
57require @gtk.org/gtk 2.6
58
59########The 2.5 version is for SUSE 9.3
60require @gnome.org/pygtk 2.5
61require @gnome.org/pyglade 2.5
62require @glade.gnome.org/libglade 2
63require @pysqlite.org/pysqlite 2
64recommend @gtkspell.sourceforge.net/gtkspell 0
65
66
67[Install]
68# Put your installation script here
69
70copyFiles  lib/gajim "$PREFIX/lib"
71copyFiles  share/gajim "$PREFIX/share/"
72installLocale share/locale
73installIcon share/pixmaps/gajim.png
74installDesktop "Network/Instant Messaging" gajim.desktop
75installMan 1 gajim.1
76#In the following safeSed we assume that the original Makefile is a bit modified so that to be relocatable by AP
77#so you have to manually remove the sed in Makefile for AP to work
78safeSed bin/gajim "s!PREFIX!$PREFIX!g"
79safeSed bin/gajim-remote "s!PREFIX!$PREFIX!g"
80installExe bin/*
81chmod +x "$PREFIX/bin/gajim"
82chmod +x "$PREFIX/bin/gajim-remote"
83
84
85[Uninstall]
86# Usually just the following line is enough to uninstall everything
87uninstallFromLog
Note: See TracBrowser for help on using the browser.