File kde-servicemenu-cleanbak.spec of Package kde-servicemenu-cleanbak
#
# spec file for package kde-servicemenu-cleanbak
#
# 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-cleanbak
Version: 1.0.2
Release: 0
Summary: KDE Service Menu to Clean Backup Files
License: GPL-2.0-or-later
Group: System/GUI/KDE
URL: https://www.linux-apps.com/p/998085
Source0: 13685-cleanbak-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE kde-servicemenu-cleanbak.patch asterios.dramis@gmail.com -- Make it KDE6, added 2 scripts to be used by the service menu instead of using commands inside the desktop file, use correct icons, cosmetic improvements
Patch0: kde-servicemenu-cleanbak.patch
BuildRequires: kf6-filesystem
Requires: dolphin
Requires: kde-cli-tools6
BuildArch: noarch
%description
This servicemenu contains two actions for directories:
"Delete backup files": deletes all files matching *~ in the selected
directories.
"Move backup files to Trash": moves all files matching *~ to the Trash.
%prep
%autosetup -p1 -n cleanbak-%{version}
%build
%install
install -Dpm 0755 cleanbak_del.sh %{buildroot}%{_kf6_bindir}/cleanbak_del.sh
install -Dpm 0755 cleanbak_trash.sh %{buildroot}%{_kf6_bindir}/cleanbak_trash.sh
install -Dpm 0644 cleanbak.desktop %{buildroot}%{_kf6_sharedir}/kio/servicemenus/cleanbak.desktop
%files
%license COPYING
%doc ChangeLog README
%{_kf6_bindir}/cleanbak_*
%dir %{_kf6_sharedir}/kio
%dir %{_kf6_sharedir}/kio/servicemenus
%{_kf6_sharedir}/kio/servicemenus/cleanbak.desktop
%changelog