File xdg-desktop-portal-termfilechooser.spec of Package xdg-desktop-portal-termfilechooser
#
# spec file for package xdg-desktop-portal-termfilechooser
#
# 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-termfilechooser
Version: 1.3.0
Release: 0
Summary: XDG Desktop Portal backend for terminal-based file choosers
License: MIT
URL: https://github.com/hunkyburrito/xdg-desktop-portal-termfilechooser
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(inih)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(scdoc)
BuildRequires: pkgconfig(systemd)
Requires: xdg-desktop-portal
Suggests: yazi
Suggests: kitty
%description
xdg-desktop-portal-termfilechooser is an XDG Desktop Portal backend that
uses a terminal-based file manager as the file chooser dialog, intended
for Wayland and minimal or tiling window manager environments, with
support for configurable open/save dialogs and file or directory selection.
%prep
%autosetup
sed -i '1s|^#!/usr/bin/env sh|#!/bin/sh|' contrib/*.sh
chmod -x contrib/config
%build
%meson -Dsd-bus-provider=libsystemd
%meson_build
%install
%meson_install
%files
%license LICENSE
%doc README.md
%{_userunitdir}/%{name}.service
%{_libexecdir}/%{name}
%{_datadir}/dbus-1/services
%{_datadir}/xdg-desktop-portal
%{_datadir}/%{name}
%{_mandir}/man5/%{name}.5%{?ext_man}
%changelog