]>
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 |
2d625b78 | 13 | %bcond_without static_libs # static libraries |
d7a0feb6 JK |
14 | %bcond_without system_ortp # use custom ortp |
15 | %bcond_without system_mediastreamer # use custom mediastreamer | |
2be3dd84 | 16 | |
ead68a0a | 17 | Summary: Linphone Internet Phone |
ebe66e09 | 18 | Summary(pl.UTF-8): Linphone - telefon internetowy |
ead68a0a | 19 | Name: linphone |
59af3d78 | 20 | Version: 3.9.1 |
3b86c3e8 | 21 | Release: 3 |
cc6363c3 | 22 | License: GPL v2+ |
ead68a0a | 23 | Group: Applications/Communications |
2d625b78 | 24 | Source0: http://linphone.org/releases/sources/linphone/%{name}-%{version}.tar.gz |
59af3d78 | 25 | # Source0-md5: c1c3a63b7ee963360e0e89cf5e5ff406 |
f9c7e14f | 26 | Patch0: %{name}-sh.patch |
ead68a0a | 27 | URL: http://www.linphone.org/ |
19a84d2e | 28 | BuildRequires: alsa-lib-devel >= 0.9.0 |
cc6363c3 | 29 | BuildRequires: autoconf >= 2.50 |
e315cc5e | 30 | BuildRequires: automake >= 1:1.9 |
2d625b78 | 31 | BuildRequires: belle-sip-devel >= 1.4.0 |
e315cc5e | 32 | %{?with_ldap:BuildRequires: cyrus-sasl-devel >= 2} |
cc6363c3 | 33 | BuildRequires: doxygen |
19a431e4 | 34 | BuildRequires: ffmpeg-devel >= 0.4.5 |
efd90257 | 35 | BuildRequires: gettext-tools |
2d625b78 | 36 | BuildRequires: glib2-devel >= 1:2.26.0 |
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: libstdc++-devel |
42 | BuildRequires: libtool >= 2:2 | |
cc6363c3 | 43 | BuildRequires: libupnp-devel < 1.7 |
83834119 | 44 | BuildRequires: libupnp-devel >= 1.6 |
65c3ac70 | 45 | BuildRequires: libv4l-devel |
cc6363c3 | 46 | BuildRequires: libxml2-devel >= 2.0 |
6b6e4353 | 47 | %{?with_system_mediastreamer:BuildRequires: mediastreamer-devel >= 2.12.1} |
65c3ac70 | 48 | BuildRequires: ncurses-devel |
e315cc5e | 49 | %{?with_ldap:BuildRequires: openldap-devel} |
cc6363c3 | 50 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.8} |
2d625b78 | 51 | %{?with_system_ortp:BuildRequires: ortp-devel >= 0.24.0} |
b9093986 | 52 | BuildRequires: pkgconfig |
f9c7e14f | 53 | BuildRequires: polarssl-devel >= 1.3 |
65c3ac70 | 54 | BuildRequires: readline-devel |
7006b178 | 55 | BuildRequires: rpmbuild(macros) >= 1.98 |
6bdfb372 | 56 | BuildRequires: speex-devel >= 1:1.1.6 |
cc6363c3 | 57 | BuildRequires: sqlite3-devel >= 3.7.0 |
e315cc5e | 58 | %{!?with_system_ortp:BuildRequires: srtp-devel} |
cc6363c3 JB |
59 | BuildRequires: udev-devel |
60 | BuildRequires: xorg-lib-libX11-devel | |
65c3ac70 | 61 | BuildRequires: xorg-lib-libXv-devel |
2d625b78 | 62 | BuildRequires: zlib-devel >= 1.2.3 |
cc6363c3 JB |
63 | %if %{without system_mediastreamer} |
64 | BuildRequires: libgsm-devel >= 1.0.10 | |
65 | BuildRequires: pulseaudio-devel | |
80e80085 | 66 | BuildRequires: speexdsp-devel >= 1.2-beta3 |
cc6363c3 | 67 | %endif |
fa8b1174 | 68 | Requires: %{name}-libs = %{version}-%{release} |
cc6363c3 | 69 | Requires: libnotify >= 0.7.0 |
ead68a0a JK |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
1266a22a | 72 | %if %{without system_ortp} |
560e37c2 | 73 | %define _noautoreq_1 libortp\.so.* |
1266a22a JK |
74 | %endif |
75 | %if %{without system_mediastreamer} | |
560e37c2 | 76 | %define _noautoreq_2 libmediastreamer\.so.* |
1266a22a JK |
77 | %endif |
78 | ||
560e37c2 ER |
79 | %define _noautoreq %{?_noautoreq_1} %{?_noautoreq_2} |
80 | %define _noautoprov %{?_noautoreq} | |
81 | ||
ead68a0a | 82 | %description |
82f93e48 JK |
83 | Linphone is a web phone: it let you phone to your friends anywhere in |
84 | the whole world, freely, simply by using the internet. The cost of the | |
85 | phone call is the cost that you spend connected to the internet. | |
ead68a0a JK |
86 | |
87 | Here are the main features of linphone: | |
0a80c6e3 | 88 | - Works with the GNOME Desktop under linux. |
89 | - Works as simply as a cellular phone. Two buttons, no more. | |
90 | - Understands the SIP protocol. | |
91 | - You just require a soundcard to use linphone. | |
92 | - Linphone is free software, released under the General Public | |
93 | Licence. | |
94 | - Linphone is documented: there is a complete user manual readable | |
95 | from the application that explains you all you need to know. | |
ead68a0a | 96 | |
6282cb7a JR |
97 | %description -l pl.UTF-8 |
98 | Linphone to telefon internetowy - pozwala dzwonić do znajomych na | |
99 | całym świecie bez dodatkowych opłat, używając tylko Internetu. | |
a1ee0767 | 100 | |
6282cb7a JR |
101 | Główne cechy linphone: |
102 | - działanie ze środowiskiem GNOME | |
103 | - naśladowanie prostego telefonu komórkowego - tylko dwa przyciski | |
104 | - obsługa protokołu SIP | |
105 | - wymaga karty dźwiękowej | |
106 | - jest wolnodostępnym oprogramowaniem (na licencji GPL) | |
107 | - ma dokumentację: pełny podręcznik dostępny z aplikacji. | |
a1ee0767 | 108 | |
9e0d9ef3 JK |
109 | %package -n linphonec |
110 | Summary: Linphone Internet Phone console interface | |
111 | Summary(pl.UTF-8): Linphone - telefon internetowy, interfejs konsolowy | |
112 | Group: Applications/Communications | |
113 | Requires: %{name}-libs = %{version}-%{release} | |
114 | ||
115 | %description -n linphonec | |
cc6363c3 | 116 | Linphonec is the console version of originally GNOME Internet phone |
9e0d9ef3 JK |
117 | Linphone. |
118 | ||
119 | %description -n linphonec -l pl.UTF-8 | |
cc6363c3 JB |
120 | Linphonec to konsolowa wersja telefonu internetowego Linphone |
121 | pochodzącego z GNOME. | |
9e0d9ef3 | 122 | |
fa8b1174 JK |
123 | %package libs |
124 | Summary: Linphone libraries | |
125 | Summary(pl.UTF-8): Biblioteki Linphone | |
126 | Group: Libraries | |
127 | Requires(post,postun): /sbin/ldconfig | |
2d625b78 JB |
128 | Requires: belle-sip >= 1.4.0 |
129 | Requires: glib2 >= 1:2.26.0 | |
130 | Requires: gtk+2 >= 2:2.22.0 | |
131 | %{?with_system_mediastreamer:Requires: mediastreamer >= 2.11.0} | |
132 | %{?with_system_ortp:Requires: ortp >= 0.24.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 |
2d625b78 JB |
147 | Requires: belle-sip-devel >= 1.4.0 |
148 | Requires: glib2-devel >= 1:2.26.0 | |
149 | Requires: gtk+2 >= 2:2.22.0 | |
cc6363c3 | 150 | Requires: libstdc++-devel |
cc6363c3 | 151 | Requires: libupnp-devel < 1.7 |
83834119 | 152 | Requires: libupnp-devel >= 1.6 |
cc6363c3 | 153 | Requires: libxml2-devel >= 2.0 |
2d625b78 JB |
154 | %{?with_system_mediastreamer:Requires: mediastreamer-devel >= 2.11.0} |
155 | %{?with_system_ortp:Requires: ortp-devel >= 0.24.0} | |
6bdfb372 | 156 | Requires: speex-devel >= 1:1.1.6 |
cc6363c3 JB |
157 | Requires: sqlite3-devel >= 3.7.0 |
158 | Requires: srtp-devel | |
159 | Requires: xorg-lib-libX11-devel | |
160 | Requires: xorg-lib-libXv-devel | |
161 | %if %{without system_mediastreamer} | |
19a84d2e | 162 | Requires: libgsm-devel >= 1.0.10 |
80e80085 | 163 | Requires: speexdsp-devel >= 1.2-beta3 |
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 | |
a35480d1 | 186 | %patch0 -p1 |
ead68a0a JK |
187 | |
188 | %build | |
549900ec | 189 | %{__libtoolize} |
9be3dff8 | 190 | %{__aclocal} -I m4 |
549900ec | 191 | %{__autoconf} |
19a84d2e | 192 | %{__autoheader} |
549900ec | 193 | %{__automake} |
b7485079 | 194 | %if %{without system_ortp} |
bef79f77 JK |
195 | cd oRTP |
196 | %{__libtoolize} | |
197 | %{__aclocal} | |
198 | %{__autoconf} | |
199 | %{__autoheader} | |
200 | %{__automake} | |
201 | cd .. | |
b7485079 JK |
202 | %endif |
203 | %if %{without system_ortp} | |
bef79f77 JK |
204 | cd mediastreamer2 |
205 | %{__libtoolize} | |
206 | %{__aclocal} | |
207 | %{__autoconf} | |
208 | %{__autoheader} | |
209 | %{__automake} | |
210 | cd .. | |
b7485079 | 211 | %endif |
bef79f77 | 212 | |
a16661e1 | 213 | %configure \ |
debf2de6 | 214 | --with-html-dir=%{_gtkdocdir} \ |
debf2de6 | 215 | --enable-alsa \ |
b7485079 | 216 | %{?with_system_mediastreamer:--enable-external-mediastreamer} \ |
cc6363c3 JB |
217 | %{?with_system_ortp:--enable-external-ortp} \ |
218 | --enable-ipv6 \ | |
e315cc5e | 219 | %{?with_ldap:--enable-ldap} \ |
cc6363c3 JB |
220 | --disable-silent-rules \ |
221 | %{?with_openssl:--enable-ssl} \ | |
2d625b78 | 222 | %{?with_static_libs:--enable-static} \ |
cc6363c3 | 223 | --disable-strict |
1266a22a | 224 | |
cc6363c3 JB |
225 | # although main configure already calls {oRTP,mediastreamer2}/configure, |
226 | # reconfigure them with different dirs | |
1266a22a JK |
227 | %if %{without system_ortp} |
228 | cd oRTP | |
229 | %configure \ | |
2d625b78 | 230 | --includedir=%{_libdir}/%{name}/include \ |
1266a22a | 231 | --libdir=%{_libdir}/%{name} \ |
2d625b78 JB |
232 | --enable-ipv6 \ |
233 | %{?with_static_libs:--enable-static} | |
1266a22a JK |
234 | cd .. |
235 | %endif | |
236 | %if %{without system_ortp} | |
237 | cd mediastreamer2 | |
238 | %configure \ | |
2d625b78 | 239 | --includedir=%{_libdir}/%{name}/include \ |
1266a22a | 240 | --libdir=%{_libdir}/%{name} \ |
2d625b78 JB |
241 | --disable-libv4l \ |
242 | %{?with_static_libs:--enable-static} | |
1266a22a JK |
243 | cd .. |
244 | %endif | |
245 | ||
878cd8f3 JK |
246 | %{__make} \ |
247 | GITDESCRIBE=/bin/true \ | |
248 | GIT_TAG=%{version} | |
249 | ||
ead68a0a JK |
250 | %install |
251 | rm -rf $RPM_BUILD_ROOT | |
9be3dff8 | 252 | install -d $RPM_BUILD_ROOT%{_desktopdir} \ |
0d0d51c2 | 253 | $RPM_BUILD_ROOT%{_pixmapsdir} |
ead68a0a | 254 | |
bef79f77 | 255 | %{__make} install \ |
878cd8f3 JK |
256 | GITDESCRIBE=/bin/true \ |
257 | GIT_TAG=%{version} \ | |
7006b178 | 258 | DESTDIR=$RPM_BUILD_ROOT |
0d0d51c2 | 259 | |
869b665c | 260 | install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
ead68a0a | 261 | |
cc6363c3 | 262 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
e315cc5e JB |
263 | %{!?with_system_mediastreamer:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mediastreamer} |
264 | %{!?with_system_ortp:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp} | |
a35480d1 | 265 | |
2d625b78 | 266 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb} |
fe8d4213 | 267 | |
9e0d9ef3 | 268 | # the executable is missing, so the manual is useless |
cc6363c3 JB |
269 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/sipomatic.1* |
270 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/cs/man1/sipomatic.1* | |
9e0d9ef3 | 271 | |
936a5263 | 272 | # some tests |
cc6363c3 | 273 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/*_test |
936a5263 | 274 | |
878cd8f3 | 275 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
2d625b78 | 276 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/tutorials/%{name} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
878cd8f3 | 277 | |
ead68a0a JK |
278 | %find_lang %{name} --with-gnome --all-name |
279 | ||
a16661e1 JB |
280 | %clean |
281 | rm -rf $RPM_BUILD_ROOT | |
282 | ||
1266a22a | 283 | %if %{without system_mediastreamer} || %{without system_ortp} |
fa8b1174 | 284 | %post libs |
1266a22a JK |
285 | /sbin/ldconfig %{_libdir}/%{name} |
286 | %else | |
287 | %post libs -p /sbin/ldconfig | |
288 | %endif | |
a1ee0767 | 289 | |
1266a22a | 290 | %postun libs -p /sbin/ldconfig |
82f93e48 | 291 | |
ead68a0a JK |
292 | %files -f %{name}.lang |
293 | %defattr(644,root,root,755) | |
9f074e4f | 294 | %doc AUTHORS BUGS ChangeLog NEWS README TODO |
9e0d9ef3 | 295 | %attr(755,root,root) %{_bindir}/linphone |
6905dbb1 JK |
296 | %attr(755,root,root) %{_bindir}/lp-autoanswer |
297 | %{_desktopdir}/audio-assistant.desktop | |
9e0d9ef3 | 298 | %{_desktopdir}/linphone.desktop |
fa8b1174 JK |
299 | %{_pixmapsdir}/linphone.png |
300 | %{_pixmapsdir}/linphone | |
f9c7e14f | 301 | %{_iconsdir}/hicolor/48x48/actions/linphone-*.png |
2d625b78 | 302 | %{_iconsdir}/hicolor/48x48/apps/linphone.png |
f9c7e14f JB |
303 | %{_iconsdir}/hicolor/48x48/status/linphone-*.png |
304 | %{_iconsdir}/hicolor/scalable/actions/linphone-*.svg | |
305 | %{_iconsdir}/hicolor/scalable/status/linphone-*.svg | |
2d625b78 | 306 | %{_datadir}/appdata/linphone.appdata.xml |
fa8b1174 | 307 | %{_datadir}/linphone |
9e0d9ef3 JK |
308 | %{_mandir}/man1/linphone.1* |
309 | %lang(cs) %{_mandir}/cs/man1/linphone.1* | |
310 | ||
311 | %files -n linphonec | |
312 | %defattr(644,root,root,755) | |
313 | %doc AUTHORS BUGS ChangeLog NEWS README TODO | |
314 | %attr(755,root,root) %{_bindir}/linphonec | |
315 | %attr(755,root,root) %{_bindir}/linphonecsh | |
316 | %{_mandir}/man1/linphonec.1* | |
317 | %{_mandir}/man1/linphonecsh.1* | |
318 | %lang(cs) %{_mandir}/cs/man1/linphonec.1* | |
fa8b1174 JK |
319 | |
320 | %files libs | |
321 | %defattr(644,root,root,755) | |
19a84d2e | 322 | %attr(755,root,root) %{_libdir}/liblinphone.so.*.*.* |
f9c7e14f | 323 | %attr(755,root,root) %ghost %{_libdir}/liblinphone.so.8 |
6905dbb1 JK |
324 | %attr(755,root,root) %{_libdir}/liblinphonetester.so.*.*.* |
325 | %attr(755,root,root) %ghost %{_libdir}/liblinphonetester.so.0 | |
1266a22a JK |
326 | %if %{without system_mediastreamer} || %{without system_ortp} |
327 | %dir %{_libdir}/%{name} | |
328 | %endif | |
b7485079 | 329 | %if %{without system_mediastreamer} |
1266a22a JK |
330 | %attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so.*.*.* |
331 | %attr(755,root,root) %ghost %{_libdir}/%{name}/libmediastreamer.so.? | |
332 | %{_libdir}/%{name}/mediastream | |
b7485079 JK |
333 | %endif |
334 | %if %{without system_ortp} | |
1266a22a JK |
335 | %attr(755,root,root) %{_libdir}/%{name}/libortp.so.*.*.* |
336 | %attr(755,root,root) %ghost %{_libdir}/%{name}/libortp.so.? | |
b7485079 | 337 | %endif |
cc6363c3 | 338 | %{_datadir}/sounds/linphone |
9f074e4f PG |
339 | |
340 | %files devel | |
341 | %defattr(644,root,root,755) | |
936a5263 | 342 | %doc coreapi/help/doc/html |
19a84d2e | 343 | %attr(755,root,root) %{_libdir}/liblinphone.so |
6905dbb1 | 344 | %attr(755,root,root) %{_libdir}/liblinphonetester.so |
878cd8f3 | 345 | %attr(755,root,root) %{_bindir}/lp-gen-wrappers |
b7485079 JK |
346 | %{_includedir}/linphone |
347 | %{_pkgconfigdir}/linphone.pc | |
1266a22a | 348 | %{_libdir}/liblinphone.la |
6905dbb1 | 349 | %{_libdir}/liblinphonetester.la |
1266a22a JK |
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 | 367 | |
2d625b78 | 368 | %if %{with static_libs} |
a16661e1 JB |
369 | %files static |
370 | %defattr(644,root,root,755) | |
19a84d2e | 371 | %{_libdir}/liblinphone.a |
6905dbb1 | 372 | %{_libdir}/liblinphonetester.a |
b7485079 | 373 | %if %{without system_mediastreamer} |
1266a22a | 374 | %{_libdir}/%{name}/libmediastreamer.a |
b7485079 JK |
375 | %endif |
376 | %if %{without system_ortp} | |
1266a22a | 377 | %{_libdir}/%{name}/libortp.a |
b7485079 | 378 | %endif |
2d625b78 | 379 | %endif |