# SPDX-FileCopyrightText: 2026 Juha Heljoranta # SPDX-License-Identifier: Apache-2.0 Name: python3-inhibit Version: 0.1.0 Release: 1%{?dist} Summary: System suspend inhibitor License: Apache-2.0 URL: https://codeberg.org/jooth/inhibit Source0: %{url}/archive/inhibit-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-uv-build Requires: python3-dbus Requires: systemd %global _description %{expand: Systemd Inhibitor - Prevent system shutdowns and sleep states via stdin ON/OFF commands. This script creates a systemd inhibitor that can be controlled via standard input.} %description %_description %prep %autosetup -p1 -n inhibit %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l inhibit %check %files -n python3-inhibit -f %{pyproject_files} %doc README.md %{_bindir}/inhibit %changelog %autochangelog