File xdg-desktop-portal-hyprland.spec of Package xdg-desktop-portal-hyprland

Name:           xdg-desktop-portal-hyprland
Version:        1.3.10+git0_f955664
Release:        0
Summary:        A xdg-desktop-portal backend for hyprland
License:        MIT
URL:            https://github.com/stronnag/wayfarer
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++ >= 11
BuildRequires:  meson cmake
%if 0%{?suse_version}
BuildRequires:  ninja openSUSE-release
BuildRequires:  qt6-wayland-devel
%else
BuildRequires:  qt6-qtwayland-devel
BuildRequires:  libdrm-devel wayland-devel
BuildRequires:  ninja-build
%endif
BuildRequires:  pkgconfig(Qt6Widgets)
BuildRequires:  pkgconfig(libpipewire-0.3)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(inih)
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(uuid)
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(systemd)
#BuildRequires:  pkgconfig(sdbus-c++)
BuildRequires:  pkgconfig(hyprlang)
BuildRequires:  pkgconfig(hyprutils)
BuildRequires:  pkgconfig(hyprwayland-scanner)
Requires: xdg-desktop-portal
Recommends: pipewire

%description
%{summary}.

%prep
%autosetup -p1

%build
%cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release
%cmake_build

%install
%cmake_install
rm -f %{buildroot}/usr/share/pkgconfig/hyprland-protocols.pc

%files
%license LICENSE
%doc README.md
%{_bindir}/hyprland-share-picker
%{_libexecdir}/xdg-desktop-portal-hyprland
%{_userunitdir}/xdg-desktop-portal-hyprland.service
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.hyprland.service
%{_datadir}/xdg-desktop-portal/portals/hyprland.portal
%dir %{_datadir}/xdg-desktop-portal/portals
%dir %{_datadir}/xdg-desktop-portal

%post
%{systemd_user_post xdg-desktop-portal-hyprland.service}

%preun
%{systemd_user_preun xdg-desktop-portal-hyprland.service}

%postun
%{systemd_user_postun xdg-desktop-portal-hyprland.service}

%changelog
openSUSE Build Service is sponsored by