%define _disable_lto 1 %define plasmaver %(echo %{version} |cut -d. -f1-3) %define stable %([ "$(echo %{version} |cut -d. -f3)" -ge 80 ] && echo -n un; echo -n stable) Name: xdg-desktop-portal Version: 1.18.4 Release: 1 Source0: https://github.com/flatpak/xdg-desktop-portal/archive/%{version}/%{name}-%{version}.tar.xz Summary: D-Bus service providing native file dialogs URL: https://github.com/flatpak/xdg-desktop-portal License: GPL Group: System/Libraries BuildRequires: gettext BuildRequires: meson BuildRequires: xmlto BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(libgeoclue-2.0) >= 2.5.2 BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(fuse3) BuildRequires: pkgconfig(flatpak) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(libportal) BuildRequires: pkgconfig(python) BuildRequires: pkgconfig(dbus-python) BuildRequires: python3dist(python-dbusmock) BuildRequires: python3dist(pygobject) BuildRequires: python3dist(docutils) Requires: xdg-desktop-portal-implementation %{?systemd_requires} Requires: dbus Requires: geoclue Requires: pipewire Requires: fuse %description D-Bus service providing native file dialogs. %package devel Summary: Development files for %{name} Group: Development/Other Requires: %{name} = %{EVRD} %description devel The pkg-config file for %{name}. %prep %autosetup -p1 %build %meson \ -Dpytest=disabled %meson_build %install %meson_install # This directory is used by implementations such as xdg-desktop-portal-gtk. install -dm 755 %{buildroot}%{_datadir}/%{name}/portals %find_lang %{name} --all-name --with-html %post %systemd_user_post %{name}.service %systemd_user_post xdg-document-portal.service %systemd_user_post xdg-permission-store.service %preun %systemd_user_preun %{name}.service %systemd_user_preun xdg-document-portal.service %systemd_user_preun xdg-permission-store.service %files -f %{name}.lang %{_userunitdir}/xdg-*.service %{_libexecdir}/xdg-desktop-portal %{_libexecdir}/xdg-desktop-portal-rewrite-launchers %{_libexecdir}/xdg-desktop-portal-validate-icon %{_libexecdir}/xdg-document-portal %{_libexecdir}/xdg-permission-store %{_datadir}/%{name}/portals %{_datadir}/dbus-1/interfaces/org.freedesktop.*.xml %{_datadir}/dbus-1/services/org.freedesktop.*.service %doc %{_docdir}/xdg-desktop-portal %{_mandir}/man5/portals.conf.5.* %files devel %{_datadir}/pkgconfig/xdg-desktop-portal.pc