5 # default is to build with video support & without truespeech support
6 %define video %{?_without_video:0}%{!?_without_video:1}
8 # Linphone requires an old osip version, sometimes (e.g. fc6)
9 # delivered as "compat-"
10 %define _without_old_osip 0
15 Summary: Phone anywhere in the whole world by using the Internet
17 Group: Applications/Communications
19 URL: http://www.linphone.org
20 Source0: http://download.savannah.gnu.org/releases/linphone/stable/source/%{name}-%{version}.tar.gz
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
26 BuildRequires: gnome-panel-devel libgnomeui-devel glib2-devel alsa-lib-devel
27 BuildRequires: libosip2-devel speex-devel gettext desktop-file-utils
28 BuildRequires: readline-devel ncurses-devel
29 BuildRequires: intltool gettext-devel
31 BuildRequires: ffmpeg-devel SDL-devel
35 Linphone is a SIP compliant audio & video phone. It can be used to run calls
36 over the internet. It has a gtk+ and console interface.
39 Summary: Development libraries for linphone
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: ortp-devel = @ORTP_VERSION@
46 Libraries and headers required to develop software with linphone.
49 Summary: A C library implementing the RTP protocol (rfc1889)
50 Group: System Environment/Libraries
51 Version: @ORTP_VERSION@
54 oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It
55 is available for most *nix clones (primilarly Linux and HP-UX), and Win32.
57 %package -n ortp-devel
58 Summary: Development libraries for ortp
59 Group: Development/Libraries
60 Version: @ORTP_VERSION@
61 Requires: ortp = @ORTP_VERSION@
63 %description -n ortp-devel
64 oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It
65 is available for most *nix clones (primilarly Linux and HP-UX), and Win32.
67 This package contains header files and development libraries needed to
68 develop programs using the oRTP library.
70 %package -n mediastreamer2
71 Summary: Audio/Video real-time streaming
72 Group: Development/Libraries
73 Version: @MS2_VERSION@
75 %description -n mediastreamer2
76 Mediastreamer2 is a GPL licensed library to make audio and video
77 real-time streaming and processing. Written in pure C, it is based
78 upon the oRTP library.
80 %package -n mediastreamer2-devel
81 Summary: Headers, libraries and docs for the mediastreamer2 library
82 Group: Development/Libraries
83 Version: @MS2_VERSION@
84 Requires: mediastreamer2 = @MS2_VERSION@
85 Requires: ortp-devel = @ORTP_VERSION@
87 %description -n mediastreamer2-devel
88 Mediastreamer2 is a GPL licensed library to make audio and video
89 real-time streaming and processing. Written in pure C, it is based
90 upon the ortp library.
92 This package contains header files and development libraries needed to
93 develop programs using the mediastreamer2 library.
97 #%patch -p 1 -b .pkgconfig
98 #%patch1 -p 1 -b .Werror
105 --with-readline=/usr \
112 %__make %{?_smp_mflags}
116 rm -rf $RPM_BUILD_ROOT
117 make install DESTDIR=$RPM_BUILD_ROOT
118 install -p -m 0644 pixmaps/linphone2.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
120 rm $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/linphone.desktop
121 desktop-file-install --vendor=fedora \
123 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
124 --add-category X-Fedora \
125 --add-category Telephony \
127 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
130 rm -rf $RPM_BUILD_ROOT
132 %post -p /sbin/ldconfig
134 %postun -p /sbin/ldconfig
136 %post -n ortp -p /sbin/ldconfig
138 %postun -n ortp -p /sbin/ldconfig
140 %post -n mediastreamer2 -p /sbin/ldconfig
142 %postun -n mediastreamer2 -p /sbin/ldconfig
144 %files -f %{name}.lang
145 %defattr(-,root,root)
146 %doc AUTHORS ChangeLog COPYING NEWS README TODO
148 %{_libdir}/bonobo/servers/*.server
149 %{_libdir}/liblinphone.so.*
150 %exclude %{_libdir}/libortp*
153 %{_datadir}/applications/*%{name}.desktop
154 %{_datadir}/gnome/help/linphone
155 %{_datadir}/gnome-2.0/ui/*.xml
156 %{_datadir}/pixmaps/linphone
157 %{_datadir}/pixmaps/linphone2.png
158 %{_datadir}/sounds/linphone
161 %defattr(-,root,root)
162 %{_includedir}/linphone
163 %{_libdir}/liblinphone.a
164 %{_libdir}/liblinphone.la
165 %{_libdir}/liblinphone.so
166 %{_libdir}/pkgconfig/linphone.pc
169 %defattr(-,root,root)
170 %doc oRTP/AUTHORS oRTP/ChangeLog oRTP/COPYING oRTP/NEWS oRTP/README oRTP/TODO
171 %{_libdir}/libortp.so.*
172 %exclude %{_libdir}/liblinphone*
175 %defattr(-,root,root)
177 %{_libdir}/pkgconfig/ortp.pc
179 %{_libdir}/libortp.la
180 %{_libdir}/libortp.so
181 %{_datadir}/gtk-doc/html/ortp
183 %files -n mediastreamer2
184 %defattr(-,root,root)
185 %doc mediastreamer2/AUTHORS mediastreamer2/ChangeLog mediastreamer2/COPYING
186 %doc mediastreamer2/NEWS mediastreamer2/README
187 %{_libdir}/libmediastreamer.so.*
189 %files -n mediastreamer2-devel
190 %{_includedir}/mediastreamer2
191 %{_libdir}/pkgconfig/mediastreamer.pc
192 %{_libdir}/libmediastreamer.so
193 %{_libdir}/libmediastreamer.*a
196 * Wed Sep 28 2005 Francois-Xavier 'FiX' KOWALSKI <francois-xavier.kowalski@hp.com> - 1.2.0pre3
197 - Updated to latests Simon's work
199 * Fri May 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-3
200 - Fix multiple menu entry and missing icon (#158975)
203 * Fri May 6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-2
204 - Fix libosip2-devel BR
206 * Wed May 4 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-1
208 - Port patches from devel
210 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-7
211 - pkgconfig and -devel fixes
213 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-6
214 - Fix build on x86_64
216 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-5
219 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-4
221 - Tightened up %%files
222 - Streamlined spec file
224 * Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-3
225 - Broke %%description at 80 columns
227 * Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-2
228 - Removed explicit Requires
230 * Tue Mar 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-1
232 - Cleaned up the -docs and -speex patches
234 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.1
235 - Fixed a silly spec error
237 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.0
238 - Initial RPM release.