%global xdg_desktop_portal_version 1.15.0 Name: xdg-desktop-portal-gnome Version: 45.1 Release: 1 Summary: Backend implementation for xdg-desktop-portal using GNOME License: LGPLv2+ URL: https://gitlab.gnome.org/GNOME/%{name} Source0: https://gitlab.gnome.org/GNOME/%{name}/-/archive/45.1/%{name}-%{version}.tar.gz BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: gettext BuildRequires: meson BuildRequires: systemd BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(gnome-bg-4) BuildRequires: pkgconfig(gnome-desktop-4) BuildRequires: pkgconfig(gsettings-desktop-schemas) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(xdg-desktop-portal) >= %{xdg_desktop_portal_version} Requires: dbus Requires: dbus-common Requires: xdg-desktop-portal >= %{xdg_desktop_portal_version} Supplements: gnome-shell %description A backend implementation for xdg-desktop-portal that is using various pieces of GNOME infrastructure, such as the org.gnome.Shell.Screenshot or org.gnome.SessionManager D-Bus interfaces. %prep %autosetup -p1 -n %{name}-%{version} %build %meson -Dsystemduserunitdir=%{_userunitdir} %meson_build %install %meson_install desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %find_lang %{name} %check desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %files -f %{name}.lang %license COPYING %doc NEWS README.md %{_libexecdir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.gnome.service %{_datadir}/xdg-desktop-portal/portals/gnome.portal %{_userunitdir}/%{name}.service %{_datadir}/glib-2.0/schemas/xdg-desktop-portal-gnome.gschema.xml %changelog * Thu Jan 11 2024 kkz - 45.1-1 - update to version 45.1 * Mon Nov 20 2023 lwg - 44.2-1 - update to version 44.2 * Mon Jan 02 2023 lin zhang 43.1-1 - Update to 43.1 * Mon Jun 20 2022 lin zhang 42.1-1 - Package init