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

« back to all changes in this revision

Viewing changes to tools/build-system/osc/sflphone-client-gnome.spec

  • Committer: Package Import Robot
  • Author(s): Whoopie
  • Date: 2012-03-22 10:29:10 UTC
  • mfrom: (4.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120322102910-tb8hugi2su1tguwh
Tags: 1.0.2-1ubuntu1
* Apply some upstream patches to fix FTBFS (LP: #913018):
  - debian/patches/05_glib_includes.patch: fix glib includes.
  - debian/patches/06_use_XkbKeycodeToKeysym.patch: use 
    XkbKeycodeToKeysym instead of (deprecated) XKeycodeToKeysym.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#####################################################
 
2
# File Name: sflphone-client-gnome.spec
 
3
#
 
4
# Purpose :
 
5
#
 
6
# Author: Julien Bonjean (julien@bonjean.info)
 
7
#
 
8
# Creation Date: 2009-05-27
 
9
# Last Modified: 2009-10-07
 
10
#####################################################
 
11
 
 
12
Name:           sflphone-client-gnome
 
13
License:        GNU General Public License (GPL)
 
14
Group:          Productivity/Networking/System
 
15
Summary:        GNOME client for SFLphone
 
16
Version:        VERSION
 
17
Release:        VERSION_INDEX%{?dist}
 
18
URL:            http://www.sflphone.org/
 
19
Vendor:         Savoir-faire Linux
 
20
Packager:       Julien Bonjean <julien.bonjean@savoirfairelinux.com>
 
21
 
 
22
Group:          Applications/Communications
 
23
BuildRoot:      %{_tmppath}/%{name}
 
24
Source0:        sflphone-client-gnome-%{version}.tar.gz
 
25
 
 
26
%if %{defined suse_version}
 
27
BuildRequires:  scrollkeeper
 
28
BuildRequires:  update-desktop-files
 
29
BuildRequires:  dbus-1-glib-devel
 
30
BuildRequires:  gnome-doc-utils-devel   
 
31
BuildRequires:  libgnomeui-devel
 
32
BuildRequires:  libwebkit-devel
 
33
%endif
 
34
 
 
35
%if %{defined fedora_version}
 
36
BuildRequires:  rarian-compat
 
37
BuildRequires:  dbus-glib-devel
 
38
BuildRequires:  gnome-doc-utils
 
39
BuildRequires:  libgnomeui-devel
 
40
BuildRequires:  gettext
 
41
# fix libproxy-pac expansion error
 
42
BuildRequires:  libproxy-webkit
 
43
# fix PolicyKit-authentication-agent expansion error
 
44
BuildRequires:  PolicyKit-gnome
 
45
BuildRequires:  webkitgtk-devel
 
46
%endif
 
47
 
 
48
%if %{defined mandriva_version}
 
49
BuildRequires:  libgnomeui2-devel
 
50
BuildRequires:  libdbus-glib-1_2-devel
 
51
BuildRequires:  gnome-doc-utils
 
52
# fix libesound0 expansion error
 
53
BuildRequires:  pulseaudio-esound-compat
 
54
# fix libproxy-pac expansion error
 
55
BuildRequires:  libproxy-webkit
 
56
%endif
 
57
 
 
58
BuildRequires:  gtk2-devel
 
59
BuildRequires:  libnotify-devel
 
60
BuildRequires:  libsexy-devel
 
61
BuildRequires:  evolution-data-server-devel
 
62
BuildRequires:  check-devel
 
63
 
 
64
Requires:       sflphone-common = %{version}
 
65
Requires:       dbus-1-glib
 
66
Requires:       gtk2
 
67
Requires:       glib2
 
68
Requires:       libnotify
 
69
Requires:       libsexy
 
70
Requires:       notification-daemon
 
71
 
 
72
%if %{defined suse_version}
 
73
Requires:       librsvg
 
74
Requires:       webkitgtk
 
75
%endif
 
76
 
 
77
%if %{defined fedora_version}
 
78
Requires:       librsvg2
 
79
Requires:       webkitgtk
 
80
%endif
 
81
 
 
82
Conflicts:      sflphone
 
83
Prefix:         %{_prefix}
 
84
 
 
85
%description
 
86
Provide a GNOME client for SFLphone.
 
87
 SFLphone is meant to be a robust enterprise-class desktop phone.
 
88
 SFLphone is released under the GNU General Public License.
 
89
 SFLphone is being developed by the global community, and maintained by
 
90
 Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
 
91
 
 
92
Authors:
 
93
--------
 
94
    Julien Bonjean <julien.bonjean@savoirfairelinux.com>
 
95
 
 
96
%lang_package
 
97
 
 
98
%prep
 
99
%setup -q
 
100
 
 
101
 
 
102
%build
 
103
export SUSE_ASNEEDED=0 # fix opensuse linking issue (Since 11.2 uses default --as-needed for linking, the order of libraries is important)
 
104
./autogen.sh
 
105
./configure --prefix=%{_prefix}
 
106
make -j
 
107
 
 
108
 
 
109
%install
 
110
make DESTDIR=%{buildroot} install
 
111
%if %{defined suse_version}
 
112
%suse_update_desktop_file -n %{buildroot}/%{_prefix}/share/applications/sflphone.desktop
 
113
%endif
 
114
rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper
 
115
 
 
116
%clean
 
117
make clean
 
118
 
 
119
%files
 
120
%defattr(-, root, root)
 
121
%dir %{_prefix}/etc/
 
122
%dir %{_prefix}/share/sflphone
 
123
%dir %{_prefix}/share/sflphone/ui
 
124
%dir %{_prefix}/share/omf/sflphone
 
125
%dir %{_prefix}/share/sflphone/webkit
 
126
%dir %{_prefix}/share/sflphone/webkit/im
 
127
%dir %{_prefix}/etc/gconf/
 
128
%dir %{_prefix}/etc/gconf/schemas/
 
129
 
 
130
%lang(fr) %{_prefix}/share/locale/fr/LC_MESSAGES/*.mo
 
131
%lang(es) %{_prefix}/share/locale/es/LC_MESSAGES/*.mo
 
132
%lang(de) %{_prefix}/share/locale/de/LC_MESSAGES/*.mo
 
133
%lang(ru) %{_prefix}/share/locale/ru/LC_MESSAGES/*.mo
 
134
%lang(zh_CN) %{_prefix}/share/locale/zh_CN/LC_MESSAGES/*.mo
 
135
%lang(zh_HK) %{_prefix}/share/locale/zh_HK/LC_MESSAGES/*.mo
 
136
%lang(it) %{_prefix}/share/locale/it/LC_MESSAGES/*.mo
 
137
%lang(pt_BR) %{_prefix}/share/locale/pt_BR/LC_MESSAGES/*.mo
 
138
%lang(da) %{_prefix}/share/locale/da/LC_MESSAGES/*.mo
 
139
%doc AUTHORS COPYING README
 
140
%doc %{_prefix}/share/man/man1/sflphone-client-gnome.1.gz
 
141
%doc %{_prefix}/share/man/man1/sflphone.1.gz
 
142
%doc %{_prefix}/share/gnome/help/sflphone
 
143
%{_prefix}/bin/sflphone
 
144
%{_prefix}/bin/sflphone-client-gnome
 
145
%{_prefix}/share/pixmaps/sflphone.svg
 
146
%{_prefix}/share/applications/sflphone.desktop
 
147
%{_prefix}/share/sflphone/*.svg
 
148
%{_prefix}/share/sflphone/*.gif
 
149
%{_prefix}/share/omf/sflphone/*
 
150
%{_prefix}/share/sflphone/ui/ui.xml
 
151
%{_prefix}/etc/gconf/schemas/sflphone-client-gnome.schemas
 
152
%{_prefix}/share/sflphone/webkit/im/chat_info.png
 
153
%{_prefix}/share/sflphone/webkit/im/error.png
 
154
%{_prefix}/share/sflphone/webkit/im/im.css
 
155
%{_prefix}/share/sflphone/webkit/im/im.html
 
156
%{_prefix}/share/sflphone/webkit/im/im.js
 
157
%{_prefix}/share/sflphone/webkit/im/sflphone.png
 
158
 
 
159
 
 
160
%changelog
 
161