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

#
# spec file for package kde-servicemenu-open_terminal_here_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_terminal_here_as_root
Version:        0.1
Release:        0
Summary:        KDE Service Menu to Open a Terminal in the Current Directory as root
License:        GPL-2.0-only
Group:          System/GUI/KDE
URL:            http://kde-apps.org/content/show.php/Open+Terminal+Here+As+Root?content=19311
Source0:        http://kde-apps.org/CONTENT/content-files/19311-OpenTerminalHereAsRoot.tar.gz
# PATCH-FIX-OPENSUSE kde-servicemenu-open_terminal_here_as_root.patch asterios.dramis@gmail.com -- Make it KDE6 compatible, make it work for locked directories also, fix icon, use kdesu instead of su in Exec entry, fix Color Scheme option with newer konsole, cosmetic improvements
Patch0:         kde-servicemenu-open_terminal_here_as_root.patch
BuildRequires:  kf6-filesystem
Requires:       dolphin
Requires:       konsole
BuildArch:      noarch

%description
Open Terminal Here As Root is a service menu for KDE and Dolphin to open a
terminal in the current directory as root.

%prep
%autosetup -n OpenTerminalHereAsRoot

%build

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

%files
%license gpl.txt
%doc readme.txt
%dir %{_kf6_sharedir}/kio
%dir %{_kf6_sharedir}/kio/servicemenus
%{_kf6_sharedir}/kio/servicemenus/OpenTerminalHereAsRoot.desktop

%changelog
openSUSE Build Service is sponsored by