]>
Commit | Line | Data |
---|---|---|
19644329 | 1 | # TODO: |
cc6363c3 JB |
2 | # - --enable-tunnel (BR: pkgconfig(tunnel) >= 0.3.3) |
3 | # - fill in dependencies for !system_ortp, !system_mediastreamer | |
4 | # - check if all this configure option I've set are really needed | |
5 | # - separate libraries that do not require gnome into subpackages for Jingle support in kopete | |
1266a22a | 6 | # - if system_mediastreamerpackages copies for "libmediastreamer.so.1", "libortp.so.8" libraries |
2be3dd84 ER |
7 | # those should be installed to private path and LD_LIBARY_PATH setup with wrappers. |
8 | # without doing so do not stbr it to Th! | |
9 | # | |
10 | # Conditional build: | |
e315cc5e | 11 | %bcond_without ldap # LDAP support |
cc6363c3 | 12 | %bcond_without openssl # SSL support |
d7a0feb6 JK |
13 | %bcond_without system_ortp # use custom ortp |
14 | %bcond_without system_mediastreamer # use custom mediastreamer | |
2be3dd84 | 15 | |
ead68a0a | 16 | Summary: Linphone Internet Phone |
ebe66e09 | 17 | Summary(pl.UTF-8): Linphone - telefon internetowy |
ead68a0a | 18 | Name: linphone |
878cd8f3 | 19 | Version: 3.7.0 |
1efea340 | 20 | Release: 2 |
cc6363c3 | 21 | License: GPL v2+ |
ead68a0a | 22 | Group: Applications/Communications |
878cd8f3 JK |
23 | Source0: http://download-mirror.savannah.gnu.org/releases/linphone/3.7.x/sources/%{name}-%{version}.tar.gz |
24 | # Source0-md5: 6978492712bdacd452e375254d6033ae | |
870abe3e | 25 | Patch0: %{name}-imgdir.patch |
878cd8f3 | 26 | Patch1: %{name}-sh.patch |
1efea340 | 27 | Patch2: displayname_use_after_free.patch |
ead68a0a | 28 | URL: http://www.linphone.org/ |
19a84d2e | 29 | BuildRequires: alsa-lib-devel >= 0.9.0 |
cc6363c3 | 30 | BuildRequires: autoconf >= 2.50 |
e315cc5e | 31 | BuildRequires: automake >= 1:1.9 |
83834119 | 32 | BuildRequires: belle-sip-devel >= 1.3.0 |
e315cc5e | 33 | %{?with_ldap:BuildRequires: cyrus-sasl-devel >= 2} |
cc6363c3 | 34 | BuildRequires: doxygen |
19a431e4 | 35 | BuildRequires: ffmpeg-devel >= 0.4.5 |
efd90257 | 36 | BuildRequires: gettext-tools |
09627ea4 | 37 | BuildRequires: gnome-common >= 2.8.0 |
cc6363c3 JB |
38 | BuildRequires: gtk+2-devel >= 2:2.22.0 |
39 | BuildRequires: intltool >= 0.40 | |
cc6363c3 | 40 | BuildRequires: libnotify-devel >= 0.7.0 |
cc6363c3 JB |
41 | BuildRequires: libsoup-devel >= 2.26 |
42 | BuildRequires: libstdc++-devel | |
43 | BuildRequires: libtool >= 2:2 | |
cc6363c3 | 44 | BuildRequires: libupnp-devel < 1.7 |
83834119 | 45 | BuildRequires: libupnp-devel >= 1.6 |
65c3ac70 | 46 | BuildRequires: libv4l-devel |
cc6363c3 | 47 | BuildRequires: libxml2-devel >= 2.0 |
e315cc5e | 48 | %{?with_system_mediastreamer:BuildRequires: mediastreamer-devel >= 2.10.0} |
65c3ac70 | 49 | BuildRequires: ncurses-devel |
e315cc5e | 50 | %{?with_ldap:BuildRequires: openldap-devel} |
cc6363c3 | 51 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.8} |
e315cc5e | 52 | %{?with_system_ortp:BuildRequires: ortp-devel >= 0.23.0} |
b9093986 | 53 | BuildRequires: pkgconfig |
65c3ac70 | 54 | BuildRequires: readline-devel |
7006b178 | 55 | BuildRequires: rpmbuild(macros) >= 1.98 |
82f93e48 | 56 | BuildRequires: scrollkeeper |
cc6363c3 JB |
57 | BuildRequires: speex-devel >= 1.1.6 |
58 | BuildRequires: sqlite3-devel >= 3.7.0 | |
e315cc5e | 59 | %{!?with_system_ortp:BuildRequires: srtp-devel} |
cc6363c3 JB |
60 | BuildRequires: udev-devel |
61 | BuildRequires: xorg-lib-libX11-devel | |
65c3ac70 | 62 | BuildRequires: xorg-lib-libXv-devel |
cc6363c3 JB |
63 | %if %{without system_mediastreamer} |
64 | BuildRequires: libgsm-devel >= 1.0.10 | |
65 | BuildRequires: pulseaudio-devel | |
66 | %endif | |
0d0d51c2 | 67 | Requires(post,postun): /usr/bin/scrollkeeper-update |
fa8b1174 | 68 | Requires: %{name}-libs = %{version}-%{release} |
cc6363c3 JB |
69 | Requires: gtk+2 >= 2:2.22.0 |
70 | Requires: libnotify >= 0.7.0 | |
ead68a0a JK |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
72 | ||
1266a22a | 73 | %if %{without system_ortp} |
560e37c2 | 74 | %define _noautoreq_1 libortp\.so.* |
1266a22a JK |
75 | %endif |
76 | %if %{without system_mediastreamer} | |
560e37c2 | 77 | %define _noautoreq_2 libmediastreamer\.so.* |
1266a22a JK |
78 | %endif |
79 | ||
560e37c2 ER |
80 | %define _noautoreq %{?_noautoreq_1} %{?_noautoreq_2} |
81 | %define _noautoprov %{?_noautoreq} | |
82 | ||
ead68a0a | 83 | %description |
82f93e48 JK |
84 | Linphone is a web phone: it let you phone to your friends anywhere in |
85 | the whole world, freely, simply by using the internet. The cost of the | |
86 | phone call is the cost that you spend connected to the internet. | |
ead68a0a JK |
87 | |
88 | Here are the main features of linphone: | |
0a80c6e3 | 89 | - Works with the GNOME Desktop under linux. |
90 | - Works as simply as a cellular phone. Two buttons, no more. | |
91 | - Understands the SIP protocol. | |
92 | - You just require a soundcard to use linphone. | |
93 | - Linphone is free software, released under the General Public | |
94 | Licence. | |
95 | - Linphone is documented: there is a complete user manual readable | |
96 | from the application that explains you all you need to know. | |
ead68a0a | 97 | |
6282cb7a JR |
98 | %description -l pl.UTF-8 |
99 | Linphone to telefon internetowy - pozwala dzwonić do znajomych na | |
100 | całym świecie bez dodatkowych opłat, używając tylko Internetu. | |
a1ee0767 | 101 | |
6282cb7a JR |
102 | Główne cechy linphone: |
103 | - działanie ze środowiskiem GNOME | |
104 | - naśladowanie prostego telefonu komórkowego - tylko dwa przyciski | |
105 | - obsługa protokołu SIP | |
106 | - wymaga karty dźwiękowej | |
107 | - jest wolnodostępnym oprogramowaniem (na licencji GPL) | |
108 | - ma dokumentację: pełny podręcznik dostępny z aplikacji. | |
a1ee0767 | 109 | |
9e0d9ef3 JK |
110 | %package -n linphonec |
111 | Summary: Linphone Internet Phone console interface | |
112 | Summary(pl.UTF-8): Linphone - telefon internetowy, interfejs konsolowy | |
113 | Group: Applications/Communications | |
114 | Requires: %{name}-libs = %{version}-%{release} | |
115 | ||
116 | %description -n linphonec | |
cc6363c3 | 117 | Linphonec is the console version of originally GNOME Internet phone |
9e0d9ef3 JK |
118 | Linphone. |
119 | ||
120 | %description -n linphonec -l pl.UTF-8 | |
cc6363c3 JB |
121 | Linphonec to konsolowa wersja telefonu internetowego Linphone |
122 | pochodzącego z GNOME. | |
9e0d9ef3 | 123 | |
fa8b1174 JK |
124 | %package libs |
125 | Summary: Linphone libraries | |
126 | Summary(pl.UTF-8): Biblioteki Linphone | |
127 | Group: Libraries | |
128 | Requires(post,postun): /sbin/ldconfig | |
878cd8f3 | 129 | Requires: belle-sip >= 1.3.0 |
cc6363c3 | 130 | Requires: libsoup-devel >= 2.26 |
e315cc5e JB |
131 | %{?with_system_mediastreamer:Requires: mediastreamer >= 2.10.0} |
132 | %{?with_system_ortp:Requires: ortp >= 0.23.0} | |
cc6363c3 | 133 | Requires: sqlite3 >= 3.7.0 |
fa8b1174 JK |
134 | |
135 | %description libs | |
136 | Linphone libraries. | |
137 | ||
138 | %description libs -l pl.UTF-8 | |
139 | Biblioteki Linphone. | |
140 | ||
9f074e4f | 141 | %package devel |
a16661e1 | 142 | Summary: Linphone Internet Phone - header files |
ebe66e09 | 143 | Summary(pl.UTF-8): Telefon internetowy Linphone - pliki nagłówkowe |
37c5bcf1 | 144 | Group: Development/Libraries |
fa8b1174 | 145 | Requires: %{name}-libs = %{version}-%{release} |
19a84d2e | 146 | Requires: alsa-lib-devel >= 0.9.0 |
83834119 | 147 | Requires: belle-sip-devel >= 1.3.0 |
19a84d2e | 148 | Requires: glib2-devel >= 2.0.0 |
a16661e1 | 149 | Requires: gtk-doc-common |
cc6363c3 JB |
150 | Requires: libsoup-devel >= 2.26 |
151 | Requires: libstdc++-devel | |
cc6363c3 | 152 | Requires: libupnp-devel < 1.7 |
83834119 | 153 | Requires: libupnp-devel >= 1.6 |
cc6363c3 | 154 | Requires: libxml2-devel >= 2.0 |
e315cc5e JB |
155 | %{?with_system_mediastreamer:Requires: mediastreamer-devel >= 2.10.0} |
156 | %{?with_system_ortp:Requires: ortp-devel >= 0.23.0} | |
cc6363c3 JB |
157 | Requires: speex-devel >= 1.1.6 |
158 | Requires: sqlite3-devel >= 3.7.0 | |
159 | Requires: srtp-devel | |
160 | Requires: xorg-lib-libX11-devel | |
161 | Requires: xorg-lib-libXv-devel | |
162 | %if %{without system_mediastreamer} | |
19a84d2e | 163 | Requires: libgsm-devel >= 1.0.10 |
cc6363c3 | 164 | %endif |
9f074e4f PG |
165 | |
166 | %description devel | |
167 | Development files for the Linphone Internet Phone. | |
168 | ||
6282cb7a JR |
169 | %description devel -l pl.UTF-8 |
170 | Pliki dla programistów używających telefonu internetowego Linphone. | |
a16661e1 JB |
171 | |
172 | %package static | |
173 | Summary: Linphone static libraries | |
ebe66e09 | 174 | Summary(pl.UTF-8): Statyczne biblioteki Linphone |
a16661e1 | 175 | Group: Development/Libraries |
19a84d2e | 176 | Requires: %{name}-devel = %{version}-%{release} |
a16661e1 JB |
177 | |
178 | %description static | |
179 | Static version of Linphone libraries. | |
180 | ||
6282cb7a | 181 | %description static -l pl.UTF-8 |
a16661e1 | 182 | Statyczne wersje bibliotek Linphone. |
9f074e4f | 183 | |
ead68a0a JK |
184 | %prep |
185 | %setup -q | |
936a5263 JK |
186 | |
187 | find '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,' | |
188 | ||
a35480d1 | 189 | %patch0 -p1 |
936a5263 | 190 | %patch1 -p1 |
1efea340 | 191 | %patch2 -p1 |
ead68a0a JK |
192 | |
193 | %build | |
549900ec | 194 | %{__libtoolize} |
9be3dff8 | 195 | %{__aclocal} -I m4 |
549900ec | 196 | %{__autoconf} |
19a84d2e | 197 | %{__autoheader} |
549900ec | 198 | %{__automake} |
b7485079 | 199 | %if %{without system_ortp} |
bef79f77 JK |
200 | cd oRTP |
201 | %{__libtoolize} | |
202 | %{__aclocal} | |
203 | %{__autoconf} | |
204 | %{__autoheader} | |
205 | %{__automake} | |
206 | cd .. | |
b7485079 JK |
207 | %endif |
208 | %if %{without system_ortp} | |
bef79f77 JK |
209 | cd mediastreamer2 |
210 | %{__libtoolize} | |
211 | %{__aclocal} | |
212 | %{__autoconf} | |
213 | %{__autoheader} | |
214 | %{__automake} | |
215 | cd .. | |
b7485079 | 216 | %endif |
bef79f77 | 217 | |
a16661e1 | 218 | %configure \ |
debf2de6 | 219 | --with-html-dir=%{_gtkdocdir} \ |
debf2de6 | 220 | --enable-alsa \ |
b7485079 | 221 | %{?with_system_mediastreamer:--enable-external-mediastreamer} \ |
cc6363c3 JB |
222 | %{?with_system_ortp:--enable-external-ortp} \ |
223 | --enable-ipv6 \ | |
e315cc5e | 224 | %{?with_ldap:--enable-ldap} \ |
cc6363c3 JB |
225 | --disable-silent-rules \ |
226 | %{?with_openssl:--enable-ssl} \ | |
227 | --enable-static \ | |
228 | --disable-strict | |
1266a22a | 229 | |
cc6363c3 JB |
230 | # although main configure already calls {oRTP,mediastreamer2}/configure, |
231 | # reconfigure them with different dirs | |
1266a22a JK |
232 | %if %{without system_ortp} |
233 | cd oRTP | |
234 | %configure \ | |
235 | --enable-static \ | |
236 | --enable-ipv6 \ | |
237 | --libdir=%{_libdir}/%{name} \ | |
238 | --includedir=%{_libdir}/%{name}/include | |
239 | cd .. | |
240 | %endif | |
241 | %if %{without system_ortp} | |
242 | cd mediastreamer2 | |
243 | %configure \ | |
244 | --enable-static \ | |
245 | --disable-libv4l \ | |
246 | --libdir=%{_libdir}/%{name} \ | |
247 | --includedir=%{_libdir}/%{name}/include | |
248 | cd .. | |
249 | %endif | |
250 | ||
878cd8f3 JK |
251 | %{__make} \ |
252 | GITDESCRIBE=/bin/true \ | |
253 | GIT_TAG=%{version} | |
254 | ||
ead68a0a JK |
255 | |
256 | %install | |
257 | rm -rf $RPM_BUILD_ROOT | |
9be3dff8 | 258 | install -d $RPM_BUILD_ROOT%{_desktopdir} \ |
0d0d51c2 | 259 | $RPM_BUILD_ROOT%{_pixmapsdir} |
ead68a0a | 260 | |
bef79f77 | 261 | %{__make} install \ |
878cd8f3 JK |
262 | GITDESCRIBE=/bin/true \ |
263 | GIT_TAG=%{version} \ | |
7006b178 | 264 | DESTDIR=$RPM_BUILD_ROOT |
0d0d51c2 | 265 | |
869b665c | 266 | install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
ead68a0a | 267 | |
cc6363c3 | 268 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
e315cc5e JB |
269 | %{!?with_system_mediastreamer:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mediastreamer} |
270 | %{!?with_system_ortp:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp} | |
a35480d1 | 271 | |
fe8d4213 JK |
272 | mv $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb} |
273 | ||
9e0d9ef3 | 274 | # the executable is missing, so the manual is useless |
cc6363c3 JB |
275 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/sipomatic.1* |
276 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/cs/man1/sipomatic.1* | |
9e0d9ef3 | 277 | |
936a5263 | 278 | # some tests |
cc6363c3 | 279 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/*_test |
936a5263 | 280 | |
878cd8f3 JK |
281 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
282 | mv $RPM_BUILD_ROOT%{_datadir}/tutorials/%{name} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
283 | ||
ead68a0a JK |
284 | %find_lang %{name} --with-gnome --all-name |
285 | ||
a16661e1 JB |
286 | %clean |
287 | rm -rf $RPM_BUILD_ROOT | |
288 | ||
82f93e48 | 289 | %post |
83834119 | 290 | %{_bindir}/scrollkeeper-update |
fa8b1174 | 291 | |
1266a22a | 292 | %if %{without system_mediastreamer} || %{without system_ortp} |
fa8b1174 | 293 | %post libs |
1266a22a JK |
294 | /sbin/ldconfig %{_libdir}/%{name} |
295 | %else | |
296 | %post libs -p /sbin/ldconfig | |
297 | %endif | |
a1ee0767 | 298 | |
82f93e48 | 299 | %postun |
83834119 | 300 | %{_bindir}/scrollkeeper-update |
fa8b1174 | 301 | |
1266a22a | 302 | %postun libs -p /sbin/ldconfig |
82f93e48 | 303 | |
ead68a0a JK |
304 | %files -f %{name}.lang |
305 | %defattr(644,root,root,755) | |
9f074e4f | 306 | %doc AUTHORS BUGS ChangeLog NEWS README TODO |
9e0d9ef3 JK |
307 | %attr(755,root,root) %{_bindir}/linphone |
308 | %{_desktopdir}/linphone.desktop | |
fa8b1174 JK |
309 | %{_pixmapsdir}/linphone.png |
310 | %{_pixmapsdir}/linphone | |
311 | %{_datadir}/linphone | |
9e0d9ef3 JK |
312 | %{_mandir}/man1/linphone.1* |
313 | %lang(cs) %{_mandir}/cs/man1/linphone.1* | |
314 | ||
315 | %files -n linphonec | |
316 | %defattr(644,root,root,755) | |
317 | %doc AUTHORS BUGS ChangeLog NEWS README TODO | |
318 | %attr(755,root,root) %{_bindir}/linphonec | |
319 | %attr(755,root,root) %{_bindir}/linphonecsh | |
320 | %{_mandir}/man1/linphonec.1* | |
321 | %{_mandir}/man1/linphonecsh.1* | |
322 | %lang(cs) %{_mandir}/cs/man1/linphonec.1* | |
fa8b1174 JK |
323 | |
324 | %files libs | |
325 | %defattr(644,root,root,755) | |
19a84d2e | 326 | %attr(755,root,root) %{_libdir}/liblinphone.so.*.*.* |
878cd8f3 | 327 | %attr(755,root,root) %ghost %{_libdir}/liblinphone.so.6 |
1266a22a JK |
328 | %if %{without system_mediastreamer} || %{without system_ortp} |
329 | %dir %{_libdir}/%{name} | |
330 | %endif | |
b7485079 | 331 | %if %{without system_mediastreamer} |
1266a22a JK |
332 | %attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so.*.*.* |
333 | %attr(755,root,root) %ghost %{_libdir}/%{name}/libmediastreamer.so.? | |
334 | %{_libdir}/%{name}/mediastream | |
b7485079 JK |
335 | %endif |
336 | %if %{without system_ortp} | |
1266a22a JK |
337 | %attr(755,root,root) %{_libdir}/%{name}/libortp.so.*.*.* |
338 | %attr(755,root,root) %ghost %{_libdir}/%{name}/libortp.so.? | |
b7485079 | 339 | %endif |
cc6363c3 | 340 | %{_datadir}/sounds/linphone |
9f074e4f PG |
341 | |
342 | %files devel | |
343 | %defattr(644,root,root,755) | |
936a5263 | 344 | %doc coreapi/help/doc/html |
19a84d2e | 345 | %attr(755,root,root) %{_libdir}/liblinphone.so |
878cd8f3 | 346 | %attr(755,root,root) %{_bindir}/lp-gen-wrappers |
b7485079 JK |
347 | %{_includedir}/linphone |
348 | %{_pkgconfigdir}/linphone.pc | |
1266a22a JK |
349 | %{_libdir}/liblinphone.la |
350 | %if %{without system_mediastreamer} || %{without system_ortp} | |
351 | %dir %{_libdir}/%{name}/include | |
352 | %dir %{_libdir}/%{name}/pkgconfig | |
353 | %endif | |
b7485079 | 354 | %if %{without system_mediastreamer} |
1266a22a JK |
355 | %attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so |
356 | %{_libdir}/%{name}/libmediastreamer.la | |
357 | %{_libdir}/%{name}/include/mediastreamer2 | |
358 | %{_libdir}/%{name}/pkgconfig/mediastreamer.pc | |
b7485079 JK |
359 | %endif |
360 | %if %{without system_ortp} | |
1266a22a JK |
361 | %attr(755,root,root) %{_libdir}/%{name}/libortp.so |
362 | %{_libdir}/%{name}/libortp.la | |
363 | %{_libdir}/%{name}/include/ortp | |
364 | %{_libdir}/%{name}/pkgconfig/ortp.pc | |
b7485079 | 365 | %endif |
878cd8f3 | 366 | %{_examplesdir}/%{name}-%{version} |
a16661e1 JB |
367 | |
368 | %files static | |
369 | %defattr(644,root,root,755) | |
19a84d2e | 370 | %{_libdir}/liblinphone.a |
b7485079 | 371 | %if %{without system_mediastreamer} |
1266a22a | 372 | %{_libdir}/%{name}/libmediastreamer.a |
b7485079 JK |
373 | %endif |
374 | %if %{without system_ortp} | |
1266a22a | 375 | %{_libdir}/%{name}/libortp.a |
b7485079 | 376 | %endif |