File ekiga.spec of Package ekiga

# spec file for package ekiga
# Copyright (c) 2013 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

%define with_evolution 1
%define with_gstreamer_0_10 0

Name:           ekiga
Version:        4.0.1
Release:        0
Summary:        A GNOME based SIP/H323 teleconferencing application
License:        SUSE-GPL-2.0-with-openssl-exception
Group:          Productivity/Telephony/SIP/Clients
# PATCH-FIX-UPSTREAM boost-configure.patch -- AX_BOOST_BASE: add aarch64 to the list of lib64 architectures
Patch:          boost-configure.patch
BuildRequires:  boost-devel
BuildRequires:  cyrus-sasl-devel
BuildRequires:  dbus-1-glib-devel
%if %{with_evolution}
BuildRequires:  evolution-data-server-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-icon-theme >= 3.0.0
%if %{with_gstreamer_0_10}
BuildRequires:  gstreamer-0_10-plugins-base-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libavahi-glib-devel
BuildRequires:  libnotify-devel
BuildRequires:  libopal-devel >= 3.10.10
BuildRequires:  libpt-devel >= 2.10.10
BuildRequires:  libsigc++2-devel
BuildRequires:  libsoup-devel
BuildRequires:  libv4l-devel
BuildRequires:  openldap2-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(xv)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         filesystem /usr/bin/touch gconf2
Provides:       gnomemeeting
Obsoletes:      gnomemeeting
%if ! %{with_evolution}
# In case we cannot build the evolution plugin, we obsolete the sub package
Obsoletes:      ekiga-plugins-evolution < %{version}
Recommends:     %{name}-lang

Ekiga (formely known as GnomeMeeting) is an open source VoIP and video
conferencing application for GNOME. Ekiga uses both the H.323 and SIP
protocols. It supports many audio and video codecs, and is
interoperable with other SIP compliant software and also with Microsoft

%if %{with_gstreamer_0_10}
%package -n ekiga-plugins-gstreamer
Summary:        Gstreamer plugin for %{name}
Group:          System/Libraries
Supplements:    packageand(ekiga:pulseaudio)

%description -n ekiga-plugins-gstreamer
This plugin enables gstreamer support in %{name}.

%if %{with_evolution}
%package -n ekiga-plugins-evolution
Summary:        Evolution plugin for %{name}
Group:          System/Libraries
Supplements:    packageand(ekiga:evolution-data-server)

%description -n ekiga-plugins-evolution
This plugin enables evolution support in %{name}.

%setup -q
%patch -p1

%configure \
    --disable-schemas-install \
    --disable-scrollkeeper \
    --enable-dbus \
%if %{with_gstreamer_0_10}
    --enable-gstreamer \
    --enable-xcap \
    --enable-avahi \
%if %{with_evolution}
make %{?_smp_mflags}

find %{buildroot} -name '*.la' -delete -print
%find_lang %{name} %{?no_lang_C}
cat %{name}.schemas_list >%{name}.lst
%suse_update_desktop_file %name

%pre -f %{name}.schemas_pre


%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans


%files -f %{name}.lst
%doc ChangeLog README FAQ
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/%{version}/
%dir %{_libdir}/%{name}/%{version}/plugins/

%if %{with_gstreamer_0_10}
%files -n ekiga-plugins-gstreamer

%if %{with_evolution}
%files -n ekiga-plugins-evolution

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by