LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File plasma5-desktop.spec of Package plasma5-desktop (Project home:alarrosa:branches:fix-shutdown)

#
# spec file for package plasma5-desktop
#
# Copyright (c) 2016 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-desktop
Version:        5.5.5
Release:        0
Summary:        The KDE Plasma Workspace Components
License:        GPL-2.0
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Source:         plasma-desktop-%{version}.tar.xz
Source99:       %{name}-rpmlintrc
Patch0:         0001-Require-xorg-evdev-2.8.99.1.patch
Patch1:         use-correct-kf5-var.patch
# PATCHES 100-200 and above are from upstream 5.5 branch
# PATCHES 201-300 and above are from upstream master/5.6 branch
Patch201:       Dont-use-Plasma-theme-icons-in-task-icon.patch
Patch202:       0001-Refactor-kcm-touchpad-to-fix-some-issue-related-to-h.patch
Patch203:       0002-remove-the-duplicate-m_touchpadOffAtom-member.patch
Patch204:       0003-use-updateCurrentState-when-touchpadReset-happens.patch
Patch205:       0001-Emit-PaletteChanged-when-setting-colors-from-look-an.patch
BuildRequires:  boost-devel
BuildRequires:  extra-cmake-modules >= 1.8.0
BuildRequires:  glib2-devel
BuildRequires:  kf5-filesystem
BuildRequires:  libpulse-devel
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  cmake(KDED) >= 5.12.0
BuildRequires:  cmake(KF5Activities) >= 5.12.0
BuildRequires:  cmake(KF5Attica) >= 5.12.0
BuildRequires:  cmake(KF5Auth) >= 5.12.0
BuildRequires:  cmake(KF5Baloo) >= 5.1.90
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons) >= 5.12.0
BuildRequires:  cmake(KF5Declarative) >= 5.12.0
BuildRequires:  cmake(KF5DocTools) >= 5.12.0
BuildRequires:  cmake(KF5Emoticons)
BuildRequires:  cmake(KF5GlobalAccel) >= 5.12.0
BuildRequires:  cmake(KF5GuiAddons)
BuildRequires:  cmake(KF5I18n) >= 5.12.0
BuildRequires:  cmake(KF5ItemModels)
BuildRequires:  cmake(KF5KCMUtils) >= 5.12.0
BuildRequires:  cmake(KF5KDELibs4Support) >= 5.12.0
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5NewStuff) >= 5.12.0
BuildRequires:  cmake(KF5Notifications) >= 5.12.0
BuildRequires:  cmake(KF5NotifyConfig) >= 5.12.0
BuildRequires:  cmake(KF5People) >= 5.12.0
BuildRequires:  cmake(KF5Plasma) >= 5.12.0
BuildRequires:  cmake(KF5PlasmaQuick) >= 5.12.0
BuildRequires:  cmake(KF5Runner) >= 5.12.0
BuildRequires:  cmake(KF5Wallet) >= 5.12.0
BuildRequires:  cmake(KRunnerAppDBusInterface) >= %{version}
BuildRequires:  cmake(KSMServerDBusInterface) >= %{version}
BuildRequires:  cmake(KWinDBusInterface) >= %{version}
BuildRequires:  cmake(LibKWorkspace) >= %{version}
BuildRequires:  cmake(LibTaskManager) >= %{version}
BuildRequires:  cmake(Phonon4Qt5) >= 4.6.60
BuildRequires:  cmake(Qt5Concurrent) >= 5.4.0
BuildRequires:  cmake(Qt5DBus) >= 5.4.0
BuildRequires:  cmake(Qt5Qml) >= 5.4.0
BuildRequires:  cmake(Qt5Quick) >= 5.4.0
BuildRequires:  cmake(Qt5QuickWidgets) >= 5.4.0
BuildRequires:  cmake(Qt5Sql) >= 5.4.0
BuildRequires:  cmake(Qt5Svg) >= 5.4.0
BuildRequires:  cmake(Qt5Test) >= 5.4.0
BuildRequires:  cmake(Qt5Widgets) >= 5.4.0
BuildRequires:  cmake(Qt5X11Extras) >= 5.4.0
BuildRequires:  cmake(ScreenSaverDBusInterface) >= %{version}
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(libcanberra)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(x11-xcb)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-image)
BuildRequires:  pkgconfig(xcb-shm)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xorg-evdev)
BuildRequires:  pkgconfig(xorg-server)
BuildRequires:  pkgconfig(xorg-synaptics)
%ifarch %arm aarch64
BuildRequires:  pkgconfig(glesv2)
%else
BuildRequires:  pkgconfig(gl)
%endif
#BuildRequires:  pkgconfig(xrender)
BuildRequires:  xkeyboard-config
Requires:       %{name}-branding = %{version}
Requires:       libqt5-qtgraphicaleffects
Requires:       plasma5-workspace >= %{version}
# hardcode versions of plasma-framework-componets and plasma-framework-private packages, as upstream doesn't keep backwards compability there
%requires_ge plasma-framework-components
%requires_ge plasma-framework-private
Requires:       kde-user-manager
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
Requires:       kinfocenter5
Requires:       kmenuedit5
Requires:       ksysguard5
%endif
# needed for the ActivityManager
Requires:       kactivities5-imports
Recommends:     plasma5-addons
%if %{with lang}
Recommends:     %{name}-lang
%endif
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
Provides:       kdebase4-workspace = 5.3.0
Obsoletes:      kdebase4-workspace < 5.3.0
Provides:       kcm-touchpad = %{version}
Obsoletes:      kcm-touchpad < %{version}
Provides:       kdebase4-workspace-plasma-calendar = %{version}
Obsoletes:      kdebase4-workspace-plasma-calendar < %{version}
Provides:       kdebase4-workspace-plasma-engine-akonadi = %{version}
Obsoletes:      kdebase4-workspace-plasma-engine-akonadi < %{version}
%else
Conflicts:      kdebase4-workspace
Conflicts:      kcm-touchpad
%endif
Conflicts:      kio-extras5 <= 5.3.2
Provides:       kcm-touchpad5 = %{version}
Obsoletes:      kcm-touchpad5 < %{version}
Obsoletes:      synaptiks
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the basic packages for a Plasma workspace.

