%global commit YOUR_NEW_COMMIT_HASH %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: apex-updater Version: 1.0 Release: 1%{?dist} Summary: Native GTK4 System Updater for Apex Linux License: GPLv3 URL: https://github.com/Apex-Linux/apex-core-tools Source0: https://github.com/Apex-Linux/apex-core-tools/archive/%{commit}.tar.gz BuildRequires: gcc BuildRequires: meson BuildRequires: ninja-build BuildRequires: gtk4-devel BuildRequires: libadwaita-devel Requires: gtk4 Requires: libadwaita Requires: dnf %description A native C/GTK4 application that checks for system updates via DNF. %prep %setup -q -n apex-core-tools-%{commit} # 2. Organize files for the build mv apex-apps/apex-updater/meson.build . mv apex-apps/apex-updater/apex-updater.desktop . mv apex-apps/apex-updater/assets . mv apex-apps/apex-updater/src . %build %meson %meson_build %install %meson_install %files /usr/bin/apex-updater /usr/share/applications/apex-updater.desktop %dir /usr/share/apex-linux %dir /usr/share/apex-linux/assets /usr/share/apex-linux/assets/logo.png /usr/share/apex-linux/assets/icon1.png /usr/share/apex-linux/assets/icon.png %changelog * Wed Feb 04 2026 Apex Team - 1.0-1 - Fixed build structure