-%define kdeappsver 18.12.0
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 23.04.1
+%define kframever 5.94.0
+%define qtver 5.15.2
%define kaname dolphin
Summary: File manager
Name: ka5-%{kaname}
-Version: 18.12.0
+Version: 23.04.1
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: b69d59ae2de93fe9213acca858d6a83d
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 06bf08202bc439e9b28ed7e3c8215db3
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: cmake >= 2.8.12
-BuildRequires: kf5-extra-cmake-modules >= 5.53.0
-BuildRequires: kf5-kbookmarks-devel
-BuildRequires: kf5-kcompletion-devel
-BuildRequires: kf5-kconfig-devel
-BuildRequires: kf5-kconfigwidgets-devel
-BuildRequires: kf5-kcoreaddons-devel
-BuildRequires: kf5-kdelibs4support-devel
-BuildRequires: kf5-kdoctools-devel
-BuildRequires: kf5-kemoticons-devel
-BuildRequires: kf5-kguiaddons-devel
-BuildRequires: kf5-ki18n-devel
-BuildRequires: kf5-kiconthemes-devel
-BuildRequires: kf5-kinit-devel
-BuildRequires: kf5-kio-devel
-BuildRequires: kf5-kitemmodels-devel
-BuildRequires: kf5-knotifications-devel
-BuildRequires: kf5-knotifyconfig-devel
-BuildRequires: kf5-kparts-devel
-BuildRequires: kf5-kpty-devel
-BuildRequires: kf5-kservice-devel
-BuildRequires: kf5-ktextwidgets-devel
-BuildRequires: kf5-kwidgetsaddons-devel
-BuildRequires: kf5-kwindowsystem-devel
-BuildRequires: kf5-kxmlgui-devel
+BuildRequires: kf5-extra-cmake-modules >= %{kframever}
+BuildRequires: kf5-kbookmarks-devel >= %{kframever}
+BuildRequires: kf5-kcmutils-devel >= %{kframever}
+BuildRequires: kf5-kcompletion-devel >= %{kframever}
+BuildRequires: kf5-kconfig-devel >= %{kframever}
+BuildRequires: kf5-kconfigwidgets-devel >= %{kframever}
+BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
+BuildRequires: kf5-kdelibs4support-devel >= %{kframever}
+BuildRequires: kf5-kdoctools-devel >= %{kframever}
+BuildRequires: kf5-kemoticons-devel >= %{kframever}
+BuildRequires: kf5-kguiaddons-devel >= %{kframever}
+BuildRequires: kf5-ki18n-devel >= %{kframever}
+BuildRequires: kf5-kiconthemes-devel >= %{kframever}
+BuildRequires: kf5-kinit-devel >= %{kframever}
+BuildRequires: kf5-kio-devel >= %{kframever}
+BuildRequires: kf5-kitemmodels-devel >= %{kframever}
+BuildRequires: kf5-knewstuff-devel >= %{kframever}
+BuildRequires: kf5-knotifications-devel >= %{kframever}
+BuildRequires: kf5-knotifyconfig-devel >= %{kframever}
+BuildRequires: kf5-kparts-devel >= %{kframever}
+BuildRequires: kf5-kpty-devel >= %{kframever}
+BuildRequires: kf5-kservice-devel >= %{kframever}
+BuildRequires: kf5-ktextwidgets-devel >= %{kframever}
+BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever}
+BuildRequires: kf5-kwindowsystem-devel >= %{kframever}
+BuildRequires: kf5-kxmlgui-devel >= %{kframever}
+BuildRequires: ninja
BuildRequires: qt5-build >= %{qtver}
BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: ruby-test-unit
BuildRequires: tar >= 1:1.22
BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Features
-• Navigation (or breadcrumb) bar for URLs, allowing you to quickly
- navigate through the hierarchy of files and folders.
-• Supports
- several different kinds of view styles and properties and allows you
- to configure the view exactly how you want it.
-• Split view, allowing you to easily copy or move files between locations.
-• Additional information and shortcuts are available as dock-able panels,
- allowing you to move them around freely and display exactly what you want.
-• Multiple tab support
-• Informational dialogues are displayed in an unobtrusive way.
-• Undo/redo support
-• Transparent network access through the KIO system.
+• Navigation (or breadcrumb) bar for URLs, allowing you to quickly
+navigate through the hierarchy of files and folders. • Supports
+several different kinds of view styles and properties and allows you
+to configure the view exactly how you want it. • Split view,
+allowing you to easily copy or move files between locations. •
+Additional information and shortcuts are available as dock-able
+panels, allowing you to move them around freely and display exactly
+what you want. • Multiple tab support • Informational dialogues
+are displayed in an unobtrusive way. • Undo/redo support •
+Transparent network access through the KIO system.
%description -l pl.UTF-8
-Dolphin - zarządca plików KDE.
+Dolphin to lekki zarządca plików. Zaprojektowany jako łatwy w
+użyciu, choć zapewniający elastyczność i możliwości
+konfiguracji. To znaczy, że możesz go używać dokładnie, tak
+jakbyś chciał.
+
+Cechy
+
+• Pasek nawigacyjny dla URLi pozwalający na szybkie przemieszczanie
+się wśród hierarchi plików i folderów • Wspiera wiele różnych
+rodzajów przeglądania plików pozwalając skonfigurować podgląd
+tak jak sobie tego życzysz • Podzielony widok do łatwego
+kopiowania i przenoszenia plików między lokacjami • Dodatkowe
+informacje i skróty klawiszowe są dostępne jako dokowalne panele,
+pozwalając przemieszczać się do woli i wyświetlać to co chcesz
+• Wiele kart • Informacyjne okna dialogowe nie drażnią
+użytkownika • Wsparcie dla Cofnij/Powtórz • Przeźroczysty
+dostęp do sieci korzystający z systemu KIO.
%package devel
Summary: Header files for %{kaname} development
%build
install -d build
cd build
+RUBYLIB=%{_datadir}/gems/gems/test-unit-3.2.3/lib
+export RUBYLIB
%cmake \
+ -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
+ -DHTML_INSTALL_DIR=%{_kdedocdir} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
..
-%{__make}
+%ninja_build
+
+%if %{with tests}
+ctest
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} -C build install \
- DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
+rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/sr
+rm -rf $RPM_BUILD_ROOT%{_localedir}/ie
%find_lang %{kaname} --all-name --with-kde
%clean
%files -f %{kaname}.lang
%defattr(644,root,root,755)
-/etc/xdg/dolphin.categories
-/etc/xdg/servicemenu.knsrc
%attr(755,root,root) %{_bindir}/dolphin
-%attr(755,root,root) %{_bindir}/servicemenudeinstallation
-%attr(755,root,root) %{_bindir}/servicemenuinstallation
+%attr(755,root,root) %{_bindir}/servicemenuinstaller
%ghost %{_libdir}/libdolphinprivate.so.5
%{_libdir}/libdolphinprivate.so.5.*.*
%ghost %{_libdir}/libdolphinvcs.so.5
%{_libdir}/libdolphinvcs.so.5.*.*
-%{_libdir}/libkdeinit5_dolphin.so
-%{_libdir}/qt5/plugins/dolphinpart.so
-%{_libdir}/qt5/plugins/kcm_dolphingeneral.so
-%{_libdir}/qt5/plugins/kcm_dolphinnavigation.so
-%{_libdir}/qt5/plugins/kcm_dolphinservices.so
-%{_libdir}/qt5/plugins/kcm_dolphinviewmodes.so
%{_desktopdir}/org.kde.dolphin.desktop
%{_datadir}/config.kcfg/dolphin_compactmodesettings.kcfg
%{_datadir}/config.kcfg/dolphin_detailsmodesettings.kcfg
%{_datadir}/config.kcfg/dolphin_versioncontrolsettings.kcfg
%{_datadir}/dbus-1/interfaces/org.freedesktop.FileManager1.xml
%{_datadir}/dbus-1/services/org.kde.dolphin.FileManager1.service
-%{_datadir}/kservices5/dolphinpart.desktop
-%{_datadir}/kservices5/kcmdolphingeneral.desktop
-%{_datadir}/kservices5/kcmdolphinnavigation.desktop
-%{_datadir}/kservices5/kcmdolphinservices.desktop
-%{_datadir}/kservices5/kcmdolphinviewmodes.desktop
-%{_datadir}/kservicetypes5/fileviewversioncontrolplugin.desktop
%{_datadir}/metainfo/org.kde.dolphin.appdata.xml
+%{_datadir}/kglobalaccel/org.kde.dolphin.desktop
+%{_datadir}/qlogging-categories5/dolphin.categories
+%{_datadir}/knsrcfiles/servicemenu.knsrc
+%{systemduserunitdir}/plasma-dolphin.service
+%{_libdir}/qt5/plugins/kf5/parts/dolphinpart.so
+%{_datadir}/config.kcfg/dolphin_contextmenusettings.kcfg
+%dir %{_libdir}/qt5/plugins/dolphin
+%dir %{_libdir}/qt5/plugins/dolphin/kcms
+%{_libdir}/qt5/plugins/dolphin/kcms/kcm_dolphingeneral.so
+%{_libdir}/qt5/plugins/dolphin/kcms/kcm_dolphinnavigation.so
+%{_libdir}/qt5/plugins/dolphin/kcms/kcm_dolphinviewmodes.so
+%{_datadir}/kconf_update/dolphin_detailsmodesettings.upd
+%dir %{_datadir}/dolphin
+%{_datadir}/dolphin/dolphinpartactions.desktop
+%{zsh_compdir}/_dolphin
%files devel
%defattr(644,root,root,755)