# # spec file for package dolphin # # Copyright (c) 2019 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 https://bugs.opensuse.org/ # %define kf5_version 5.26.0 # Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA) %{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} %bcond_without lang Name: dolphin Version: 19.04.2 Release: 0 Summary: KDE File Manager License: GPL-2.0-or-later Group: Productivity/File utilities URL: http://www.kde.org Source: dolphin-%{version}.tar.xz Source1: dolphinsu.desktop Patch0: dolphin-go_up.diff # PATCH-FIX-OPENSUSE Patch1: 0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch BuildRequires: baloo5-devel BuildRequires: baloo5-widgets-devel BuildRequires: extra-cmake-modules >= 1.6.0 BuildRequires: kactivities5-devel >= 5.7.0 BuildRequires: kbookmarks-devel >= 5.7.0 BuildRequires: kcmutils-devel >= 5.7.0 BuildRequires: kcompletion-devel >= 5.7.0 BuildRequires: kconfig-devel >= 5.7.0 BuildRequires: kcoreaddons-devel >= 5.7.0 BuildRequires: kcrash-devel BuildRequires: kdbusaddons-devel >= 5.7.0 BuildRequires: kdoctools-devel >= 5.7.0 BuildRequires: kfilemetadata5-devel BuildRequires: ki18n-devel >= 5.7.0 BuildRequires: kiconthemes-devel >= 5.7.0 BuildRequires: kinit-devel >= 5.7.0 BuildRequires: kio-devel >= 5.7.0 BuildRequires: knewstuff-devel >= 5.7.0 BuildRequires: knotifications-devel >= 5.7.0 BuildRequires: kparts-devel >= 5.7.0 BuildRequires: ktexteditor-devel >= 5.7.0 BuildRequires: kwindowsystem-devel >= 5.7.0 BuildRequires: phonon4qt5-devel BuildRequires: pkgconfig BuildRequires: solid-devel >= 5.7.0 BuildRequires: update-desktop-files BuildRequires: pkgconfig(Qt5Concurrent) >= 5.4.0 BuildRequires: pkgconfig(Qt5Core) >= 5.4.0 BuildRequires: pkgconfig(Qt5DBus) >= 5.4.0 BuildRequires: pkgconfig(Qt5Gui) >= 5.4.0 BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0 Requires: baloo5-kioslaves Requires: dolphin-part = %{version}-%{release} Recommends: kio-extras5 Recommends: konsole-part Obsoletes: dolphin5 %description This package contains the default file manager of KDE Workspaces. %package part Summary: KDE File Manager Group: Productivity/File utilities %requires_ge kio Recommends: %{name}-part-lang Obsoletes: dolphin5-part %description part This package contains the libraries used by Dolphin and Konqueror. %package -n libdolphinvcs5 Summary: KDE File Manager Group: Productivity/File utilities %description -n libdolphinvcs5 This package contains the libraries used by Dolphin and Konqueror. %package devel Summary: KDE File Manager Group: Productivity/File utilities Requires: libdolphinvcs5 = %{version} Obsoletes: dolphin5-devel < %{version} Provides: dolphin5-devel = %{version} %description devel This package contains the libraries used by Dolphin and Konqueror. %if %{with lang} %package -n %{name}-part-lang Summary: Translations for package %{name} Group: System/Localization Requires: %{name}-part = %{version} Supplements: packageand(bundle-lang-other:%{name}-part) Provides: %{name}-lang = %{version} Obsoletes: %{name}-lang < %{version} Provides: %{name}-part-lang-all = %{version} BuildArch: noarch %description -n %{name}-part-lang Provides translations for the "%{name}" package. %endif %prep %setup -q -n dolphin-%{version} %autopatch -p1 %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %if %{with lang} %find_lang %{name} --with-man --all-name %{kf5_find_htmldocs} %endif install -D -m 0644 %{SOURCE1} %{buildroot}%{_kf5_applicationsdir}/org.kde.dolphinsu.desktop %suse_update_desktop_file org.kde.dolphin System FileManager %post part -p /sbin/ldconfig %postun part -p /sbin/ldconfig %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n libdolphinvcs5 -p /sbin/ldconfig %postun -n libdolphinvcs5 -p /sbin/ldconfig %files %license COPYING* %doc README %dir %{_kf5_appstreamdir} %dir %{_kf5_htmldir} %dir %{_kf5_htmldir}/en %doc %lang(en) %{_kf5_htmldir}/en/dolphin/ %{_kf5_applicationsdir}/org.kde.dolphin.desktop %{_kf5_applicationsdir}/org.kde.dolphinsu.desktop %{_kf5_appstreamdir}/org.kde.dolphin.appdata.xml %{_kf5_bindir}/dolphin %{_kf5_bindir}/servicemenudeinstallation %{_kf5_bindir}/servicemenuinstallation %{_kf5_dbusinterfacesdir}/org.freedesktop.FileManager1.xml %{_kf5_libdir}/libkdeinit5_dolphin.so %{_kf5_sharedir}/dbus-1/services/org.kde.dolphin.FileManager1.service %files part %license COPYING* %doc README %config %{_kf5_configdir}/servicemenu.knsrc %dir %{_kf5_configkcfgdir} %dir %{_kf5_plugindir} %dir %{_kf5_servicesdir} %dir %{_kf5_servicetypesdir} %{_kf5_configkcfgdir}/dolphin_*.kcfg %{_kf5_libdir}/libdolphinprivate.so.* %{_kf5_plugindir}/dolphinpart.so %{_kf5_plugindir}/kcm_dolphin*.so %{_kf5_servicesdir}/dolphinpart.desktop %{_kf5_servicesdir}/kcmdolphingeneral.desktop %{_kf5_servicesdir}/kcmdolphinnavigation.desktop %{_kf5_servicesdir}/kcmdolphinservices.desktop %{_kf5_servicesdir}/kcmdolphinviewmodes.desktop %{_kf5_servicetypesdir}/fileviewversioncontrolplugin.desktop #{_kf5_sharedir}/dolphinpart/ %{_kf5_debugdir}/dolphin.categories %files -n libdolphinvcs5 %license COPYING* %doc README %{_kf5_libdir}/libdolphinvcs.so.* %files devel %license COPYING* %doc README %{_includedir}/dolphinvcs_export.h %{_kf5_cmakedir}/DolphinVcs/ %{_kf5_libdir}/libdolphinvcs.so %{_kf5_prefix}/include/Dolphin/ %{_kf5_prefix}/include/dolphin_export.h %if %{with lang} %files part-lang -f %{name}.lang %license COPYING* %dir %{_kf5_sharedir}/locale/fi/LC_SCRIPTS/ %lang(fi) %{_kf5_sharedir}/locale/fi/LC_SCRIPTS/dolphin/ %endif %changelog