File xdg-desktop-portal-luminous.spec of Package xdg-desktop-portal-luminous
#
# spec file for package xdg-desktop-portal-luminous
#
# Copyright (c) 2026 mantarimay
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: xdg-desktop-portal-luminous
Version: 0.1.13
Release: 0
Summary: Rust XDG portal backend for wlroots compositors
License: GPL-3.0-or-later
URL: https://github.com/waycrate/xdg-desktop-portal-luminous
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: clang
BuildRequires: libgbm-devel
BuildRequires: libxkbcommon-devel
BuildRequires: meson
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libpipewire-0.3)
%description
xdg-desktop-portal-luminous is a backend for xdg-desktop-portal,
designed specifically for wlroots-based Wayland compositors
(such as Sway or River). It provides portal functionality for
screenshot, screencast, remote desktop, and settings interfaces
without depending on external tools like grim. This backend uses
libwayshot to implement screen capture and integrates with PipeWire
for screencasting.
%prep
%autosetup -a1 -p1
sed -e 's|@xdg_install_dir@|%{_libexecdir}|g' \
misc/org.freedesktop.impl.portal.desktop.luminous.service.in \
> org.freedesktop.impl.portal.desktop.luminous.service
sed -e 's|@xdg_install_dir@|%{_libexecdir}|g' \
misc/xdg-desktop-portal-luminous.service.in \
> %{name}.service
%build
%{cargo_build}
%install
install -Dm755 target/release/%{name} -t %{buildroot}%{_libexecdir}
install -Dm644 org.freedesktop.impl.portal.desktop.luminous.service \
%{buildroot}%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.luminous.service
install -Dm644 %{name}.service \
%{buildroot}%{_unitdir}/%{name}.service
install -Dm644 misc/luminous.portal \
%{buildroot}%{_datadir}/xdg-desktop-portal/portals/luminous.portal
%files
%license LICENSE
%doc README.md
%{_libexecdir}/%{name}
%{_unitdir}/%{name}.service
%{_datadir}/dbus-1/services
%{_datadir}/xdg-desktop-portal
%changelog