File linphone.spec of Package linphone
#
# spec file for package linphone
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: linphone
Version: 3.3.2
Release: 3
License: GPLv2+
Summary: Web Phone
Url: http://www.linphone.org
Group: Productivity/Networking/Other
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-manual.tar.bz2
Source99: history-orange.png
Patch1: linphone-3.3.x-20100903.diff.bz2
BuildRequires: gcc-c++
BuildRequires: gnome-panel-devel
BuildRequires: gnutls-devel
BuildRequires: intltool
BuildRequires: libeXosip2-devel
BuildRequires: libosip2-devel
BuildRequires: libv4l-devel
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig(libglade-2.0)
BuildRequires: readline-devel
BuildRequires: speex-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#NoSource: 0
%description
Linphone is a Web phone with a GNOME interface. It lets you make
two-party calls over IP networks such as the Internet. It uses the IETF
protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT
Protocol) to make calls, so it should be able to communicate with other
SIP-based Web phones. With several codecs available, it can be used
with high speed connections as well as 28k modems.
%package applet
License: GPLv2+
Summary: Web Phone
Group: Productivity/Networking/Other
Requires: %{name} = %{version}
%description applet
Linphone is a Web phone with a GNOME interface. It let you make
two-party calls over IP networks such as the Internet. It uses the IETF
protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT
Protocol) to make calls, so it should be able to communicate with other
SIP-based Web phones. With several codecs available, it can be used
with high speed connections as well as 28k modems.
%package devel
License: GPLv2+
Summary: Web Phone
Group: Productivity/Networking/Other
Requires: %{name} = %{version}
Requires: alsa-devel
Requires: glibc-devel
Requires: libeXosip2-devel
Requires: libosip2-devel
Requires: pkgconfig(glib-2.0)
Requires: speex-devel
%description devel
Linphone is a Web phone with a GNOME interface. It lets you make
two-party calls over IP networks such as the Internet. It uses the IETF
protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT
Protocol) to make calls, so it should be able to communicate with other
SIP-based Web phones. With several codecs available, it can be used
with high speed connections as well as 28k modems.
%prep
%setup -q
%patch1 -p1
# patch cannot handle binaries
cp %{S:99} pixmaps/history-orange.png
find -name "CVS" -type d | xargs rm -rfv
%build
# needed for linphone-1.3.0:
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure\
--libexecdir=%{_prefix}/lib/gnome-panel\
--disable-static \
--disable-video
make %{?_smp_mflags}
%install
%make_install
# install manual
tar xj -C %{buildroot}%{_datadir}/gnome/help/ -f %{S:1}
#cleanup
rm -fv %{buildroot}%{_includedir}/speex*
rm -fv %{buildroot}%{_datadir}/doc/speex-1.1.4/manual.pdf
# FIXME: Upstream bug: Use GNOME2-style desktop files instead of GNOME1-style.
# install desktop file
%suse_update_desktop_file -D "linphone/index.xml.html" -G "SIP Phone" %{name} Network Telephony
%find_lang %{name}
cat %{name}.lang
# delete unused man pages
rm -rf %{buildroot}%{_mandir}/cs/
# no need to package la files
rm -f %{buildroot}%{_libdir}/*.*a
ln -sf linphone-3 %{buildroot}%{_bindir}/linphone
cp -a ./pixmaps/linphone-3.png %{buildroot}%{_datadir}/linphone/linphone2.png
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/sounds/linphone
%{_libdir}/*.so.*
%{_datadir}/linphone
%{_datadir}/pixmaps/linphone
%doc %{_mandir}/man1/*.*
%{_datadir}/images/nowebcamCIF.jpg
%{_datadir}/applications/linphone.desktop
%dir %{_datadir}/images
%files applet
%defattr(-,root,root)
#%{_libdir}/bonobo/servers/*.server
%{_prefix}/lib/gnome-panel
%files devel
%defattr(-,root,root)
%{_includedir}/linphone
%{_includedir}/ortp
%{_includedir}/mediastreamer2
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog