File clamav-gui.spec of Package clamav-gui

#
# spec file for package clamav-gui
#
# Copyright (c) 2025 SUSE LLC
#
# 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:           clamav-gui
Summary:        Front-End for ClamAV
Version:        1.1.5
Release:        0
URL:            https://github.com/wusel1007/clamav-gui
Source0:        https://github.com/wusel1007/clamav-gui/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         clamav-gui-translation_doc.patch
Patch1:         clamav-gui-linking.patch
License:        GPL-3.0
Group:          Productivity/Security
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(Qt6Core)
BuildRequires:  pkgconfig(Qt6Core5Compat)
BuildRequires:  pkgconfig(Qt6Gui)
BuildRequires:  pkgconfig(Qt6Network)
BuildRequires:  pkgconfig(Qt6Widgets)
Requires:       clamav
Recommends:     %{name}-lang = %{version}

%description
This application provides a graphical user interface for clamav
and freshclam with an integrated service menu for Konqueror/Dolphin
to scan files directly from your file manager.

Requirements:
  clamav
  freshclam

%lang_package

%prep
%autosetup -p0
pushd translations
find ./ -depth -name '*gui*' -execdir bash -c 'mv -- "$1" "${1//gui-/gui_}"' bash {} \;
popd

%build
%qmake6
%make_build

%install
%qmake6_install

%find_lang %{name} --with-qt

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/ClamAV-GUI.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%dir %{_datadir}/kservices5
%dir %{_datadir}/kservices5/ServiceMenus
%{_datadir}/kservices5/ServiceMenus/ClamAV-GUI-ServiceMenu.desktop
%dir %{_datadir}/man/da_DK
%dir %{_datadir}/man/da_DK/man1
%dir %{_datadir}/man/en
%dir %{_datadir}/man/en/man1
%if 0%{?sle_version} == 150600 && 0%{?is_opensuse}
%dir %{_datadir}/man/uk
%dir %{_datadir}/man/uk/man1
%endif
%{_datadir}/man/*/man1/clamav-gui.1%{?ext_man}

%files lang -f %{name}.lang
%dir %{_datadir}/clamav-gui
%dir %{_datadir}/clamav-gui/translations

%changelog
openSUSE Build Service is sponsored by