LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File linphone.spec of Package linphone (Project network:telephony)

#
# spec file for package linphone
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define _version 3.8
Name:           linphone
Version:        3.8.0
Release:        0
Summary:        Web Phone
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Url:            https://linphone.org
Source0:        http://download.savannah.gnu.org/releases/linphone/%{_version}.x/sources/%{name}-%{version}.tar.gz
Source1:        %{name}-manual.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  libeXosip2-devel
BuildRequires:  libgsm-devel
BuildRequires:  libtool
BuildRequires:  readline-devel
BuildRequires:  sgmltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(belle-sip) >= 1.3.1
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.18.0
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libosip2)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(libupnp)
BuildRequires:  pkgconfig(libv4l2) >= 0.8.4
BuildRequires:  pkgconfig(libzrtpcpp) >= 4.0
BuildRequires:  pkgconfig(mediastreamer) >= 2.10.0
BuildRequires:  pkgconfig(ortp) >= 0.23.0
BuildRequires:  pkgconfig(speex) >= 1.1.6
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(udev)
Recommends:     %{name}-lang = %{version}
# Video support - disabled by default due to patent issues.
%if 0%{?packman_bs}
BuildRequires:  libffmpeg-devel
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(vpx)
BuildRequires:  pkgconfig(xv)
%endif

%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 devel
Summary:        Web Phone
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Requires:       glibc-devel
Requires:       libeXosip2-devel
Requires:       libosip2-devel
Requires:       pkgconfig(alsa)
Requires:       pkgconfig(glib-2.0)
Requires:       pkgconfig(speex)
%if 0%{?packman_bs}
Requires:       libffmpeg-devel
Requires:       pkgconfig(xv)
%endif

%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.

%lang_package

%prep
%setup -q
%setup -q -D -T -a 1
# Set tutorial path inside linphone in /usr/share.
sed -i "s|\(\$(datadir)/\)\(tutorials\)/%{name}|\1%{name}/\2|" coreapi/help/Makefile.{in,am}

%build
%configure \
  --docdir=%{_docdir}             \
  --enable-pulseaudio             \
  --enable-external-ortp          \
  --enable-external-mediastreamer \
  --enable-zrtp                   \
%if !0%{?packman_bs}
  --disable-video                 \
%endif
  --disable-strict                \
  --disable-static

make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file -r -D "%{name}/index.xml.html" -G "SIP Phone" %{name} Network Telephony
find %{buildroot} -type f -name "*.la" -delete -print
# Remove duplicate COPYING.
rm -f %{buildroot}%{_datadir}/%{name}/COPYING
# Install the manual.
mkdir -p %{buildroot}%{_datadir}/gnome/help/
cp -a %{name} %{buildroot}%{_datadir}/gnome/help/%{name}/
%find_lang %{name}
%fdupes %{buildroot}

%post
%desktop_database_post
/sbin/ldconfig

%postun
%desktop_database_postun
/sbin/ldconfig

%files
%defattr(-,root,root)
%doc NEWS AUTHORS COPYING
%{_bindir}/*
%{_libdir}/lib%{name}.so.*
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/tutorials/
%{_datadir}/sounds/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}/
%{_mandir}/man?/*.?%{ext_man}
%doc %{_mandir}/*/man?/*.?%{ext_man}
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/%{name}/tutorials/

%files lang -f %{name}.lang
%defattr(-,root,root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/

%changelog