A new user interface for you! Read more...

File kopete.spec of Package kopete

#
# spec file for package kopete
#
# Copyright (c) 2018 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/
#

%bcond_without	lang

Name:           kopete
Version:        18.04.0
Release:        0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary:        Instant Messenger
License:        GPL-2.0+
Group:          Productivity/Networking/Instant Messenger
Source0:        %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE
Patch:          fix-build-with-gcc48.patch
BuildRequires:  alsa-devel
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Xml)
BuildRequires:  cmake(Qt5Sql)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5Contacts)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5DNSSD)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5Emoticons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IdentityManagement)
BuildRequires:  cmake(KF5KCMUtils)
BuildRequires:  cmake(KF5KHtml)
BuildRequires:  cmake(KF5NotifyConfig)
BuildRequires:  cmake(KF5Parts)
BuildRequires:  cmake(KF5TextEditor)
BuildRequires:  cmake(KF5Wallet)
BuildRequires:  cmake(KF5KDELibs4Support)
BuildRequires:  cmake(KF5Libkleo)
BuildRequires:  extra-cmake-modules
BuildRequires:  giflib-devel
BuildRequires:  libgadu-devel
BuildRequires:  libidn-devel
BuildRequires:  libjasper-devel
BuildRequires:  libqca-qt5-devel
BuildRequires:  libv4l-devel
BuildRequires:  libxml2-devel
BuildRequires:  libxslt-devel
BuildRequires:  meanwhile-devel
%if 0%{?is_opensuse} || !0%{?sle_version}
BuildRequires:  mediastreamer2-devel
%endif
BuildRequires:  openslp-devel
BuildRequires:  pkgconfig
BuildRequires:  speex-devel
BuildRequires:  sqlite-devel
BuildRequires:  phonon4qt5-devel
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(libotr) >= 4.0.0
BuildRequires:  pkgconfig(libsrtp)
%if 0%{?is_opensuse} || !0%{?sle_version}
BuildRequires:  pkgconfig(ortp) >= 0.22
%endif
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Kopete is the KDE instant messenger and supports multiple protocols.

%package devel
Summary:        Instant Messenger - Development Files
Group:          Productivity/Networking/Instant Messenger
Requires:       kopete >= %{version}

%description devel
Kopete is the KDE instant messenger and supports multiple protocols.

%if %{with_lang}
%lang_package
%endif

%prep
%setup -q
%if 0%{?suse_version} < 1500
%patch -p1
%endif

%build
  %cmake_kf5 -d build
  %make_jobs

%install
%kf5_makeinstall -C build
%suse_update_desktop_file org.kde.kopete          Network  InstantMessaging
%if %{with lang}
  %find_lang %{name} --with-man --all-name
  %kf5_find_htmldocs
%endif

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_kf5_bindir}/kopete
%{_kf5_bindir}/winpopup-*
%{_kf5_plugindir}/kcm_kopete_*.so
%{_kf5_plugindir}/kopete_*.so
%{_kf5_plugindir}/chattexteditpart.so
%{_kf5_libdir}/libkopete.so.*
%{_kf5_libdir}/libkopete*.so.*
%{_kf5_libdir}/libkyahoo.so.*
%{_kf5_libdir}/liboscar.so.*
%{_kf5_libdir}/libqgroupwise.so
%{_kf5_applicationsdir}/org.kde.kopete.desktop
%{_kf5_sharedir}/dbus-1/interfaces/
%{_kf5_htmldir}/en/kopete/
%{_kf5_iconsdir}/hicolor/*/*/
%{_kf5_iconsdir}/oxygen/*/*/
%{_kf5_appsdir}/kconf_update/
%{_kf5_kxmlguidir}/kopete*/
%{_kf5_configkcfgdir}/
%{_kf5_servicesdir}/*.protocol
%{_kf5_servicesdir}/*.desktop
%{_kf5_servicetypesdir}/*.desktop
%{_kf5_sharedir}/kopete/
%{_kf5_sharedir}/sounds/*.ogg
%{_kf5_appsdir}/kopete_history/
%{_kf5_plugindir}/plugins/
%{_kf5_servicesdir}/kconfiguredialog/
%{_kf5_configdir}/kopeterc
%{_kf5_debugdir}/kopete.categories

%files devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_includedir}/kopete/
%{_kf5_libdir}/libkopete.so
%{_kf5_libdir}/libkopete*.so
%{_kf5_libdir}/libkyahoo.so
%{_kf5_libdir}/liboscar.so

%if %{with lang}
%files lang -f %{name}.lang
%license COPYING*
%endif

%changelog