File servicemenu-pdf.spec of Package servicemenu-pdf
#
# spec file for package servicemenu-pdf
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 https://bugs.opensuse.org/
#
Name: servicemenu-pdf
Version: 2.3
Release: 0
Summary: Service menus for Dolphin
License: GPL-3.0-or-later
Group: Productivity/Publishing/PDF
URL: https://www.opendesktop.org/p/1227799/
Source: kde-service-menu-pdf_%{version}_all.tar.gz
BuildRequires: kf5-filesystem
BuildRequires: update-desktop-files
Recommends: ghostscript-library
Recommends: pd2djvu
Recommends: poppler-tools
Recommends: texlive-pdfjam-bin
BuildArch: noarch
%description
Various Service Menus for manipulate PDF documents
%prep
%setup -q -n kde-service-menu-pdf_%{version}_all
%build
sed -i 's#Exec=\(.*[ ]\)#Exec=%{_kf5_servicesdir}/ServiceMenus/%{name}/\1#g' ServiceMenus/*.desktop
%install
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus/%{name}
install -m 755 bin/* %{buildroot}%{_kf5_servicesdir}/ServiceMenus/%{name}/
install -m 644 ServiceMenus/*.desktop %{buildroot}%{_kf5_servicesdir}/ServiceMenus/
%suse_update_desktop_file %{buildroot}%{_kf5_servicesdir}/ServiceMenus/*.desktop
%files
%license doc/copyright
%doc doc/changelog doc/README
%dir %{_kf5_servicesdir}/ServiceMenus
%{_kf5_servicesdir}/ServiceMenus/%{name}/
%{_kf5_servicesdir}/ServiceMenus/*.desktop
%changelog