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

#
# spec file for package kde-servicemenu-copypath
#
# 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-copypath
Version:        0.3
Release:        0
Summary:        KDE Service Menu to Put the Path of a File or Directory Into the Klipper Queue
License:        GPL-3.0-only
Group:          System/GUI/KDE
URL:            http://kde-apps.org/content/show.php/Copy+file+or+directory+path?content=112873
Source0:        http://kde-apps.org/CONTENT/content-files/112873-CopyPath.desktop
# PATCH-FIX-OPENSUSE kde-servicemenu-copypath.patch asterios.dramis@gmail.com -- Make it KDE6 compatible
Patch0:         kde-servicemenu-copypath.patch
BuildRequires:  kf6-filesystem
Requires:       dbus-1
Requires:       dolphin
BuildArch:      noarch

%description
kde-servicemenu-copypath is a KDE service menu to put the path of a file or
directory into the Klipper queue.

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

%build

%install
install -Dpm 0644 112873-CopyPath.desktop %{buildroot}%{_kf6_sharedir}/kio/servicemenus/copypath.desktop

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

%changelog
openSUSE Build Service is sponsored by