Name: xdg-desktop-portal-hyprland Version: 1.3.11 Release: 1%{?dist} Summary: XDG Desktop Portal backend for Hyprland License: BSD-3-Clause URL: https://github.com/hyprwm/xdg-desktop-portal-hyprland Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: pkgconfig BuildRequires: hyprland-protocols-devel BuildRequires: hyprlang-devel BuildRequires: hyprutils-devel BuildRequires: hyprwayland-scanner BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(libspa-0.2) BuildRequires: pkgconfig(sdbus-c++) # hyprland-share-picker (Qt6) BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtwayland-devel BuildRequires: systemd-rpm-macros Requires: xdg-desktop-portal # Avoid “crash on screensharing” setups missing the Qt Wayland plugin (common issue) Requires: qt6-qtwayland # Optional: help satisfy “implementation” deps on some setups Provides: xdg-desktop-portal-impl = %{version}-%{release} %description xdg-desktop-portal-hyprland is an XDG Desktop Portal backend for Hyprland. It provides portal interfaces used by sandboxed and desktop applications, including screen sharing. %prep %autosetup -n %{name}-%{version} %build %cmake -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBEXECDIR=%{_prefix}/lib %cmake_build %install %cmake_install %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun %{name}.service %files %license LICENSE %doc README.md # main portal backend + picker %{_prefix}/lib/%{name} %{_bindir}/hyprland-share-picker # portal registration + dbus activation %{_datadir}/xdg-desktop-portal/portals/hyprland.portal %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.hyprland.service # config (shipped by XDPH; wiki references this path) %{_datadir}/xdg-desktop-portal/hyprland-portals.conf # systemd user unit %{_userunitdir}/%{name}.service %changelog %autochangelog