File rootactions-servicemenu.spec of Package rootactions-servicemenu
#
# spec file for package rootactions-servicemenu
#
# Copyright (c) 2016 Pauline Emily <vilene@posteo.net>
#
# 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 http://bugs.opensuse.org/
#
Name: rootactions-servicemenu
Version: 2.9.1
Release: 0
Summary: Dolphin service menu to do several actions as root
Group: Productivity/File utilities
License: GPL-2.0+
URL: https://www.linux-apps.com/content/show.php?content=48411
Source: rootactions_servicemenu_%{version}.tar.gz
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildArch: noarch
BuildRequires: kf5-filesystem
BuildRequires: update-desktop-files
Requires: ark
Requires: dolphin-part
Requires: kde-cli-tools5
Requires: kdialog
Requires: mimehandler(text/plain)
Requires: perl
Recommends: krename
Recommends: xdg-utils
Suggests: kwrite
%description
Root Actions servicemenu provides a convenient way to perform several actions
'as root', from the right-click context menu in KDE filemanagers.
%prep
%setup -q -n rootactions_servicemenu_%{version}
%build
sed -i 's,Exec=,&%{_kf5_servicesdir}/ServiceMenus/%{name}/,g' \
Root_Actions_%{version}/dolphin-KDE4/*.desktop
%install
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus/%{name}
install -m 755 Root_Actions_%{version}/rootactions-servicemenu.pl \
%{buildroot}%{_kf5_servicesdir}/ServiceMenus/%{name}/
install -m 644 Root_Actions_%{version}/dolphin-KDE4/*.desktop \
%{buildroot}%{_kf5_servicesdir}/ServiceMenus/
install -m 755 Root_Actions_%{version}/krusader-KDE4/krusader_rootactions.xml \
%{buildroot}%{_kf5_servicesdir}/ServiceMenus/%{name}/
%suse_update_desktop_file %{buildroot}%{_kf5_servicesdir}/ServiceMenus/10-rootactionsfolders.desktop
%suse_update_desktop_file %{buildroot}%{_kf5_servicesdir}/ServiceMenus/11-rootactionsfiles.desktop
%files
%defattr(-,root,root)
%doc changelog GPL-2 README
%{_kf5_servicesdir}/ServiceMenus
%changelog