File plasma5-addons.spec of Package plasma5-addons

#
# spec file for package plasma5-addons
#
# 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/
#


%bcond_without lang
Name:           plasma5-addons
Version:        5.4.2
Release:        0
Summary:        Additional Plasma5 Widgets
License:        LGPL-2.1 and GPL-2.0+ and GPL-3.0
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Source:         kdeplasma-addons-%{version}.tar.xz
Source99:       %{name}-rpmlintrc
BuildRequires:  kcmutils-devel
BuildRequires:  kconfig-devel
BuildRequires:  kconfigwidgets-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kdelibs4support-devel
BuildRequires:  kf5-filesystem
BuildRequires:  ki18n-devel
BuildRequires:  kio-devel
BuildRequires:  knewstuff-devel
BuildRequires:  kross-devel
BuildRequires:  krunner-devel
BuildRequires:  kservice-devel
BuildRequires:  kunitconversion-devel
BuildRequires:  libxcb-devel
BuildRequires:  plasma-framework-devel
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
BuildRequires:  purpose-devel
%endif
BuildRequires:  sonnet-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:  pkgconfig(Qt5DBus) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Qml) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Quick) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires:  pkgconfig(Qt5X11Extras) >= 5.4.0
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(ibus-1.0)
BuildRequires:  pkgconfig(xcb-keysyms)
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
Requires:       purpose
%endif
%if %{with lang}
Recommends:     %{name}-lang
%endif
Recommends:     %{name}-kimpanel
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
Provides:       plasma-addons = %{version}
Obsoletes:      plasma-addons < %{version}
%else
Conflicts:      plasma-addons
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Additional plasmoids from upstream for use on the Plasma workspace.

%package kimpanel
Summary:        A generic input method panel for Oriental languages
Group:          System/GUI/KDE

%description kimpanel
kimpanel is a panel Plasmoid for various input methods with concurrent Plasma theme

%lang_package
%prep
%setup -q -n kdeplasma-addons-%{version}

%build
  %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
  %make_jobs

%install
  %kf5_makeinstall -C build

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING*
%config %{_kf5_configdir}/comic.knsrc
%{_kf5_libdir}/libplasmacomicprovidercore.so.*
%{_kf5_servicetypesdir}/
%{_kf5_plugindir}/
%{_kf5_qmldir}/
%{_kf5_servicesdir}/
%{_kf5_plasmadir}/
%{_kf5_sharedir}/kwin/
%{_kf5_iconsdir}/hicolor/*/*/*.*
%exclude %{_kf5_qmldir}/org/kde/plasma/private/kimpanel/
%exclude %{_kf5_servicesdir}/*kimpanel*
%exclude %{_kf5_plasmadir}/services/kimpanel.operations
%exclude %{_kf5_plasmadir}/plasmoids/org.kde.plasma.kimpanel/
%exclude %{_kf5_plugindir}/plasma/dataengine/plasma_engine_kimpanel.so

%files kimpanel
%defattr(-,root,root)
%{_kf5_libdir}/libexec/
%dir %{_kf5_qmldir}/org
%dir %{_kf5_qmldir}/org/kde
%dir %{_kf5_qmldir}/org/kde/plasma
%dir %{_kf5_qmldir}/org/kde/plasma/private
%{_kf5_qmldir}/org/kde/plasma/private/kimpanel/
%{_kf5_servicesdir}/*kimpanel*
%dir %{_kf5_plasmadir}
%dir %{_kf5_plasmadir}/services
%{_kf5_plasmadir}/services/kimpanel.operations
%dir %{_kf5_plasmadir}/plasmoids
%{_kf5_plasmadir}/plasmoids/org.kde.plasma.kimpanel/
%dir %{_kf5_plugindir}
%dir %{_kf5_plugindir}/plasma
%dir %{_kf5_plugindir}/plasma/dataengine
%{_kf5_plugindir}/plasma/dataengine/plasma_engine_kimpanel.so

%if %{with lang}
%files lang
%defattr(-,root,root)
%doc COPYING*
%{_kf5_localedir}/
%endif

%changelog
openSUSE Build Service is sponsored by