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) 2015 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
License:        GPL-2.0
Summary:        KDE Service Menu to Open a Terminal in the Current Directory as root
Url:            http://kde-apps.org/content/show.php/Open+Terminal+Here+As+Root?content=19311
Group:          System/GUI/KDE
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 KDE5 and xdg 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:  kf5-filesystem
Requires:       dolphin5
Requires:       konsole5
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
%setup -q -n OpenTerminalHereAsRoot
%patch0

%build

%install
install -Dpm 0644 OpenTerminalHereAsRoot.desktop %{buildroot}%{_kf5_servicesdir}/ServiceMenus/OpenTerminalHereAsRoot.desktop

%files
%defattr(-,root,root,-)
%doc gpl.txt readme.txt
%dir %{_kf5_servicesdir}/ServiceMenus
%{_kf5_servicesdir}/ServiceMenus/OpenTerminalHereAsRoot.desktop

%changelog
openSUSE Build Service is sponsored by