%package branding-upstream
Summary:        The KDE Plasma Workspace Components
Group:          System/GUI/KDE
Provides:       %{name}-branding = %{version}
Supplements:    packageand(plasma5-desktop:branding-upstream)
Conflicts:      otherproviders(%{name}-branding)
Requires:       plasma5-workspace-branding-upstream

%description branding-upstream
This package contains the basic packages for a Plasma workspace.

%lang_package
%prep
%setup -q -n plasma-desktop-%{version}
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
%patch0 -Rp1
%endif
%patch1 -p1
%patch201 -p1
%patch202 -p1
%patch203 -p1
%patch204 -p1
%patch205 -p1

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

%install
  %kf5_makeinstall -C build

  # no devel files needed here
  rm -rfv %{buildroot}%{_kf5_sharedir}/dbus-1/interfaces/

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libKF5ActivitiesExperimentalStats.so.*
%{_kf5_sysconfdir}/dbus-1/system.d/org.kde.fontinst.conf
%{_kf5_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmclock.conf
%config %{_kf5_configdir}/colorschemes.knsrc
%config %{_kf5_configdir}/emoticons.knsrc
%config %{_kf5_configdir}/icons.knsrc
%config %{_kf5_configdir}/kfontinst.knsrc
%config %{_kf5_configdir}/plasma-themes.knsrc
%if 0%{?suse_version} > 1314
%config %{_kf5_configdir}/xcursor.knsrc
%{_kf5_bindir}/kapplymousetheme
%endif
%{_kf5_bindir}/kaccess
%{_kf5_bindir}/kfontinst
%{_kf5_bindir}/kfontview
%{_kf5_bindir}/knetattach
%{_kf5_bindir}/krdb
%{_kf5_bindir}/kcm-touchpad-list-devices
%{_kf5_bindir}/solid-action-desktop-gen
%{_kf5_libdir}/kconf_update_bin/krdb_clearlibrarypath
%{_kf5_libdir}/libexec/
%{_kf5_libdir}/libkdeinit5_kaccess.so
%exclude %{_kf5_libdir}/libkfontinst.so
%{_kf5_libdir}/libkfontinst.so.*
%exclude %{_kf5_libdir}/libkfontinstui.so
%{_kf5_libdir}/libkfontinstui.so.*
%{_kf5_plugindir}/
%{_kf5_qmldir}/
%{_kf5_applicationsdir}/org.kde.kfontview.desktop
%{_kf5_applicationsdir}/org.kde.knetattach.desktop
%{_kf5_sharedir}/dbus-1/services/org.kde.fontinst.service
%{_kf5_sharedir}/dbus-1/system-services/org.kde.fontinst.service
%{_kf5_sharedir}/dbus-1/system-services/org.kde.kcontrol.kcmclock.service
%{_kf5_sharedir}/polkit-1/actions/org.kde.fontinst.policy
%{_kf5_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmclock.policy
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%doc %{_kf5_htmldir}/en/*/
%dir %{_kf5_sharedir}/icons/hicolor/*/
%dir %{_kf5_sharedir}/icons/hicolor/*/*/
%{_kf5_sharedir}/icons/hicolor/*/*/*.*
%{_kf5_configkcfgdir}/
%{_kf5_sharedir}/kcm_componentchooser/
%{_kf5_sharedir}/kcm_phonon/
%{_kf5_sharedir}/kcmkeys/
%{_kf5_sharedir}/kcmsolidactions/
%{_kf5_sharedir}/kconf_update/
%{_kf5_sharedir}/kcontrol/
%{_kf5_sharedir}/kdisplay/
%{_kf5_sharedir}/kdm/
%{_kf5_sharedir}/kfontinst/
%{_kf5_sharedir}/kxmlgui5/
%{_kf5_sharedir}/kpackage/
%{_kf5_sharedir}/kcmkeyboard/
%{_kf5_sharedir}/color-schemes/
%{_kf5_notifydir}/
%{_kf5_sharedir}/konqsidebartng/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%{_kf5_sharedir}/ksmserver/
%if 0%{?suse_version} > 1314
%{_kf5_sharedir}/kcminput/
%endif
%{_kf5_sharedir}/solid/
%{_kf5_plasmadir}/
%exclude %{_kf5_plasmadir}/shells/org.kde.plasma.desktop/contents/layout.js
%exclude %{_kf5_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js

%files branding-upstream
%defattr(-,root,root)
%doc COPYING*
%dir %{_kf5_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel/contents
%dir %{_kf5_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel
%dir %{_kf5_plasmadir}/layout-templates
%dir %{_kf5_plasmadir}/shells/org.kde.plasma.desktop/contents
%dir %{_kf5_plasmadir}/shells/org.kde.plasma.desktop
%dir %{_kf5_plasmadir}/shells
%dir %{_kf5_plasmadir}
%{_kf5_plasmadir}/shells/org.kde.plasma.desktop/contents/layout.js
%{_kf5_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js

%if %{with lang}
%files lang
%defattr(-,root,root)
%{_kf5_localedir}/
%doc %lang(ca) %{_kf5_htmldir}/ca/
%doc %lang(it) %{_kf5_htmldir}/it/
#doc %%lang(de) %%{_kf5_htmldir}/de/
%doc %lang(nl) %{_kf5_htmldir}/nl/
%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/
%doc %lang(ru) %{_kf5_htmldir}/ru/
%doc %lang(sv) %{_kf5_htmldir}/sv/
%doc %lang(uk) %{_kf5_htmldir}/uk/
%endif

%changelog