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

#
# spec file for package kde-servicemenu-komparetwo
#
# 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-komparetwo
Version:        0.4
Release:        0
Summary:        KDE Service Menu to Compare Files/Folders Using Kompare
License:        GPL-3.0-only
Group:          System/GUI/KDE
URL:            http://www.rockerssoft.org/komparetwo/
Source0:        http://www.rockerssoft.org/komparetwo/komparetwo-%{version}.tar.gz
# PATCH-FIX-OPENSUSE kde-servicemenu-komparetwo.patch asterios.dramis@gmail.com -- Make it KDE6 compatible, make it work correctly without using the external script, make it work only for plain text files, cosmetic improvements
Patch0:         kde-servicemenu-komparetwo.patch
BuildRequires:  kf6-filesystem
Requires:       dolphin
Requires:       kompare
BuildArch:      noarch

%description
A service menu for KDE that allows you to select two files/folders and compare
those files/folders in kompare. Kompare is a KDE frontend to the Open Source
diff application.

%prep
%autosetup -p1 -n komparetwo

%build

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

%files
%doc README
%dir %{_kf6_sharedir}/kio
%dir %{_kf6_sharedir}/kio/servicemenus
%{_kf6_sharedir}/kio/servicemenus/komparetwo*

%changelog
openSUSE Build Service is sponsored by