Name: hungryipscanner Version: 1.0 Release: 2%{?dist} Summary: A simple utility for scanning IP addresses over the local network License: MIT URL: https://github.com/JulienGrdn/hungryipscanner Source0: %{url}/archive/main.tar.gz BuildArch: noarch # System dependencies Requires: python3 Requires: gtk4 Requires: libadwaita Requires: python3-gobject Requires: hicolor-icon-theme %description Hungry IP Scanner is a simple utility for scanning IP addresses over the local network. It provides a GUI built with GTK 4 and Libadwaita to display active hosts on the network. %prep %autosetup -n hungryipscanner-main %build # Nothing to build for a pure Python script %install # 1. Install the main script mkdir -p %{buildroot}%{_bindir} install -m 0755 hungryipscanner.py %{buildroot}%{_bindir}/hungryipscanner # 2. Install the icon mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps install -m 0644 hungryipscanner.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/hungryipscanner.svg # 3. Create a Desktop Entry so it appears in the App Menu mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/hungryipscanner.desktop <