Name: clambite Version: 2.0 Release: 3%{?dist} Summary: A modern ClamAV GUI for AV scans, using GTK4 and LibAdwaita License: MIT URL: https://github.com/JulienGrdn/ClamBite Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch # Core dependencies Requires: python3 Requires: python3-gobject Requires: gtk4 Requires: libadwaita Requires: hicolor-icon-theme # Application specific dependencies Requires: clamav Requires: clamav-freshclam %description ClamBite is a user-friendly graphical interface for ClamAV scan. It features a modern dashboard, database update logic, and scan reporting. Designed for GNOME and GTK4 desktops. %prep %autosetup -n ClamBite-%{version} %build # Nothing to build for pure python scripts %install # 1. Create directory structure mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps mkdir -p %{buildroot}%{_datadir}/applications # Note: per-user data (~/.config/clambite) is created by the app at first # run. %%install must never touch the build user's $HOME. # 2. Install Python source files to /usr/share/clambite/ install -m 644 clambite.py %{buildroot}%{_datadir}/%{name}/ install -m 644 ui.py %{buildroot}%{_datadir}/%{name}/ install -m 644 backend.py %{buildroot}%{_datadir}/%{name}/ install -m 644 parsers.py %{buildroot}%{_datadir}/%{name}/ # 3. Install the icon to the standard system path # (Ensure your source repository has a 'clambite.svg') install -m 644 clambite.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/clambite.svg # 4. Create executable wrapper in /usr/bin/ cat > %{buildroot}%{_bindir}/%{name} < %{buildroot}%{_datadir}/applications/%{name}.desktop <