%global sdbus_version 2.0.0 Name: xdg-desktop-portal-hyprland Epoch: 1 Version: 1.3.8 Release: %autorelease Summary: xdg-desktop-portal backend for hyprland License: BSD-3-Clause URL: https://github.com/hyprwm/xdg-desktop-portal-hyprland Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source: https://github.com/Kistler-Group/sdbus-cpp/archive/v%{sdbus_version}/sdbus-%{sdbus_version}.tar.gz Patch: revert-c5b309.patch 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(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-legacyrenderer Supplements: hyprland-git Provides: bundled(sdbus-cpp) = %{sdbus_version} %description %{summary}. %prep %autosetup -N %if %{fedora} < 41 %patch -P 0 -p1 sed -i '/libpipewire/s/>=1.1.82//' CMakeLists.txt %endif tar -xf %{SOURCE1} -C subprojects/sdbus-cpp --strip=1 %build %cmake -DBUILD_SHARED_LIBS:BOOL=OFF %cmake_build %install %cmake_install %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %files %license LICENSE %doc README.md %{_bindir}/hyprland-share-picker %{_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