2014-07-11 17:36:21 +00:00
#
2014-07-11 17:39:45 +00:00
# spec file for package plasma5-workspace
2014-07-11 17:36:21 +00:00
#
2016-01-06 14:33:12 +00:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
2014-07-11 17:36:21 +00:00
#
# 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/
#
2015-04-11 00:50:50 +00:00
%bcond_without lang
2014-07-11 17:39:45 +00:00
Name : plasma5-workspace
2016-07-13 06:28:47 +00:00
Version : 5.7.1
2014-07-11 17:36:21 +00:00
Release : 0
2016-07-13 06:28:47 +00:00
%define plasma_version 5.7.1
2014-07-11 17:36:21 +00:00
Summary : The KDE Plasma Workspace Components
License : GPL-2.0+
Group : System/GUI/KDE
Url : http://www.kde.org/
2014-11-06 21:24:53 +00:00
Source : plasma-workspace-%{version} .tar.xz
2014-09-11 15:06:32 +00:00
Source1 : baselibs.conf
2014-07-11 17:36:21 +00:00
# PATCH-FIX_OPENSUSE 0001-Rename-qdbus-in-startkde.patch cgiboudeaux@gmx.com -- Rename the qdbus executable in startkde
Patch0 : 0001-Rename-qdbus-in-startkde.patch
2016-06-16 21:02:23 +00:00
# PATCH-FIX_OPENSUSE require-qt56.diff
Patch1 : require-qt56.diff
2016-03-30 16:08:43 +00:00
# PATCH-FIX-OPENSUSE plasmashell-disable-windowclosing-on-logout.patch kde#349805 wbauer@tmo.at -- Prevent plasma from closing too early on logout resulting in an unusable desktop if the logout is cancelled
Patch4 : plasmashell-disable-windowclosing-on-logout.patch
2016-06-16 20:54:44 +00:00
# PATCHES 100-200 and above are from upstream 5.7 branch
# PATCHES 201-300 and above are from upstream master/5.8 branch
BuildRequires : breeze5-icons
2016-06-07 17:57:00 +00:00
BuildRequires : fdupes
2014-07-11 17:36:21 +00:00
BuildRequires : kf5-filesystem
2016-05-15 16:59:47 +00:00
BuildRequires : phonon4qt5-devel >= 4.6.60
2014-07-11 17:36:21 +00:00
BuildRequires : update-desktop-files
2015-11-28 15:30:07 +00:00
BuildRequires : cmake(KF5Activities) >= 5.15.0
BuildRequires : cmake(KF5Baloo)
BuildRequires : cmake(KF5CoreAddons) >= 5.15.0
BuildRequires : cmake(KF5Crash) >= 5.15.0
BuildRequires : cmake(KF5DBusAddons) >= 5.15.0
BuildRequires : cmake(KF5Declarative) >= 5.15.0
BuildRequires : cmake(KF5DocTools) >= 5.15.0
BuildRequires : cmake(KF5GlobalAccel) >= 5.15.0
2016-06-18 00:49:49 +00:00
%if 0%{?is_opensuse} || 0%{?suse_version} > 1320
2016-06-16 20:54:44 +00:00
BuildRequires : cmake(KF5Holidays)
%endif
2015-11-28 15:30:07 +00:00
BuildRequires : cmake(KF5I18n) >= 5.15.0
BuildRequires : cmake(KF5IdleTime) >= 5.15.0
BuildRequires : cmake(KF5JsEmbed) >= 5.15.0
BuildRequires : cmake(KF5KCMUtils) >= 5.15.0
BuildRequires : cmake(KF5KDELibs4Support) >= 5.15.0
BuildRequires : cmake(KF5NetworkManagerQt) >= 5.15.0
BuildRequires : cmake(KF5NewStuff) >= 5.15.0
BuildRequires : cmake(KF5NotifyConfig) >= 5.15.0
BuildRequires : cmake(KF5Package) >= 5.15.0
BuildRequires : cmake(KF5Plasma) >= 5.15.0
BuildRequires : cmake(KF5PlasmaQuick)
BuildRequires : cmake(KF5Runner) >= 5.15.0
BuildRequires : cmake(KF5Screen) >= 5.0.93
BuildRequires : cmake(KF5Solid) >= 5.15.0
BuildRequires : cmake(KF5Su) >= 5.15.0
2015-12-16 16:39:56 +00:00
BuildRequires : cmake(KF5SysGuard) >= %{plasma_version}
2015-11-28 15:33:41 +00:00
BuildRequires : cmake(KF5TextEditor)
2015-11-28 15:30:07 +00:00
BuildRequires : cmake(KF5TextWidgets) >= 5.15.0
BuildRequires : cmake(KF5Wallet) >= 5.15.0
2015-12-16 16:39:56 +00:00
BuildRequires : cmake(KF5Wayland) >= %{plasma_version}
2015-11-28 15:30:07 +00:00
BuildRequires : cmake(KF5XmlRpcClient)
2015-12-16 16:39:56 +00:00
BuildRequires : cmake(KScreenLocker) >= %{plasma_version}
BuildRequires : cmake(KWinDBusInterface) >= %{plasma_version}
2015-11-28 15:30:07 +00:00
BuildRequires : cmake(Qt5Concurrent) >= 5.4.0
BuildRequires : cmake(Qt5DBus) >= 5.4.0
BuildRequires : cmake(Qt5Network) >= 5.4.0
BuildRequires : cmake(Qt5Qml) >= 5.4.0
BuildRequires : cmake(Qt5Quick) >= 5.4.0
BuildRequires : cmake(Qt5QuickWidgets) >= 5.4.0
BuildRequires : cmake(Qt5Script) >= 5.4.0
BuildRequires : cmake(Qt5Sql) >= 5.4.0
BuildRequires : cmake(Qt5Test) >= 5.4.0
BuildRequires : cmake(Qt5Widgets) >= 5.4.0
BuildRequires : cmake(Qt5X11Extras) >= 5.4.0
2015-12-16 16:39:56 +00:00
BuildRequires : cmake(ScreenSaverDBusInterface) >= %{plasma_version}
2015-11-28 15:30:07 +00:00
BuildRequires : cmake(dbusmenu-qt5)
2015-11-28 15:33:41 +00:00
BuildRequires : pkgconfig(libgps)
2015-03-19 02:23:14 +00:00
BuildRequires : pkgconfig(libqalculate)
2014-07-11 17:36:21 +00:00
BuildRequires : pkgconfig(sm)
BuildRequires : pkgconfig(x11)
2015-11-28 15:30:07 +00:00
BuildRequires : pkgconfig(xcb)
2015-11-28 16:36:04 +00:00
BuildRequires : pkgconfig(xcb-composite)
BuildRequires : pkgconfig(xcb-damage)
BuildRequires : pkgconfig(xcb-image)
BuildRequires : pkgconfig(xcb-randr)
BuildRequires : pkgconfig(xcb-shm)
2015-11-28 16:38:05 +00:00
BuildRequires : pkgconfig(xcb-util)
2015-11-28 16:36:04 +00:00
BuildRequires : pkgconfig(xcb-xfixes)
2014-07-11 17:36:21 +00:00
BuildRequires : pkgconfig(zlib)
2015-05-22 16:03:14 +00:00
Conflicts : kdebase4-workspace < 5.3.0
2015-09-08 14:51:02 +00:00
# Some files have been moved from kio-extras5 to plasma5-workspace in 5.4. This should prevent a possible file conflict. (boo#944656)
Conflicts : kio-extras5 < 15.08.0
2015-12-16 16:39:56 +00:00
Requires : %{name} -branding = %{plasma_version}
2015-01-15 15:09:29 +00:00
Requires : %{name} -libs = %{version} -%{release}
2014-07-11 17:36:21 +00:00
# used within startup
2015-12-16 16:39:56 +00:00
Requires : kde-cli-tools5 >= %{plasma_version}
2014-07-11 17:36:21 +00:00
Requires : kded
Requires : kdelibs4support
Requires : kinit
2015-12-16 16:39:56 +00:00
Requires : kscreenlocker >= %{plasma_version}
Requires : kwin5 >= %{plasma_version}
2015-04-11 00:50:50 +00:00
Requires : libqt5-qttools >= 5.4.0
2015-11-26 06:46:17 +00:00
# /usr/bin/startkde calls xprop
Requires : xprop
2014-07-11 17:36:21 +00:00
# contains default style, cursors, etc
2015-12-16 16:39:56 +00:00
Requires : breeze >= %{plasma_version}
2014-07-11 17:36:21 +00:00
# needed by krunner
2015-12-16 16:39:56 +00:00
Requires : milou5 >= %{plasma_version}
2014-07-11 17:36:21 +00:00
# heavily used by plasma
Requires : libqt5-qtquickcontrols
# battery applet
2015-12-16 16:39:56 +00:00
Requires : drkonqi5 >= %{plasma_version}
Requires : kglobalaccel5 >= %{plasma_version}
2014-07-11 17:36:21 +00:00
Requires : solid-imports
2014-08-05 18:03:11 +00:00
# dialog/platformtheme/etc
Requires : frameworkintegration-plugin
2015-12-16 16:39:56 +00:00
Requires : kscreen5 >= %{plasma_version}
Requires : libkscreen2-plugin >= %{plasma_version}
2015-01-16 16:21:32 +00:00
# boo#912317
2015-12-16 16:39:56 +00:00
Requires : oxygen5-sounds >= %{plasma_version}
2014-10-10 20:06:59 +00:00
# hardcode versions of plasma-framework-componets and plasma-framework-private packages, as upstream doesn't keep backwards compability there
2014-10-29 22:27:22 +00:00
%requires_ge plasma-framework-components
%requires_ge plasma-framework-private
2016-03-30 15:52:38 +00:00
Requires : kactivities5
2015-05-17 12:02:29 +00:00
Requires : kio-extras5
2014-07-11 17:36:21 +00:00
# notifications...
Recommends: phonon4qt5-backend
# people should be able to adjust desktop
Recommends: systemsettings5
2014-09-11 15:06:32 +00:00
# so Qt4-only apps have some colors in tray
Recommends: sni-qt
2014-10-25 17:22:40 +00:00
Recommends: %{name} -lang
2015-11-29 02:43:16 +00:00
Provides : xembed-sni-proxy = %{version}
Obsoletes : xembed-sni-proxy < %{version}
2014-07-11 17:36:21 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
This package contains the basic packages for a Plasma workspace.
2014-09-23 20:28:50 +00:00
%package branding-upstream
Summary : The KDE Plasma Workspace Components
Group : System/GUI/KDE
2015-12-16 16:39:56 +00:00
Provides : %{name} -branding = %{plasma_version}
2014-09-23 20:28:50 +00:00
Supplements: packageand(plasma5-workspace:branding-upstream)
Conflicts : otherproviders(%{name} -branding)
2016-06-13 14:09:10 +00:00
Requires : %{name} >= %{plasma_version}
2014-09-23 20:28:50 +00:00
%description branding-upstream
This package contains the basic packages for a Plasma workspace.
2014-08-06 18:50:21 +00:00
%package -n drkonqi5
Summary : KDE crash handler
Group : Development/Tools/Debuggers
%description -n drkonqi5
The KDE Crash Handler gives the user feedback if a program has crashed.
2014-09-11 15:06:32 +00:00
%package libs
Summary : The KDE Plasma Workspace Components
Group : Development/Libraries/KDE
2015-01-15 15:09:29 +00:00
%requires_ge libQt5Core5
%requires_ge libQt5DBus5
%requires_ge libQt5Gui5
%requires_ge libQt5Widgets5
%requires_ge libQt5X11Extras5
%requires_ge libksysguard5
%requires_ge libKF5CoreAddons5
%requires_ge libKF5WindowSystem5
%requires_ge libKF5Activities5
%requires_ge libKF5I18n5
%requires_ge kservice
%requires_ge kio
%requires_ge plasma-framework
2014-09-11 15:06:32 +00:00
%description libs
This package contains the basic packages for a K Desktop Environment
workspace.
2014-07-11 17:36:21 +00:00
%package devel
Summary : The KDE Plasma Workspace Components
Group : Development/Libraries/KDE
2015-01-15 15:09:29 +00:00
Requires : %{name} -libs = %{version} -%{release}
2015-12-16 16:39:56 +00:00
Requires : cmake(KF5SysGuard) >= %{plasma_version}
2016-06-16 20:54:44 +00:00
Requires : cmake(KF5Wayland) >= 5.15.0
Requires : cmake(Qt5Core) >= 5.4.0
Requires : cmake(Qt5Gui) >= 5.4.0
Requires : cmake(Qt5Quick) >= 5.4.0
2014-07-11 17:36:21 +00:00
Conflicts : kdebase4-workspace-devel
2014-07-11 17:39:45 +00:00
Provides : plasma-workspace5-devel = %{version}
Obsoletes : plasma-workspace5-devel <= %{version}
2016-06-16 20:54:44 +00:00
Conflicts : kapptemplate <= 16.03.80
2014-07-11 17:36:21 +00:00
%description devel
This package contains the basic packages for a K Desktop Environment
workspace. Development files.
2014-09-26 09:23:45 +00:00
%lang_package
2014-07-11 17:36:21 +00:00
%prep
2015-12-16 17:10:16 +00:00
%setup -q -n plasma-workspace-%{plasma_version}
2014-07-11 17:36:21 +00:00
%patch0 -p1
2014-08-26 08:46:46 +00:00
%patch1 -p1
2016-04-06 10:09:48 +00:00
%if 0%{?is_opensuse} || 0%{?suse_version} > 1315
2016-03-30 16:08:43 +00:00
%patch4 -p1
2016-04-06 10:09:48 +00:00
%endif
2014-07-11 17:36:21 +00:00
%build
2016-07-06 16:38:33 +00:00
%cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DKDE_DEFAULT_HOME=.kde4 -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
2014-07-11 17:36:21 +00:00
%make_jobs
%install
%kf5_makeinstall -C build
2016-07-06 16:38:33 +00:00
%if %{with lang}
%kf5_find_lang
%endif
2014-07-11 17:36:21 +00:00
install -p -D -m755 drkonqi/doc/examples/installdbgsymbols_suse.sh \
%{buildroot} /usr/bin/installdbgsymbols.sh
2016-06-16 20:54:44 +00:00
%suse_update_desktop_file -r %{buildroot} %{_kf5_applicationsdir}/org.kde.klipper.desktop System TrayIcon
mkdir -p %{buildroot} %{_kf5_iconsdir}/hicolor/48x48/apps/
cp %{_kf5_iconsdir}/breeze/apps/48/klipper.svg %{buildroot} %{_kf5_iconsdir}/hicolor/48x48/apps/
2014-07-11 17:36:21 +00:00
# we have a separate package for Plasma5 session
2014-09-11 16:53:15 +00:00
rm -rfv %{buildroot} %{_kf5_sharedir}/xsessions
2015-11-27 20:31:53 +00:00
rm -rfv %{buildroot} %{_kf5_sharedir}/wayland-sessions
2016-06-07 17:57:00 +00:00
%fdupes %{buildroot} /%{_prefix}
2014-07-11 17:36:21 +00:00
2015-11-27 20:31:53 +00:00
%post -p /sbin/ldconfig
2014-07-11 17:36:21 +00:00
%postun -p /sbin/ldconfig
2014-09-11 15:06:32 +00:00
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files libs
%defattr (-,root,root)
%doc COPYING*
%{_kf5_libdir}/libkworkspace5.so.*
%{_kf5_libdir}/libplasma-geolocation-interface.so.*
%{_kf5_libdir}/libtaskmanager.so.*
%{_kf5_libdir}/libweather_ion.so.*
2016-06-16 20:54:44 +00:00
%{_kf5_libdir}/liblegacytaskmanager.so.*
2014-09-11 15:06:32 +00:00
2014-07-11 17:36:21 +00:00
%files
%defattr (-,root,root)
%doc COPYING*
2015-11-27 20:31:53 +00:00
%{_kf5_bindir}/xembedsniproxy
2014-07-11 17:36:21 +00:00
%{_kf5_bindir}/kcheckrunning
%{_kf5_bindir}/kcminit
%{_kf5_bindir}/kcminit_startup
%{_kf5_bindir}/kdostartupconfig5
%{_kf5_bindir}/klipper
%{_kf5_bindir}/krunner
%{_kf5_bindir}/ksmserver
%{_kf5_bindir}/ksplashqml
%{_kf5_bindir}/kstartupconfig5
%{_kf5_bindir}/kuiserver5
%{_kf5_bindir}/plasmashell
2014-09-11 15:06:32 +00:00
%{_kf5_bindir}/plasmawindowed
2014-07-11 17:36:21 +00:00
%{_kf5_bindir}/startkde
2015-08-16 10:12:36 +00:00
%{_kf5_bindir}/startplasmacompositor
2014-07-11 17:36:21 +00:00
%{_kf5_bindir}/systemmonitor
%{_kf5_configdir}/autostart/org.kde.klipper.desktop
%{_kf5_configdir}/autostart/plasmashell.desktop
%{_kf5_configdir}/autostart/krunner.desktop
2015-11-27 20:31:53 +00:00
%{_kf5_configdir}/autostart/xembedsniproxy.desktop
2014-07-11 17:36:21 +00:00
%config %{_kf5_configdir}/plasmoids.knsrc
%config %{_kf5_configdir}/wallpaper.knsrc
2015-01-08 19:18:32 +00:00
%config %{_kf5_configdir}/taskmanagerrulesrc
2016-06-16 20:54:44 +00:00
%config %{_kf5_configdir}/legacytaskmanagerrulesrc
2014-07-11 17:36:21 +00:00
%dir %{_kf5_libdir}/libexec
%{_kf5_libdir}/libexec/ksyncdbusenv
2015-08-16 10:12:36 +00:00
%{_kf5_libdir}/libexec/startplasma
2014-07-11 17:36:21 +00:00
%{_kf5_libdir}/libkdeinit5_kcminit.so
%{_kf5_libdir}/libkdeinit5_kcminit_startup.so
%{_kf5_libdir}/libkdeinit5_klipper.so
%{_kf5_libdir}/libkdeinit5_ksmserver.so
%{_kf5_libdir}/libkdeinit5_kuiserver5.so
%{_kf5_plugindir}/
%{_kf5_qmldir}/
%{_kf5_applicationsdir}/org.kde.klipper.desktop
2014-09-11 15:06:32 +00:00
%{_kf5_applicationsdir}/plasma-windowed.desktop
2014-07-11 17:36:21 +00:00
%{_kf5_configkcfgdir}/freespacenotifier.kcfg
%{_kf5_sharedir}/dbus-1/services/kf5_org.kde.kuiserver.service
%{_kf5_sharedir}/dbus-1/services/org.kde.krunner.service
%{_kf5_sharedir}/desktop-directories/
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%doc %{_kf5_htmldir}/en/klipper/
2015-08-16 10:12:36 +00:00
%doc %{_kf5_htmldir}/en/kcontrol/
2014-07-11 17:36:21 +00:00
%{_kf5_notifydir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%{_kf5_sharedir}/ksmserver/
%{_kf5_sharedir}/ksplash/
%{_kf5_sharedir}/kstyle/
%{_kf5_plasmadir}/
%{_kf5_sharedir}/solid/
2015-08-16 10:12:36 +00:00
%{_kf5_sharedir}/kio_desktop/
2016-06-16 20:54:44 +00:00
%{_kf5_iconsdir}/hicolor/48x48/apps/klipper.svg
2014-07-11 17:36:21 +00:00
2014-08-06 18:50:21 +00:00
%files -n drkonqi5
%defattr (-,root,root)
%doc COPYING*
%{_kf5_bindir}/installdbgsymbols.sh
%dir %{_kf5_libdir}/libexec
%{_kf5_libdir}/libexec/drkonqi
%{_kf5_sharedir}/drkonqi/
2014-09-23 20:28:50 +00:00
%files branding-upstream
%defattr (-,root,root)
%doc COPYING*
2015-10-18 16:18:17 +00:00
%dir %{_kf5_sharedir}/sddm
%dir %{_kf5_sharedir}/sddm/themes
%{_kf5_sharedir}/sddm/themes/breeze/
2014-09-23 20:28:50 +00:00
2014-07-11 17:36:21 +00:00
%files devel
%defattr (-,root,root)
%doc COPYING*
2014-09-11 15:06:32 +00:00
%{_kf5_prefix}/include/kworkspace5/
%{_kf5_prefix}/include/plasma/
%{_kf5_prefix}/include/taskmanager/
2016-06-16 20:54:44 +00:00
%{_kf5_prefix}/include/legacytaskmanager/
2014-07-11 17:36:21 +00:00
%{_kf5_libdir}/cmake/KRunnerAppDBusInterface/
%{_kf5_libdir}/cmake/KSMServerDBusInterface/
%{_kf5_libdir}/cmake/LibKWorkspace/
%{_kf5_libdir}/cmake/LibTaskManager/
2016-06-16 20:54:44 +00:00
%{_kf5_libdir}/cmake/LibLegacyTaskManager/
2014-09-11 15:06:32 +00:00
%{_kf5_libdir}/libkworkspace5.so
2014-07-11 17:36:21 +00:00
%{_kf5_libdir}/libplasma-geolocation-interface.so
%{_kf5_libdir}/libtaskmanager.so
2016-06-16 20:54:44 +00:00
%{_kf5_libdir}/liblegacytaskmanager.so
2014-07-11 17:36:21 +00:00
%{_kf5_libdir}/libweather_ion.so
2016-06-16 20:54:44 +00:00
%{_kf5_sharedir}/kdevappwizard/
2014-07-11 17:36:21 +00:00
%{_kf5_sharedir}/dbus-1/interfaces/
2015-04-11 18:58:46 +00:00
%if %{with lang}
2016-07-06 16:38:33 +00:00
%files lang -f %{name}.lang
2016-06-30 17:04:39 +00:00
%doc %lang(ca) %{_kf5_htmldir}/ca/
2015-04-11 18:58:46 +00:00
%endif
2014-09-26 09:23:45 +00:00
2014-07-11 17:36:21 +00:00
%changelog