File kde-servicemenu-tuncel.spec of Package kde-servicemenu-tuncel
#
# spec file for package kde-servicemenu-tuncel
#
# 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-tuncel
Version: 2.1
Release: 0
Summary: KDE Service Menu for RPM Files
License: GPL-2.0-only
Group: System/GUI/KDE
URL: https://github.com/tarakbumba/tuncel/
Source0: https://github.com/tarakbumba/tuncel/releases/download/%{version}/tuncel-%{version}.tar.xz
# PATCH-FIX-OPENSUSE env-script-interpreter.patch asterios.dramis@gmail.com -- Fix "env-script-interpreter" rpmlint error
Patch0: env-script-interpreter.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cpio
BuildRequires: intltool
BuildRequires: kdialog
BuildRequires: kf6-filesystem
BuildRequires: konsole
BuildRequires: libtool
BuildRequires: python3-polib
BuildRequires: rpm-devel
Requires: cpio
Requires: dolphin
Requires: gettext-runtime
Requires: kdialog
Requires: konsole
Requires: rpm
Recommends: %{name}-lang = %{version}
BuildArch: noarch
%description
This package provides only the Plasma Dolphin service menu for tuncel.
tuncel is KDE4/Plasma Dolphin, Trinity Konqueror, Nautilus, Caja and Nemo
service menus for RPM
1. Show RPM Main Info
2. Show Package Content
3. Unpack RPM
4. Unpack RPM to Directory
5. Open RPM Url from Package in Web Browser
6. Make Test Install
7. Force Upgrade Test Install
8. Install Source package in Local RPM Build Enviroment
%lang_package
%prep
%autosetup -p1 -n tuncel-%{version}
%build
./autogen.sh
%configure \
--enable-plasma
%make_build
%install
%make_install
install -dm 0755 %{buildroot}%{_kf6_sharedir}/kio/servicemenus/
mv %{buildroot}%{_datadir}/kservices5/ServiceMenus/tuncel_plasma.desktop %{buildroot}%{_kf6_sharedir}/kio/servicemenus/
%find_lang tuncel
%files
%license COPYING
%doc ChangeLog.md README.md
%config %{_sysconfdir}/tuncel.conf
%{_kf6_bindir}/tuncel
%dir %{_kf6_sharedir}/kio
%dir %{_kf6_sharedir}/kio/servicemenus
%{_kf6_sharedir}/kio/servicemenus/tuncel_plasma.desktop
%files lang -f tuncel.lang
%changelog