File kde-servicemenu-open_dolphin_as_root.spec of Package kde-servicemenu-open_dolphin_as_root

#
# spec file for package kde-servicemenu-open_dolphin_as_root
#
# Copyright (c) 2024 Asterios Dramis <asterios.dramis@gmail.com>.
#
# 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.


Name:           kde-servicemenu-open_dolphin_as_root
Version:        0.1
Release:        0
Summary:        KDE service menu to open Dolphin as root
License:        GPL-3.0-only
Group:          System/GUI/KDE
URL:            http://kde-apps.org/content/show.php/Open+Dolphin+as+Root?content=102548
Source0:        http://kde-apps.org/CONTENT/content-files/102548-open_as_root.desktop
# PATCH-FIX-OPENSUSE kde-servicemenu-open_dolphin_as_root.patch asterios.dramis@gmail.com -- Make it KDE6 compatible, fix icon, cosmetic improvements
Patch0:         kde-servicemenu-open_dolphin_as_root.patch
BuildRequires:  kf6-filesystem
Requires:       dolphin
BuildArch:      noarch

%description
Open Dolphin as Root is a basic service menu for KDE and Dolphin which will
create an Open as Root menu when right-clicking directories.

%prep
%autosetup -N -c -T -n %{name}-%{version}
cp -a %{SOURCE0} %{_builddir}/%{name}-%{version}
%autopatch

%build

%install
install -Dpm 0644 102548-open_as_root.desktop %{buildroot}%{_kf6_sharedir}/kio/servicemenus/open_as_root.desktop

%files
%dir %{_kf6_sharedir}/kio
%dir %{_kf6_sharedir}/kio/servicemenus
%{_kf6_sharedir}/kio/servicemenus/open_as_root.desktop

%changelog
openSUSE Build Service is sponsored by