Introduce Hyprland xdg desktop portal package
Some checks failed
Build xdg-desktop-portal-hyprland / Build and push image (push) Failing after 2m37s

This commit is contained in:
2025-12-03 19:33:07 -05:00
parent 27451693e1
commit 0127446e9e
2 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
%global sdbus_version 2.1.0
Name: xdg-desktop-portal-hyprland
Epoch: 1
Version: 1.3.11
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
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-git
Provides: bundled(sdbus-cpp) = %{sdbus_version}
%description
%{summary}.
%prep
%autosetup -p1
tar -xf %{SOURCE1} -C subprojects/sdbus-cpp --strip=1
%build
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_BUILD_TYPE=Release
%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