File hyprpolkitagent.spec of Package hyprpolkitagent
#
# spec file for package hyprpolkitagent
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: hyprpolkitagent
Version: 0.1.1
Release: 0
Summary: A Qt/QML-based polkit authentication agent for Hyprland
License: BSD-3-Clause
URL: https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent/
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM https://github.com/hyprwm/hyprpolkitagent/pull/19
Patch0: no-kde-dependency.patch
# PATCH-FIX-UPSTREAM https://github.com/hyprwm/hyprpolkitagent/pull/3
Patch1: Add_install_section.patch
BuildRequires: cmake
BuildRequires: pkgconfig(hyprutils)
BuildRequires: pkgconfig(polkit-qt6-1)
BuildRequires: pkgconfig(Qt6Quick)
BuildRequires: pkgconfig(Qt6QuickControls2)
BuildRequires: pkgconfig(Qt6Widgets)
%description
hyprpolkitagent is a polkit authentication daemon. It is required for GUI
applications to be able to request elevated privileges.
%prep
%autosetup -p1
%build
%cmake \
-D CMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md
%{_userunitdir}/hyprpolkitagent.service
%{_libexecdir}/hyprpolkitagent
%{_datadir}/dbus-1/services/hyprpolkitagent.service
%changelog