## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: hyprmod Version: 0.5.0 Release: %autorelease Summary: Native GTK4/libadwaita settings app for Hyprland License: GPL-3.0-or-later URL: https://github.com/BlueManCZ/hyprmod Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz # Extra sources for bundled wheels Source1: hyprland_config-0.9.19-py3-none-any.whl Source2: hyprland_monitors-0.9.0-py3-none-any.whl Source3: hyprland_schema-0.7.1-py3-none-any.whl Source4: hyprland_socket-0.12.2-py3-none-any.whl Source5: hyprland_state-0.4.7-py3-none-any.whl BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3dist(hatchling) BuildRequires: python3dist(installer) BuildRequires: gtk4-devel BuildRequires: libadwaita-devel Requires: gtk4 Requires: libadwaita Requires: lua Requires: (hyprland or hyprland-git) %description HyprMod is a native GTK4/libadwaita settings application for Hyprland. %prep %autosetup %build %pyproject_wheel %install %pyproject_install # Unpack bundled wheels into buildroot for whl in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do python3 -m installer --destdir="%{buildroot}" "$whl" done # Copy system metadata files to standard locations install -Dpm0644 \ %{buildroot}%{python3_sitelib}/hyprmod/data/applications/io.github.bluemancz.hyprmod.desktop \ %{buildroot}%{_datadir}/applications/io.github.bluemancz.hyprmod.desktop install -Dpm0644 \ %{buildroot}%{python3_sitelib}/hyprmod/data/icons/hicolor/scalable/apps/io.github.bluemancz.hyprmod.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/io.github.bluemancz.hyprmod.svg install -Dpm0644 \ %{buildroot}%{python3_sitelib}/hyprmod/data/metainfo/io.github.bluemancz.hyprmod.metainfo.xml \ %{buildroot}%{_metainfodir}/io.github.bluemancz.hyprmod.metainfo.xml # Save files list ONLY for the primary hyprmod package and manage the wheels in files otherwise we builderror %pyproject_save_files hyprmod %files -f "%{pyproject_files}" %license LICENSE %doc README.md %{_bindir}/hyprmod %{_datadir}/applications/io.github.bluemancz.hyprmod.desktop %{_datadir}/icons/hicolor/scalable/apps/io.github.bluemancz.hyprmod.svg %{_metainfodir}/io.github.bluemancz.hyprmod.metainfo.xml %{python3_sitelib}/hyprland_* %changelog ## START: Generated by rpmautospec * Wed Oct 07 2026 John Doe - 0.5.0-1 - Uncommitted changes ## END: Generated by rpmautospec