5 # default is to build with video support & without truespeech support
6 %define video %{?_without_video:0}%{!?_without_video:1}
7 %define truespeech %{?_with_truespeech:1}%{!?_with_truespeech:0}
9 # Linphone requires an old osip version, sometimes (e.g. fc6)
10 # delivered as "compat-"
11 %define _without_old_osip 0
16 Summary: Phone anywhere in the whole world by using the Internet
18 Group: Applications/Communications
20 URL: http://www.linphone.org
21 Source0: http://download.savannah.gnu.org/releases/linphone/stable/source/%{name}-%{version}.tar.gz
22 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
27 BuildRequires: gnome-panel-devel libgnomeui-devel glib2-devel alsa-lib-devel
28 BuildRequires: libosip2-devel speex-devel gettext desktop-file-utils
29 BuildRequires: readline-devel ncurses-devel
30 BuildRequires: intltool gettext-devel
32 BuildRequires: ffmpeg-devel SDL-devel
36 Linphone is mostly sip compliant. It works successfully with these
38 * eStara softphone (commercial software for windows)
39 * Pingtel phones (with DNS enabled and VLAN QOS support disabled).
40 * Hotsip, a free of charge phone for Windows.
41 * Vocal, an open source SIP stack from Vovida that includes a SIP proxy
42 that works with linphone since version 0.7.1.
43 * Siproxd is a free sip proxy being developped by Thomas Ries because he
44 would like to have linphone working behind his firewall. Siproxd is
45 simple to setup and works perfectly with linphone.
46 * Partysip aims at being a generic and fully functionnal SIP proxy. Visit
47 the web page for more details on its functionalities.
49 Linphone may work also with other sip phones, but this has not been tested yet.
52 Summary: Development libraries for linphone
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
55 Requires: ortp-devel = @ORTP_VERSION@
59 Libraries and headers required to develop software with linphone.
62 Summary: A C library implementing the RTP protocol (rfc1889)
63 Group: System Environment/Libraries
64 Version: @ORTP_VERSION@
67 oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It
68 is available for most *nix clones (primilarly Linux and HP-UX), and Win32.
70 %package -n ortp-devel
71 Summary: Development libraries for ortp
72 Group: Development/Libraries
73 Version: @ORTP_VERSION@
74 Requires: ortp = @ORTP_VERSION@
76 %description -n ortp-devel
77 oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It
78 is available for most *nix clones (primilarly Linux and HP-UX), and Win32.
80 This package contains header files and development libraries needed to
81 develop programs using the oRTP library.
83 %package -n mediastreamer2
84 Summary: Audio/Video real-time streaming
85 Group: Development/Libraries
86 Version: @MS2_VERSION@
88 %description -n mediastreamer2
89 Mediastreamer2 is a GPL licensed library to make audio and video
90 real-time streaming and processing. Written in pure C, it is based
91 upon the oRTP library.
93 %package -n mediastreamer2-devel
94 Summary: Headers, libraries and docs for the mediastreamer2 library
95 Group: Development/Libraries
96 Version: @MS2_VERSION@
97 Requires: mediastreamer2 = @MS2_VERSION@
98 Requires: ortp-devel = @ORTP_VERSION@
100 %description -n mediastreamer2-devel
101 Mediastreamer2 is a GPL licensed library to make audio and video
102 real-time streaming and processing. Written in pure C, it is based
103 upon the ortp library.
105 This package contains header files and development libraries needed to
106 develop programs using the mediastreamer2 library.
110 #%patch -p 1 -b .pkgconfig
111 #%patch1 -p 1 -b .Werror
112 #%patch2 -p 1 -b .old
118 --with-readline=/usr \
125 --enable-truespeech \
127 %{?_without_old_osip: --with-osip-version=2.2.2} \
129 %__make %{?_smp_mflags}
133 rm -rf $RPM_BUILD_ROOT
134 make install DESTDIR=$RPM_BUILD_ROOT
135 install -p -m 0644 pixmaps/linphone2.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
137 rm $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/linphone.desktop
138 desktop-file-install --vendor=fedora \
140 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
141 --add-category X-Fedora \
142 --add-category Telephony \
144 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
147 rm -rf $RPM_BUILD_ROOT
149 %post -p /sbin/ldconfig
151 %postun -p /sbin/ldconfig
153 %post -n ortp -p /sbin/ldconfig
155 %postun -n ortp -p /sbin/ldconfig
157 %post -n mediastreamer2 -p /sbin/ldconfig
159 %postun -n mediastreamer2 -p /sbin/ldconfig
161 %files -f %{name}.lang
162 %defattr(-,root,root)
163 %doc AUTHORS ChangeLog COPYING NEWS README TODO
165 %{_libdir}/bonobo/servers/*.server
166 %{_libdir}/liblinphone.so.*
167 %exclude %{_libdir}/libortp*
170 %{_datadir}/applications/*%{name}.desktop
171 %{_datadir}/gnome/help/linphone
172 %{_datadir}/gnome-2.0/ui/*.xml
173 %{_datadir}/pixmaps/linphone
174 %{_datadir}/pixmaps/linphone2.png
175 %{_datadir}/sounds/linphone
178 %defattr(-,root,root)
179 %{_includedir}/linphone
180 %{_libdir}/liblinphone.a
181 %{_libdir}/liblinphone.la
182 %{_libdir}/liblinphone.so
183 %{_libdir}/pkgconfig/linphone.pc
186 %defattr(-,root,root)
187 %doc oRTP/AUTHORS oRTP/ChangeLog oRTP/COPYING oRTP/NEWS oRTP/README oRTP/TODO
188 %{_libdir}/libortp.so.*
189 %exclude %{_libdir}/liblinphone*
192 %defattr(-,root,root)
194 %{_libdir}/pkgconfig/ortp.pc
196 %{_libdir}/libortp.la
197 %{_libdir}/libortp.so
198 %{_datadir}/gtk-doc/html/ortp
200 %files -n mediastreamer2
201 %defattr(-,root,root)
202 %doc mediastreamer2/AUTHORS mediastreamer2/ChangeLog mediastreamer2/COPYING
203 %doc mediastreamer2/NEWS mediastreamer2/README
204 %{_libdir}/libmediastreamer.so.*
205 %{_libdir}/libquickstream.so.*
207 %files -n mediastreamer2-devel
208 %{_includedir}/mediastreamer2
209 %{_libdir}/pkgconfig/mediastreamer.pc
210 %{_libdir}/libmediastreamer.so
211 %{_libdir}/libmediastreamer.*a
212 %{_libdir}/libquickstream.so
213 %{_libdir}/libquickstream.*a
216 * Wed Sep 28 2005 Francois-Xavier 'FiX' KOWALSKI <francois-xavier.kowalski@hp.com> - 1.2.0pre3
217 - Updated to latests Simon's work
219 * Fri May 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-3
220 - Fix multiple menu entry and missing icon (#158975)
223 * Fri May 6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-2
224 - Fix libosip2-devel BR
226 * Wed May 4 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-1
228 - Port patches from devel
230 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-7
231 - pkgconfig and -devel fixes
233 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-6
234 - Fix build on x86_64
236 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-5
239 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-4
241 - Tightened up %%files
242 - Streamlined spec file
244 * Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-3
245 - Broke %%description at 80 columns
247 * Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-2
248 - Removed explicit Requires
250 * Tue Mar 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-1
252 - Cleaned up the -docs and -speex patches
254 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.1
255 - Fixed a silly spec error
257 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.0
258 - Initial RPM release.