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