]> git.pld-linux.org Git - packages/linphone.git/blame - linphone.spec
- release 7 (by relup.sh)
[packages/linphone.git] / linphone.spec
CommitLineData
19644329 1# TODO:
191471d3
JB
2# - --enable-tunnel (BR: pkgconfig(tunnel) >= 0.6.0)
3# - switch from polarssl to mbedtls (upstream forgot? bctoolbox uses mbedtls)
cc6363c3
JB
4# - fill in dependencies for !system_ortp, !system_mediastreamer
5# - check if all this configure option I've set are really needed
6# - separate libraries that do not require gnome into subpackages for Jingle support in kopete
1266a22a 7# - if system_mediastreamerpackages copies for "libmediastreamer.so.1", "libortp.so.8" libraries
2be3dd84
ER
8# those should be installed to private path and LD_LIBARY_PATH setup with wrappers.
9# without doing so do not stbr it to Th!
10#
11# Conditional build:
e315cc5e 12%bcond_without ldap # LDAP support
cc6363c3 13%bcond_without openssl # SSL support
2d625b78 14%bcond_without static_libs # static libraries
d7a0feb6
JK
15%bcond_without system_ortp # use custom ortp
16%bcond_without system_mediastreamer # use custom mediastreamer
191471d3 17%bcond_without zrtp # ZRTP support
2be3dd84 18
ead68a0a 19Summary: Linphone Internet Phone
ebe66e09 20Summary(pl.UTF-8): Linphone - telefon internetowy
ead68a0a 21Name: linphone
a68f4690 22Version: 3.12.0
6fc10f4a 23Release: 7
cc6363c3 24License: GPL v2+
ead68a0a 25Group: Applications/Communications
2d625b78 26Source0: http://linphone.org/releases/sources/linphone/%{name}-%{version}.tar.gz
a68f4690 27# Source0-md5: 8292dbaa0a5d0a448dcbbee125e947e4
f9c7e14f 28Patch0: %{name}-sh.patch
a68f4690 29Patch1: build.patch
94b9c09c
JB
30Patch2: %{name}-cxx-autotools.patch
31Patch3: %{name}-no-rebuild.patch
ead68a0a 32URL: http://www.linphone.org/
cc6363c3 33BuildRequires: autoconf >= 2.50
e315cc5e 34BuildRequires: automake >= 1:1.9
191471d3
JB
35BuildRequires: bctoolbox-devel >= 0.0.3
36BuildRequires: belcard-devel
a68f4690 37BuildRequires: belle-sip-devel >= 1.5.0
191471d3 38%{?with_zrtp:BuildRequires: bzrtp-devel >= 1.0.0}
e315cc5e 39%{?with_ldap:BuildRequires: cyrus-sasl-devel >= 2}
cc6363c3 40BuildRequires: doxygen
efd90257 41BuildRequires: gettext-tools
2d625b78 42BuildRequires: glib2-devel >= 1:2.26.0
cc6363c3
JB
43BuildRequires: gtk+2-devel >= 2:2.22.0
44BuildRequires: intltool >= 0.40
cc6363c3 45BuildRequires: libnotify-devel >= 0.7.0
cc6363c3
JB
46BuildRequires: libstdc++-devel
47BuildRequires: libtool >= 2:2
cc6363c3 48BuildRequires: libupnp-devel < 1.7
83834119 49BuildRequires: libupnp-devel >= 1.6
cc6363c3 50BuildRequires: libxml2-devel >= 2.0
6b6e4353 51%{?with_system_mediastreamer:BuildRequires: mediastreamer-devel >= 2.12.1}
65c3ac70 52BuildRequires: ncurses-devel
e315cc5e 53%{?with_ldap:BuildRequires: openldap-devel}
cc6363c3 54%{?with_openssl:BuildRequires: openssl-devel >= 0.9.8}
2d625b78 55%{?with_system_ortp:BuildRequires: ortp-devel >= 0.24.0}
b9093986 56BuildRequires: pkgconfig
f9c7e14f 57BuildRequires: polarssl-devel >= 1.3
94b9c09c
JB
58# to generate C++ wrappers
59BuildRequires: python-pystache
65c3ac70 60BuildRequires: readline-devel
7006b178 61BuildRequires: rpmbuild(macros) >= 1.98
6bdfb372 62BuildRequires: speex-devel >= 1:1.1.6
cc6363c3 63BuildRequires: sqlite3-devel >= 3.7.0
cc6363c3
JB
64BuildRequires: udev-devel
65BuildRequires: xorg-lib-libX11-devel
65c3ac70 66BuildRequires: xorg-lib-libXv-devel
2d625b78 67BuildRequires: zlib-devel >= 1.2.3
cc6363c3
JB
68%if %{without system_mediastreamer}
69BuildRequires: libgsm-devel >= 1.0.10
70BuildRequires: pulseaudio-devel
80e80085 71BuildRequires: speexdsp-devel >= 1.2-beta3
cc6363c3 72%endif
fa8b1174 73Requires: %{name}-libs = %{version}-%{release}
cc6363c3 74Requires: libnotify >= 0.7.0
ead68a0a
JK
75BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
1266a22a 77%if %{without system_ortp}
560e37c2 78%define _noautoreq_1 libortp\.so.*
1266a22a
JK
79%endif
80%if %{without system_mediastreamer}
560e37c2 81%define _noautoreq_2 libmediastreamer\.so.*
1266a22a
JK
82%endif
83
560e37c2
ER
84%define _noautoreq %{?_noautoreq_1} %{?_noautoreq_2}
85%define _noautoprov %{?_noautoreq}
86
ead68a0a 87%description
82f93e48
JK
88Linphone is a web phone: it let you phone to your friends anywhere in
89the whole world, freely, simply by using the internet. The cost of the
90phone call is the cost that you spend connected to the internet.
ead68a0a
JK
91
92Here are the main features of linphone:
0a80c6e3 93- Works with the GNOME Desktop under linux.
94- Works as simply as a cellular phone. Two buttons, no more.
95- Understands the SIP protocol.
96- You just require a soundcard to use linphone.
97- Linphone is free software, released under the General Public
98 Licence.
99- Linphone is documented: there is a complete user manual readable
100 from the application that explains you all you need to know.
ead68a0a 101
6282cb7a
JR
102%description -l pl.UTF-8
103Linphone to telefon internetowy - pozwala dzwonić do znajomych na
104całym świecie bez dodatkowych opłat, używając tylko Internetu.
a1ee0767 105
6282cb7a
JR
106Główne cechy linphone:
107- działanie ze środowiskiem GNOME
108- naśladowanie prostego telefonu komórkowego - tylko dwa przyciski
109- obsługa protokołu SIP
110- wymaga karty dźwiękowej
111- jest wolnodostępnym oprogramowaniem (na licencji GPL)
112- ma dokumentację: pełny podręcznik dostępny z aplikacji.
a1ee0767 113
9e0d9ef3
JK
114%package -n linphonec
115Summary: Linphone Internet Phone console interface
116Summary(pl.UTF-8): Linphone - telefon internetowy, interfejs konsolowy
117Group: Applications/Communications
118Requires: %{name}-libs = %{version}-%{release}
119
120%description -n linphonec
cc6363c3 121Linphonec is the console version of originally GNOME Internet phone
9e0d9ef3
JK
122Linphone.
123
124%description -n linphonec -l pl.UTF-8
cc6363c3
JB
125Linphonec to konsolowa wersja telefonu internetowego Linphone
126pochodzącego z GNOME.
9e0d9ef3 127
fa8b1174
JK
128%package libs
129Summary: Linphone libraries
130Summary(pl.UTF-8): Biblioteki Linphone
131Group: Libraries
132Requires(post,postun): /sbin/ldconfig
191471d3 133Requires: bctoolbox >= 0.0.3
a68f4690 134Requires: belle-sip >= 1.5.0
191471d3 135%{?with_zrtp:Requires: bzrtp >= 1.0.0}
2d625b78
JB
136Requires: glib2 >= 1:2.26.0
137Requires: gtk+2 >= 2:2.22.0
138%{?with_system_mediastreamer:Requires: mediastreamer >= 2.11.0}
139%{?with_system_ortp:Requires: ortp >= 0.24.0}
cc6363c3 140Requires: sqlite3 >= 3.7.0
191471d3 141Requires: zlib >= 1.2.3
fa8b1174
JK
142
143%description libs
144Linphone libraries.
145
146%description libs -l pl.UTF-8
147Biblioteki Linphone.
148
9f074e4f 149%package devel
a16661e1 150Summary: Linphone Internet Phone - header files
ebe66e09 151Summary(pl.UTF-8): Telefon internetowy Linphone - pliki nagłówkowe
37c5bcf1 152Group: Development/Libraries
fa8b1174 153Requires: %{name}-libs = %{version}-%{release}
191471d3 154Requires: bctoolbox-devel >= 0.0.3
a68f4690 155Requires: belle-sip-devel >= 1.5.0
191471d3 156%{?with_zrtp:Requires: bzrtp-devel >= 1.0.0}
2d625b78 157Requires: glib2-devel >= 1:2.26.0
191471d3 158Requires: gtk+2-devel >= 2:2.22.0
cc6363c3 159Requires: libstdc++-devel
cc6363c3 160Requires: libxml2-devel >= 2.0
2d625b78 161%{?with_system_mediastreamer:Requires: mediastreamer-devel >= 2.11.0}
191471d3 162%{?with_ldap:Requires: openldap-devel}
2d625b78 163%{?with_system_ortp:Requires: ortp-devel >= 0.24.0}
cc6363c3 164Requires: sqlite3-devel >= 3.7.0
191471d3 165Requires: zlib-devel >= 1.2.3
cc6363c3 166%if %{without system_mediastreamer}
19a84d2e 167Requires: libgsm-devel >= 1.0.10
80e80085 168Requires: speexdsp-devel >= 1.2-beta3
cc6363c3 169%endif
9f074e4f
PG
170
171%description devel
172Development files for the Linphone Internet Phone.
173
6282cb7a
JR
174%description devel -l pl.UTF-8
175Pliki dla programistów używających telefonu internetowego Linphone.
a16661e1
JB
176
177%package static
178Summary: Linphone static libraries
ebe66e09 179Summary(pl.UTF-8): Statyczne biblioteki Linphone
a16661e1 180Group: Development/Libraries
19a84d2e 181Requires: %{name}-devel = %{version}-%{release}
a16661e1
JB
182
183%description static
184Static version of Linphone libraries.
185
6282cb7a 186%description static -l pl.UTF-8
a16661e1 187Statyczne wersje bibliotek Linphone.
9f074e4f 188
94b9c09c
JB
189%package apidocs
190Summary: API documentation for Linphone library
191Summary(pl.UTF-8): Dokumentacja API biblioteki Linphone
192Group: Documentation
193
194%description apidocs
195API documentation for Linphone library.
196
197%description apidocs -l pl.UTF-8
198Dokumentacja API biblioteki Linphone.
199
200%package c++
201Summary: C++ wrapper for Linphone library
202Summary(pl.UTF-8): Interfejs C++ do biblioteki Linphone
203Group: Libraries
204Requires: %{name}-libs = %{version}-%{release}
205
206%description c++
207C++ wrapper for Linphone library.
208
209%description c++ -l pl.UTF-8
210Interfejs C++ do biblioteki Linphone.
211
212%package c++-devel
213Summary: Headers for liblinphone++ library
214Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liblinphone++
215Group: Development/Libraries
216Requires: %{name}-c++ = %{version}-%{release}
217Requires: %{name}-devel = %{version}-%{release}
218
219%description c++-devel
220Headers for liblinphone++ library.
221
222%description c++-devel -l pl.UTF-8
223Pliki nagłówkowe biblioteki liblinphone++.
224
225%package c++-static
226Summary: Static liblinphone++ library
227Summary(pl.UTF-8): Statyczna biblioteka liblinphone++
228Group: Development/Libraries
229Requires: %{name}-c++-devel = %{version}-%{release}
230
231%description c++-static
232Static liblinphone++ library.
233
234%description c++-static -l pl.UTF-8
235Statyczna biblioteka liblinphone++.
236
ead68a0a
JK
237%prep
238%setup -q
a35480d1 239%patch0 -p1
a68f4690 240%patch1 -p1
94b9c09c
JB
241%patch2 -p1
242%patch3 -p1
a68f4690
AM
243
244[ ! -e gitversion.h ] && echo '#define LIBLINPHONE_GIT_VERSION "%{version}"' > coreapi/gitversion.h
ead68a0a
JK
245
246%build
a68f4690
AM
247%{__gettextize}
248%{__intltoolize}
549900ec 249%{__libtoolize}
9be3dff8 250%{__aclocal} -I m4
549900ec 251%{__autoconf}
19a84d2e 252%{__autoheader}
549900ec 253%{__automake}
b7485079 254%if %{without system_ortp}
bef79f77
JK
255cd oRTP
256%{__libtoolize}
257%{__aclocal}
258%{__autoconf}
259%{__autoheader}
260%{__automake}
261cd ..
b7485079
JK
262%endif
263%if %{without system_ortp}
bef79f77
JK
264cd mediastreamer2
265%{__libtoolize}
266%{__aclocal}
267%{__autoconf}
268%{__autoheader}
269%{__automake}
270cd ..
b7485079 271%endif
bef79f77 272
a16661e1 273%configure \
debf2de6 274 --with-html-dir=%{_gtkdocdir} \
b7485079 275 %{?with_system_mediastreamer:--enable-external-mediastreamer} \
cc6363c3
JB
276 %{?with_system_ortp:--enable-external-ortp} \
277 --enable-ipv6 \
e315cc5e 278 %{?with_ldap:--enable-ldap} \
cc6363c3
JB
279 --disable-silent-rules \
280 %{?with_openssl:--enable-ssl} \
2d625b78 281 %{?with_static_libs:--enable-static} \
191471d3
JB
282 --disable-strict \
283 %{!?with_zrtp:--disable-zrtp}
1266a22a 284
cc6363c3
JB
285# although main configure already calls {oRTP,mediastreamer2}/configure,
286# reconfigure them with different dirs
1266a22a
JK
287%if %{without system_ortp}
288cd oRTP
289%configure \
2d625b78 290 --includedir=%{_libdir}/%{name}/include \
1266a22a 291 --libdir=%{_libdir}/%{name} \
2d625b78
JB
292 --enable-ipv6 \
293 %{?with_static_libs:--enable-static}
1266a22a
JK
294cd ..
295%endif
296%if %{without system_ortp}
297cd mediastreamer2
298%configure \
2d625b78 299 --includedir=%{_libdir}/%{name}/include \
1266a22a 300 --libdir=%{_libdir}/%{name} \
2d625b78
JB
301 --disable-libv4l \
302 %{?with_static_libs:--enable-static}
1266a22a
JK
303cd ..
304%endif
305
878cd8f3
JK
306%{__make} \
307 GITDESCRIBE=/bin/true \
308 GIT_TAG=%{version}
309
94b9c09c
JB
310# disable installation of HTML docs (will be packaged as %doc)
311%{__tar} --delete -f coreapi/help/doc/doxygen/html/html.tar --wildcards '*'
312%{__tar} --delete -f coreapi/help/doc/doxygen/xml/xml.tar --wildcards '*'
313
ead68a0a
JK
314%install
315rm -rf $RPM_BUILD_ROOT
9be3dff8 316install -d $RPM_BUILD_ROOT%{_desktopdir} \
0d0d51c2 317 $RPM_BUILD_ROOT%{_pixmapsdir}
ead68a0a 318
bef79f77 319%{__make} install \
878cd8f3
JK
320 GITDESCRIBE=/bin/true \
321 GIT_TAG=%{version} \
94b9c09c
JB
322 DESTDIR=$RPM_BUILD_ROOT \
323 tuto_DATA=
324
325# obsoleted by pkg-config
326%{__rm} $RPM_BUILD_ROOT%{_libdir}/liblinphone*.la
327%if %{without system_mediastreamer} || %{without system_ortp}
328%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
329%endif
0d0d51c2 330
869b665c 331install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
ead68a0a 332
e315cc5e
JB
333%{!?with_system_mediastreamer:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mediastreamer}
334%{!?with_system_ortp:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp}
a35480d1 335
2d625b78 336%{__mv} $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}
fe8d4213 337
9e0d9ef3 338# the executable is missing, so the manual is useless
cc6363c3
JB
339%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/sipomatic.1*
340%{__rm} $RPM_BUILD_ROOT%{_mandir}/cs/man1/sipomatic.1*
9e0d9ef3 341
936a5263 342# some tests
cc6363c3 343%{__rm} $RPM_BUILD_ROOT%{_bindir}/*_test
191471d3 344%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/liblinphone_tester
936a5263 345
ead68a0a
JK
346%find_lang %{name} --with-gnome --all-name
347
a16661e1
JB
348%clean
349rm -rf $RPM_BUILD_ROOT
350
1266a22a 351%if %{without system_mediastreamer} || %{without system_ortp}
94b9c09c 352%post libs
1266a22a
JK
353/sbin/ldconfig %{_libdir}/%{name}
354%else
94b9c09c 355%post libs -p /sbin/ldconfig
1266a22a 356%endif
a1ee0767 357
94b9c09c
JB
358%postun libs -p /sbin/ldconfig
359
360%post c++ -p /sbin/ldconfig
361%postun c++ -p /sbin/ldconfig
82f93e48 362
ead68a0a
JK
363%files -f %{name}.lang
364%defattr(644,root,root,755)
a68f4690
AM
365%doc AUTHORS BUGS ChangeLog NEWS README.md TODO
366%attr(755,root,root) %{_bindir}/liblinphone_tester
9e0d9ef3 367%attr(755,root,root) %{_bindir}/linphone
a68f4690
AM
368%attr(755,root,root) %{_bindir}/linphone-daemon
369%attr(755,root,root) %{_bindir}/linphone-daemon-pipetest
6905dbb1 370%attr(755,root,root) %{_bindir}/lp-autoanswer
a68f4690
AM
371%attr(755,root,root) %{_bindir}/lp-sendmsg
372%attr(755,root,root) %{_bindir}/lp-test-ecc
6905dbb1 373%{_desktopdir}/audio-assistant.desktop
9e0d9ef3 374%{_desktopdir}/linphone.desktop
fa8b1174
JK
375%{_pixmapsdir}/linphone.png
376%{_pixmapsdir}/linphone
f9c7e14f 377%{_iconsdir}/hicolor/48x48/actions/linphone-*.png
2d625b78 378%{_iconsdir}/hicolor/48x48/apps/linphone.png
f9c7e14f
JB
379%{_iconsdir}/hicolor/48x48/status/linphone-*.png
380%{_iconsdir}/hicolor/scalable/actions/linphone-*.svg
381%{_iconsdir}/hicolor/scalable/status/linphone-*.svg
2d625b78 382%{_datadir}/appdata/linphone.appdata.xml
fa8b1174 383%{_datadir}/linphone
9e0d9ef3
JK
384%{_mandir}/man1/linphone.1*
385%lang(cs) %{_mandir}/cs/man1/linphone.1*
386
387%files -n linphonec
388%defattr(644,root,root,755)
a68f4690 389%doc AUTHORS BUGS ChangeLog NEWS README.md TODO
9e0d9ef3
JK
390%attr(755,root,root) %{_bindir}/linphonec
391%attr(755,root,root) %{_bindir}/linphonecsh
392%{_mandir}/man1/linphonec.1*
393%{_mandir}/man1/linphonecsh.1*
394%lang(cs) %{_mandir}/cs/man1/linphonec.1*
fa8b1174
JK
395
396%files libs
397%defattr(644,root,root,755)
19a84d2e 398%attr(755,root,root) %{_libdir}/liblinphone.so.*.*.*
a68f4690 399%attr(755,root,root) %ghost %{_libdir}/liblinphone.so.9
6905dbb1
JK
400%attr(755,root,root) %{_libdir}/liblinphonetester.so.*.*.*
401%attr(755,root,root) %ghost %{_libdir}/liblinphonetester.so.0
1266a22a
JK
402%if %{without system_mediastreamer} || %{without system_ortp}
403%dir %{_libdir}/%{name}
404%endif
b7485079 405%if %{without system_mediastreamer}
1266a22a
JK
406%attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so.*.*.*
407%attr(755,root,root) %ghost %{_libdir}/%{name}/libmediastreamer.so.?
408%{_libdir}/%{name}/mediastream
b7485079
JK
409%endif
410%if %{without system_ortp}
1266a22a
JK
411%attr(755,root,root) %{_libdir}/%{name}/libortp.so.*.*.*
412%attr(755,root,root) %ghost %{_libdir}/%{name}/libortp.so.?
b7485079 413%endif
cc6363c3 414%{_datadir}/sounds/linphone
9f074e4f
PG
415
416%files devel
417%defattr(644,root,root,755)
19a84d2e 418%attr(755,root,root) %{_libdir}/liblinphone.so
6905dbb1 419%attr(755,root,root) %{_libdir}/liblinphonetester.so
b7485079
JK
420%{_includedir}/linphone
421%{_pkgconfigdir}/linphone.pc
1266a22a
JK
422%if %{without system_mediastreamer} || %{without system_ortp}
423%dir %{_libdir}/%{name}/include
424%dir %{_libdir}/%{name}/pkgconfig
425%endif
b7485079 426%if %{without system_mediastreamer}
1266a22a
JK
427%attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so
428%{_libdir}/%{name}/libmediastreamer.la
429%{_libdir}/%{name}/include/mediastreamer2
430%{_libdir}/%{name}/pkgconfig/mediastreamer.pc
b7485079
JK
431%endif
432%if %{without system_ortp}
1266a22a
JK
433%attr(755,root,root) %{_libdir}/%{name}/libortp.so
434%{_libdir}/%{name}/libortp.la
435%{_libdir}/%{name}/include/ortp
436%{_libdir}/%{name}/pkgconfig/ortp.pc
b7485079 437%endif
a16661e1 438
2d625b78 439%if %{with static_libs}
a16661e1
JB
440%files static
441%defattr(644,root,root,755)
19a84d2e 442%{_libdir}/liblinphone.a
6905dbb1 443%{_libdir}/liblinphonetester.a
b7485079 444%if %{without system_mediastreamer}
1266a22a 445%{_libdir}/%{name}/libmediastreamer.a
b7485079
JK
446%endif
447%if %{without system_ortp}
1266a22a 448%{_libdir}/%{name}/libortp.a
b7485079 449%endif
2d625b78 450%endif
94b9c09c
JB
451
452%files apidocs
453%defattr(644,root,root,755)
454%doc coreapi/help/doc/doxygen/html/{*.css,*.html,*.js,*.png}
455
456%files c++
457%defattr(644,root,root,755)
458%attr(755,root,root) %{_libdir}/liblinphone++.so.*.*.*
459%attr(755,root,root) %ghost %{_libdir}/liblinphone++.so.9
460
461%files c++-devel
462%defattr(644,root,root,755)
463%attr(755,root,root) %{_libdir}/liblinphone++.so
464%{_includedir}/linphone++
465%{_pkgconfigdir}/linphone++.pc
466
467%if %{with static_libs}
468%files c++-static
469%defattr(644,root,root,755)
470%{_libdir}/liblinphone++.a
471%endif
This page took 0.749351 seconds and 4 git commands to generate.