2 # - check if all this configure option I've set are really needed
3 # - separate libraries that do not require gnome into subpackages for Jingle support in kopete
4 # - if system_mediastreamerpackages copies for "libmediastreamer.so.1", "libortp.so.8" libraries
5 # those should be installed to private path and LD_LIBARY_PATH setup with wrappers.
6 # without doing so do not stbr it to Th!
9 %bcond_without system_ortp # use custom ortp
10 %bcond_without system_mediastreamer # use custom mediastreamer
12 Summary: Linphone Internet Phone
13 Summary(pl.UTF-8): Linphone - telefon internetowy
18 Group: Applications/Communications
19 Source0: http://download.savannah.gnu.org/releases/linphone/stable/sources/%{name}-%{version}.tar.gz
20 # Source0-md5: 4be6e940372dba1f6793aef849c1ff0d
21 Patch0: %{name}-imgdir.patch
22 URL: http://www.linphone.org/
23 BuildRequires: alsa-lib-devel >= 0.9.0
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: ffmpeg-devel >= 0.4.5
27 BuildRequires: gettext-devel
28 BuildRequires: gnome-common >= 2.8.0
29 BuildRequires: gtk+2-devel
30 BuildRequires: intltool
31 BuildRequires: jack-audio-connection-kit-devel >= 0.15.0
32 BuildRequires: libeXosip2-devel
33 BuildRequires: libgsm-devel >= 1.0.10
34 BuildRequires: libosip2-devel >= 2.2.0
35 BuildRequires: libsamplerate-devel >= 0.0.13
36 BuildRequires: libtool >= 1:1.4.2-9
37 BuildRequires: libv4l-devel
38 %{?with_system_ortp:BuildRequires: ortp-devel}
39 %{?with_system_mediastreamer:BuildRequires: mediastreamer-devel}
40 BuildRequires: ncurses-devel
41 BuildRequires: pkgconfig
42 BuildRequires: pulseaudio-devel
43 BuildRequires: readline-devel
44 BuildRequires: rpmbuild(macros) >= 1.98
45 BuildRequires: scrollkeeper
46 BuildRequires: speex-devel >= 1.0.0
47 BuildRequires: srtp-devel
48 BuildRequires: xorg-lib-libXv-devel
49 Requires(post,postun): /usr/bin/scrollkeeper-update
50 Requires: %{name}-libs = %{version}-%{release}
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 %if %{without system_ortp}
54 %define _noautoreq_1 libortp\.so.*
56 %if %{without system_mediastreamer}
57 %define _noautoreq_2 libmediastreamer\.so.*
60 %define _noautoreq %{?_noautoreq_1} %{?_noautoreq_2}
61 %define _noautoprov %{?_noautoreq}
64 Linphone is a web phone: it let you phone to your friends anywhere in
65 the whole world, freely, simply by using the internet. The cost of the
66 phone call is the cost that you spend connected to the internet.
68 Here are the main features of linphone:
69 - Works with the GNOME Desktop under linux.
70 - Works as simply as a cellular phone. Two buttons, no more.
71 - Understands the SIP protocol.
72 - You just require a soundcard to use linphone.
73 - Linphone is free software, released under the General Public
75 - Linphone is documented: there is a complete user manual readable
76 from the application that explains you all you need to know.
78 %description -l pl.UTF-8
79 Linphone to telefon internetowy - pozwala dzwonić do znajomych na
80 całym świecie bez dodatkowych opłat, używając tylko Internetu.
82 Główne cechy linphone:
83 - działanie ze środowiskiem GNOME
84 - naśladowanie prostego telefonu komórkowego - tylko dwa przyciski
85 - obsługa protokołu SIP
86 - wymaga karty dźwiękowej
87 - jest wolnodostępnym oprogramowaniem (na licencji GPL)
88 - ma dokumentację: pełny podręcznik dostępny z aplikacji.
91 Summary: Linphone Internet Phone console interface
92 Summary(pl.UTF-8): Linphone - telefon internetowy, interfejs konsolowy
93 Group: Applications/Communications
94 Requires: %{name}-libs = %{version}-%{release}
96 %description -n linphonec
97 Linphonec is the console version of originally Gnome internet phone
100 %description -n linphonec -l pl.UTF-8
101 Linphonec to konsolowa wersja GNOME'owego telefonu internetowego Linphone.
104 Summary: Linphone libraries
105 Summary(pl.UTF-8): Biblioteki Linphone
107 Requires(post,postun): /sbin/ldconfig
112 %description libs -l pl.UTF-8
116 Summary: Linphone Internet Phone - header files
117 Summary(pl.UTF-8): Telefon internetowy Linphone - pliki nagłówkowe
118 Group: Development/Libraries
119 Requires: %{name}-libs = %{version}-%{release}
120 Requires: alsa-lib-devel >= 0.9.0
121 Requires: glib2-devel >= 2.0.0
122 Requires: gtk-doc-common
123 Requires: jack-audio-connection-kit-devel >= 0.15.0
124 Requires: libgsm-devel >= 1.0.10
125 Requires: libosip2-devel >= 2.2.0
126 Requires: libsamplerate-devel >= 0.0.13
127 Requires: lpc10-devel >= 1.5
128 Requires: speex-devel >= 1.0.0
131 Development files for the Linphone Internet Phone.
133 %description devel -l pl.UTF-8
134 Pliki dla programistów używających telefonu internetowego Linphone.
137 Summary: Linphone static libraries
138 Summary(pl.UTF-8): Statyczne biblioteki Linphone
139 Group: Development/Libraries
140 Requires: %{name}-devel = %{version}-%{release}
143 Static version of Linphone libraries.
145 %description static -l pl.UTF-8
146 Statyczne wersje bibliotek Linphone.
158 %if %{without system_ortp}
167 %if %{without system_ortp}
178 --with-html-dir=%{_gtkdocdir} \
183 %{?with_system_mediastreamer:--enable-external-mediastreamer} \
184 %{?with_system_ortp:--enable-external-ortp}
186 %if %{without system_ortp}
191 --libdir=%{_libdir}/%{name} \
192 --includedir=%{_libdir}/%{name}/include
195 %if %{without system_ortp}
200 --libdir=%{_libdir}/%{name} \
201 --includedir=%{_libdir}/%{name}/include
208 rm -rf $RPM_BUILD_ROOT
209 install -d $RPM_BUILD_ROOT%{_desktopdir} \
210 $RPM_BUILD_ROOT%{_pixmapsdir}
213 DESTDIR=$RPM_BUILD_ROOT
215 install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
217 # kill .desktop in GNOME1-specific location
218 #rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/apps
220 rm -r $RPM_BUILD_ROOT/usr/share/doc/linphone
221 %{!?with_system_mediastreamer:rm -r $RPM_BUILD_ROOT/usr/share/doc/mediastreamer}
222 %{!?with_system_ortp:rm -r $RPM_BUILD_ROOT/usr/share/doc/ortp}
224 mv $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}
226 # the executable is missing, so the manual is useless
227 rm $RPM_BUILD_ROOT%{_mandir}/man1/sipomatic.1*
228 rm $RPM_BUILD_ROOT%{_mandir}/cs/man1/sipomatic.1*
230 %find_lang %{name} --with-gnome --all-name
233 rm -rf $RPM_BUILD_ROOT
236 /usr/bin/scrollkeeper-update
238 %if %{without system_mediastreamer} || %{without system_ortp}
240 /sbin/ldconfig %{_libdir}/%{name}
242 %post libs -p /sbin/ldconfig
246 /usr/bin/scrollkeeper-update
248 %postun libs -p /sbin/ldconfig
250 %files -f %{name}.lang
251 %defattr(644,root,root,755)
252 %doc AUTHORS BUGS ChangeLog NEWS README TODO
253 %attr(755,root,root) %{_bindir}/linphone
254 %{_desktopdir}/linphone.desktop
255 %{_pixmapsdir}/linphone.png
256 %{_pixmapsdir}/linphone
258 %{_mandir}/man1/linphone.1*
259 %lang(cs) %{_mandir}/cs/man1/linphone.1*
262 %defattr(644,root,root,755)
263 %doc AUTHORS BUGS ChangeLog NEWS README TODO
264 %attr(755,root,root) %{_bindir}/linphonec
265 %attr(755,root,root) %{_bindir}/linphonecsh
266 %{_mandir}/man1/linphonec.1*
267 %{_mandir}/man1/linphonecsh.1*
268 %lang(cs) %{_mandir}/cs/man1/linphonec.1*
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_libdir}/liblinphone.so.*.*.*
273 %attr(755,root,root) %ghost %{_libdir}/liblinphone.so.?
274 %if %{without system_mediastreamer} || %{without system_ortp}
275 %dir %{_libdir}/%{name}
277 %if %{without system_mediastreamer}
278 %attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so.*.*.*
279 %attr(755,root,root) %ghost %{_libdir}/%{name}/libmediastreamer.so.?
280 %{_libdir}/%{name}/mediastream
282 %if %{without system_ortp}
283 %attr(755,root,root) %{_libdir}/%{name}/libortp.so.*.*.*
284 %attr(755,root,root) %ghost %{_libdir}/%{name}/libortp.so.?
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/liblinphone.so
291 %{_includedir}/linphone
292 %{_pkgconfigdir}/linphone.pc
293 %{_libdir}/liblinphone.la
294 %if %{without system_mediastreamer} || %{without system_ortp}
295 %dir %{_libdir}/%{name}/include
296 %dir %{_libdir}/%{name}/pkgconfig
298 %if %{without system_mediastreamer}
299 %attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so
300 %{_libdir}/%{name}/libmediastreamer.la
301 %{_libdir}/%{name}/include/mediastreamer2
302 %{_libdir}/%{name}/pkgconfig/mediastreamer.pc
304 %if %{without system_ortp}
305 %attr(755,root,root) %{_libdir}/%{name}/libortp.so
306 %{_libdir}/%{name}/libortp.la
307 %{_libdir}/%{name}/include/ortp
308 %{_libdir}/%{name}/pkgconfig/ortp.pc
312 %defattr(644,root,root,755)
313 %{_libdir}/liblinphone.a
314 %if %{without system_mediastreamer}
315 %{_libdir}/%{name}/libmediastreamer.a
317 %if %{without system_ortp}
318 %{_libdir}/%{name}/libortp.a