]> git.pld-linux.org Git - packages/linphone.git/blob - linphone.spec
af7cfd468cd10f681b368d5c9d6bde22175e6167
[packages/linphone.git] / linphone.spec
1 # TODO:
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!
7 #
8 # Conditional build:
9 %bcond_without  system_ortp             # use custom ortp
10 %bcond_without  system_mediastreamer    # use custom mediastreamer
11
12 Summary:        Linphone Internet Phone
13 Summary(pl.UTF-8):      Linphone - telefon internetowy
14 Name:           linphone
15 Version:        3.5.2
16 Release:        1
17 License:        LGPL/GPL
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)
52
53 %if %{without system_ortp}
54 %define         _noautoreq_1    libortp\.so.*
55 %endif
56 %if %{without system_mediastreamer}
57 %define         _noautoreq_2    libmediastreamer\.so.*
58 %endif
59
60 %define         _noautoreq      %{?_noautoreq_1} %{?_noautoreq_2}
61 %define         _noautoprov     %{?_noautoreq}
62
63 %description
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.
67
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
74   Licence.
75 - Linphone is documented: there is a complete user manual readable
76   from the application that explains you all you need to know.
77
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.
81
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.
89
90 %package -n linphonec
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}
95
96 %description -n linphonec
97 Linphonec is the console version of  originally  Gnome  internet  phone
98 Linphone.
99
100 %description -n linphonec -l pl.UTF-8
101 Linphonec to konsolowa wersja GNOME'owego telefonu internetowego Linphone.
102
103 %package libs
104 Summary:        Linphone libraries
105 Summary(pl.UTF-8):      Biblioteki Linphone
106 Group:          Libraries
107 Requires(post,postun):  /sbin/ldconfig
108
109 %description libs
110 Linphone libraries.
111
112 %description libs -l pl.UTF-8
113 Biblioteki Linphone.
114
115 %package devel
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
129
130 %description devel
131 Development files for the Linphone Internet Phone.
132
133 %description devel -l pl.UTF-8
134 Pliki dla programistów używających telefonu internetowego Linphone.
135
136 %package static
137 Summary:        Linphone static libraries
138 Summary(pl.UTF-8):      Statyczne biblioteki Linphone
139 Group:          Development/Libraries
140 Requires:       %{name}-devel = %{version}-%{release}
141
142 %description static
143 Static version of Linphone libraries.
144
145 %description static -l pl.UTF-8
146 Statyczne wersje bibliotek Linphone.
147
148 %prep
149 %setup -q
150 %patch0 -p1
151
152 %build
153 %{__libtoolize}
154 %{__aclocal} -I m4
155 %{__autoconf}
156 %{__autoheader}
157 %{__automake}
158 %if %{without system_ortp}
159 cd oRTP
160 %{__libtoolize}
161 %{__aclocal}
162 %{__autoconf}
163 %{__autoheader}
164 %{__automake}
165 cd ..
166 %endif
167 %if %{without system_ortp}
168 cd mediastreamer2
169 %{__libtoolize}
170 %{__aclocal}
171 %{__autoconf}
172 %{__autoheader}
173 %{__automake}
174 cd ..
175 %endif
176
177 %configure \
178         --with-html-dir=%{_gtkdocdir} \
179         --enable-alsa \
180         --disable-strict \
181         --enable-static \
182         --enable-ipv6 \
183         %{?with_system_mediastreamer:--enable-external-mediastreamer} \
184         %{?with_system_ortp:--enable-external-ortp}
185
186 %if %{without system_ortp}
187 cd oRTP
188 %configure \
189         --enable-static \
190         --enable-ipv6 \
191         --libdir=%{_libdir}/%{name} \
192         --includedir=%{_libdir}/%{name}/include
193 cd ..
194 %endif
195 %if %{without system_ortp}
196 cd mediastreamer2
197 %configure \
198         --enable-static \
199         --disable-libv4l \
200         --libdir=%{_libdir}/%{name} \
201         --includedir=%{_libdir}/%{name}/include
202 cd ..
203 %endif
204
205 %{__make}
206
207 %install
208 rm -rf $RPM_BUILD_ROOT
209 install -d $RPM_BUILD_ROOT%{_desktopdir} \
210         $RPM_BUILD_ROOT%{_pixmapsdir}
211
212 %{__make} install \
213         DESTDIR=$RPM_BUILD_ROOT
214
215 install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
216
217 # kill .desktop in GNOME1-specific location
218 #rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/apps
219
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}
223
224 mv $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}
225
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*
229
230 %find_lang %{name} --with-gnome --all-name
231
232 %clean
233 rm -rf $RPM_BUILD_ROOT
234
235 %post
236 /usr/bin/scrollkeeper-update
237
238 %if %{without system_mediastreamer} || %{without system_ortp}
239 %post libs
240 /sbin/ldconfig %{_libdir}/%{name}
241 %else
242 %post libs -p /sbin/ldconfig
243 %endif
244
245 %postun
246 /usr/bin/scrollkeeper-update
247
248 %postun libs -p /sbin/ldconfig
249
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
257 %{_datadir}/linphone
258 %{_mandir}/man1/linphone.1*
259 %lang(cs) %{_mandir}/cs/man1/linphone.1*
260
261 %files -n linphonec
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*
269
270 %files libs
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}
276 %endif
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
281 %endif
282 %if %{without system_ortp}
283 %attr(755,root,root) %{_libdir}/%{name}/libortp.so.*.*.*
284 %attr(755,root,root) %ghost %{_libdir}/%{name}/libortp.so.?
285 %endif
286 %{_datadir}/sounds/*
287
288 %files devel
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
297 %endif
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
303 %endif
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
309 %endif
310
311 %files static
312 %defattr(644,root,root,755)
313 %{_libdir}/liblinphone.a
314 %if %{without system_mediastreamer}
315 %{_libdir}/%{name}/libmediastreamer.a
316 %endif
317 %if %{without system_ortp}
318 %{_libdir}/%{name}/libortp.a
319 %endif
This page took 0.106272 seconds and 2 git commands to generate.