~ubuntu-branches/ubuntu/raring/sflphone/raring

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#####################################################
# File Name: sflphone-client-gnome.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-10-07
#####################################################

Name:           sflphone-client-gnome
License:        GNU General Public License (GPL)
Group:          Productivity/Networking/System
Summary:        GNOME client for SFLphone
Version:        VERSION
Release:        VERSION_INDEX%{?dist}
URL:            http://www.sflphone.org/
Vendor:		Savoir-faire Linux
Packager:       Julien Bonjean <julien.bonjean@savoirfairelinux.com>

Group:          Applications/Communications
BuildRoot:      %{_tmppath}/%{name}
Source0:        sflphone-client-gnome-%{version}.tar.gz

%if %{defined suse_version}
BuildRequires:  scrollkeeper
BuildRequires:	update-desktop-files
BuildRequires:	dbus-1-glib-devel
BuildRequires:	gnome-doc-utils-devel	
BuildRequires:	libgnomeui-devel
BuildRequires:  libwebkit-devel
%endif

%if %{defined fedora_version}
BuildRequires:  rarian-compat
BuildRequires:	dbus-glib-devel
BuildRequires:	gnome-doc-utils
BuildRequires:	libgnomeui-devel
BuildRequires:  gettext
# fix libproxy-pac expansion error
BuildRequires:	libproxy-webkit
# fix PolicyKit-authentication-agent expansion error
BuildRequires:	PolicyKit-gnome
BuildRequires:  webkitgtk-devel
%endif

%if %{defined mandriva_version}
BuildRequires:	libgnomeui2-devel
BuildRequires:	libdbus-glib-1_2-devel
BuildRequires:	gnome-doc-utils
# fix libesound0 expansion error
BuildRequires:	pulseaudio-esound-compat
# fix libproxy-pac expansion error
BuildRequires:	libproxy-webkit
%endif

BuildRequires:	gtk2-devel
BuildRequires:	libnotify-devel
BuildRequires:	libsexy-devel
BuildRequires:	evolution-data-server-devel
BuildRequires:	check-devel

Requires:	sflphone-common = %{version}
Requires:	dbus-1-glib
Requires:	gtk2
Requires:	glib2
Requires:	libnotify
Requires:	libsexy
Requires:	notification-daemon

%if %{defined suse_version}
Requires:	librsvg
Requires:       webkitgtk
%endif

%if %{defined fedora_version}
Requires:	librsvg2
Requires:       webkitgtk
%endif

Conflicts:	sflphone
Prefix:		%{_prefix}

%description
Provide a GNOME client for SFLphone.
 SFLphone is meant to be a robust enterprise-class desktop phone.
 SFLphone is released under the GNU General Public License.
 SFLphone is being developed by the global community, and maintained by
 Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.

Authors:
--------
    Julien Bonjean <julien.bonjean@savoirfairelinux.com>

%lang_package

%prep
%setup -q


%build
export SUSE_ASNEEDED=0 # fix opensuse linking issue (Since 11.2 uses default --as-needed for linking, the order of libraries is important)
./autogen.sh
./configure --prefix=%{_prefix}
make -j


%install
make DESTDIR=%{buildroot} install
%if %{defined suse_version}
%suse_update_desktop_file -n %{buildroot}/%{_prefix}/share/applications/sflphone.desktop
%endif
rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper

%clean
make clean

%files
%defattr(-, root, root)
%dir %{_prefix}/etc/
%dir %{_prefix}/share/sflphone
%dir %{_prefix}/share/sflphone/ui
%dir %{_prefix}/share/omf/sflphone
%dir %{_prefix}/share/sflphone/webkit
%dir %{_prefix}/share/sflphone/webkit/im
%dir %{_prefix}/etc/gconf/
%dir %{_prefix}/etc/gconf/schemas/

%lang(fr) %{_prefix}/share/locale/fr/LC_MESSAGES/*.mo
%lang(es) %{_prefix}/share/locale/es/LC_MESSAGES/*.mo
%lang(de) %{_prefix}/share/locale/de/LC_MESSAGES/*.mo
%lang(ru) %{_prefix}/share/locale/ru/LC_MESSAGES/*.mo
%lang(zh_CN) %{_prefix}/share/locale/zh_CN/LC_MESSAGES/*.mo
%lang(zh_HK) %{_prefix}/share/locale/zh_HK/LC_MESSAGES/*.mo
%lang(it) %{_prefix}/share/locale/it/LC_MESSAGES/*.mo
%lang(pt_BR) %{_prefix}/share/locale/pt_BR/LC_MESSAGES/*.mo
%lang(da) %{_prefix}/share/locale/da/LC_MESSAGES/*.mo
%doc AUTHORS COPYING README
%doc %{_prefix}/share/man/man1/sflphone-client-gnome.1.gz
%doc %{_prefix}/share/man/man1/sflphone.1.gz
%doc %{_prefix}/share/gnome/help/sflphone
%{_prefix}/bin/sflphone
%{_prefix}/bin/sflphone-client-gnome
%{_prefix}/share/pixmaps/sflphone.svg
%{_prefix}/share/applications/sflphone.desktop
%{_prefix}/share/sflphone/*.svg
%{_prefix}/share/sflphone/*.gif
%{_prefix}/share/omf/sflphone/*
%{_prefix}/share/sflphone/ui/ui.xml
%{_prefix}/etc/gconf/schemas/sflphone-client-gnome.schemas
%{_prefix}/share/sflphone/webkit/im/chat_info.png
%{_prefix}/share/sflphone/webkit/im/error.png
%{_prefix}/share/sflphone/webkit/im/im.css
%{_prefix}/share/sflphone/webkit/im/im.html
%{_prefix}/share/sflphone/webkit/im/im.js
%{_prefix}/share/sflphone/webkit/im/sflphone.png


%changelog