%global srcname portals %global appname io.elementary.portals %global commit c5f6fa1179bfa51429ddf4b2d268c7f2295dfff8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20260604 Name: xdg-desktop-portal-pantheon Version: 8.2.0^%{gitdate}.git%{shortcommit} Release: %autorelease Summary: Portal implementations for Pantheon License: GPL-3.0-or-later URL: https://github.com/elementary/%{srcname} Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Patch0: xdp-spec.patch BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: libappstream-glib BuildRequires: meson BuildRequires: systemd-rpm-macros BuildRequires: vala BuildRequires: pkgconfig(accountsservice) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(granite-7) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(gtk4-x11) BuildRequires: pkgconfig(gtk4-wayland) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(pantheon-wayland-1) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(x11) Requires: xdg-desktop-portal %description %{summary}. %prep %autosetup -n %{srcname}-%{commit} -p1 %build %meson %meson_build %install %meson_install %find_lang xdg-desktop-portal-pantheon %check appstream-util validate-relax --nonet \ %{buildroot}/%{_metainfodir}/%{appname}.metainfo.xml %post %systemd_user_post xdg-desktop-portal-pantheon.service %preun %systemd_user_preun xdg-desktop-portal-pantheon.service %files -f xdg-desktop-portal-pantheon.lang %license COPYING %doc README.md %{_libexecdir}/xdg-desktop-portal-pantheon %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.pantheon.service %{_datadir}/glib-2.0/schemas/%{name}.gschema.xml %{_datadir}/xdg-desktop-portal/portals/pantheon.portal %{_metainfodir}/%{appname}.metainfo.xml %{_userunitdir}/xdg-desktop-portal-pantheon.service %changelog %autochangelog