Name: xdg-desktop-portal-hyprland Epoch: 1 Version: 1.3.11 Release: %autorelease -b3 Summary: XDG Desktop Portal backend for Hyprland # xdg-desktop-portal-hyprland: BSD-3-Clause # protocols/wlr-foreign-toplevel-management-unstable-v1.xml: HPND-sell-variant # protocols/wlr-screencopy-unstable-v1.xml: MIT License: BSD-3-Clause AND HPND-sell-variant AND MIT URL: https://github.com/hyprwm/xdg-desktop-portal-hyprland Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: hyprland-share-picker.1 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(hyprland-protocols) BuildRequires: pkgconfig(hyprlang) BuildRequires: pkgconfig(hyprutils) BuildRequires: pkgconfig(hyprwayland-scanner) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(sdbus-c++) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(wayland-scanner) Requires: dbus # required for Screenshot portal implementation Requires: grim Recommends: hyprpicker Requires: xdg-desktop-portal # required for hyprland-share-picker Requires: slurp Requires: qt6-qtwayland Enhances: hyprland Supplements: hyprland Supplements: hyprland-git %description An XDG Desktop Portal backend for Hyprland. It allows applications to interact with the Hyprland compositor through the standardized XDG Desktop Portal framework, enabling sandboxed applications (such as Flatpaks) to properly integrate with the desktop environment by providing portal services such as screen sharing and other system services. %prep %autosetup -p1 %build %cmake -DCMAKE_BUILD_TYPE=Release %cmake_build %install %cmake_install install -Dpm644 %{SOURCE1} -t %{buildroot}%{_mandir}/man1 %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %files %license LICENSE %doc README.md %{_bindir}/hyprland-share-picker %{_mandir}/man1/hyprland-share-picker.1* %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.hyprland.service %{_datadir}/xdg-desktop-portal/portals/hyprland.portal %{_libexecdir}/%{name} %{_userunitdir}/%{name}.service %changelog %autochangelog