File clamtk-kde.spec of Package clamtk-kde
#
# spec file for package clamtk-kde
#
# Copyright (c) 2013 Sergei Lopatin <magist3r@gmail.com>
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: clamtk-kde
Version: 0.20
Release: 0
Summary: Dolphin integration plugin for ClamTk
# Old Url:
#Source: https://bitbucket.org/davem_/clamtk-kde/downloads/%%{name}-%%{version}.tar.xz
#URL: https://dave-theunsub.github.io/clamtk/
# New Url:
Source: https://github.com/dave-theunsub/clamtk-kde/archive/v%{version}/%{name}-%{version}.tar.gz
URL: https://github.com/dave-theunsub/clamtk-kde
Group: Productivity/Security
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: clamtk >= 5.00
BuildArch: noarch
%description
ClamTk is a GUI front-end for ClamAV using Gtk2-perl.
It is designed to be an easy-to-use, point and click virus scanner.
%if 0%{?suse_version} <= 1500
%package kde4
Summary: Clamtk-kde for kde4
Group: Productivity/Security
BuildRequires: kde4-filesystem
Requires: %{name} = %{version}
Conflicts: %{name}-kf5
#%%kde4_runtime_requires
%description kde4
ClamTk is a GUI front-end for ClamAV using Gtk2-perl.
It is designed to be an easy-to-use, point and click virus scanner.
This is for KDE4.
%endif
%package kf5
Summary: Clamtk-kde for kf5
Group: Productivity/Security
BuildRequires: kf5-filesystem
Requires: %{name} = %{version}
Conflicts: %{name}-kde4
#BuildRequires: pkgconfig(Qt5Core)
%description kf5
ClamTk is a GUI front-end for ClamAV using Gtk2-perl.
It is designed to be an easy-to-use, point and click virus scanner.
This is for KF5.
%prep
%setup -q
%build
%__gzip -dc clamtk-kde.1.gz > clamtk-kde.1
%__rm clamtk-kde.1.gz
%install
# kde4
%if 0%{?suse_version} <= 1500
%__install -D -m 0644 clamtk-kde.desktop "%{buildroot}%_kde4_servicesdir/clamtk-kde.desktop"
%__install -D -m 0644 clamtk-kde.png "%{buildroot}%_kde4_iconsdir/clamtk-kde.png"
%endif
# kde5
%__install -D -m 0644 clamtk-kde.desktop "%{buildroot}%_kf5_servicesdir/clamtk-kde.desktop"
%__install -D -m 0644 clamtk-kde.png "%{buildroot}%_kf5_iconsdir/clamtk-kde.png"
# both
%__install -D -m 0644 clamtk-kde.1 "%{buildroot}%{_mandir}/man1/clamtk-kde.1"
%files
%defattr(-,root,root)
%doc CHANGES LICENSE README.md
%doc %{_mandir}/man1/clamtk-kde.1%{ext_man}
%if 0%{?suse_version} <= 1500
%files kde4
%defattr(-,root,root)
%_kde4_iconsdir/clamtk-kde.png
%_kde4_servicesdir/clamtk-kde.desktop
%endif
%files kf5
%defattr(-,root,root)
%_kf5_iconsdir/clamtk-kde.png
%_kf5_servicesdir/clamtk-kde.desktop
%changelog