# SPDX-License-Identifier: MIT # ============================================================================= # Version definitions # ============================================================================= %global hyprpolkitagent_version 0.1.3 %global hyprland_min_ver 0.54.2 %global hyprutils_ver 0.11.0 Name: hyprpolkitagent Version: %{hyprpolkitagent_version} Release: 3%{?dist} Summary: Hyprland polkit authentication agent License: BSD-3-Clause URL: https://github.com/hyprwm/hyprpolkitagent # Main source Source0: https://github.com/hyprwm/hyprpolkitagent/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Vendored Hyprland libs Source10: https://github.com/hyprwm/hyprutils/archive/refs/tags/v%{hyprutils_ver}.tar.gz#/hyprutils-%{hyprutils_ver}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: pkgconf-pkg-config BuildRequires: pixman-devel BuildRequires: polkit-devel BuildRequires: polkit-qt6-1-devel BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtdeclarative-devel Requires: hyprland >= %{hyprland_min_ver} Requires: polkit Requires: polkit-qt6-1 Requires: qt6-qtbase Requires: qt6-qtdeclarative %description hyprpolkitagent is a polkit authentication agent for Hyprland written in C++ with a Qt6 Quick/QML graphical interface. This package uses vendored Hyprland libraries installed by the hyprland package at /usr/libexec/hyprland/vendor/. %prep %autosetup -n %{name}-%{version} # Unpack vendored deps tar -xzf %{SOURCE10} %build VENDOR_PREFIX="$(pwd)/vendor" export PKG_CONFIG_PATH="$VENDOR_PREFIX/lib64/pkgconfig:$VENDOR_PREFIX/lib/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig" export CMAKE_PREFIX_PATH="$VENDOR_PREFIX" # 1) hyprutils pushd hyprutils-%{hyprutils_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" -DCMAKE_INSTALL_LIBDIR=lib64 cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # 2) hyprpolkitagent VENDOR_RPATH='%{_libexecdir}/hyprland/vendor/lib64:%{_libexecdir}/hyprland/vendor/lib' cmake -B build \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" \ -DCMAKE_INSTALL_RPATH="$VENDOR_RPATH" \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON cmake --build build --parallel %{_smp_build_ncpus} %install DESTDIR=%{buildroot} cmake --install build %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun %{name}.service %files %license LICENSE %doc README.md %{_libexecdir}/%{name} %{_userunitdir}/%{name}.service %{_datadir}/dbus-1/services/org.hyprland.hyprpolkitagent.service %changelog * Tue Mar 17 2026 Automated Build - 0.54.2-1 - Update to Hyprland 0.54.2 * Mon Mar 16 2026 Automated Build - 0.54.2-1 - Update to Hyprland 0.54.2 * Mon Mar 16 2026 Automated Build - 0.54.2-1 - Update to Hyprland 0.54.2 * Mon Mar 16 2026 Automated Build - 0.54.2-1 - Update to Hyprland 0.54.2 * Mon Mar 16 2026 Automated Build - 0.1.3-1 - Initial package for jwpkg/Hyprland-Fedora COPR