From e2b13b47e44e11d1e8d4c8490804a26e6c09a9e8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 15 2022 06:29:21 +0000 Subject: import xdg-desktop-portal-gnome-41.2-1.el9 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed51144 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/xdg-desktop-portal-gnome-41.2.tar.xz diff --git a/.xdg-desktop-portal-gnome.metadata b/.xdg-desktop-portal-gnome.metadata new file mode 100644 index 0000000..b5d648e --- /dev/null +++ b/.xdg-desktop-portal-gnome.metadata @@ -0,0 +1 @@ +0ff21a277478d553fcb740c7cd01f28c8d932997 SOURCES/xdg-desktop-portal-gnome-41.2.tar.xz diff --git a/SPECS/xdg-desktop-portal-gnome.spec b/SPECS/xdg-desktop-portal-gnome.spec new file mode 100644 index 0000000..edd3396 --- /dev/null +++ b/SPECS/xdg-desktop-portal-gnome.spec @@ -0,0 +1,84 @@ +%global tarball_version %%(echo %{version} | tr '~' '.') + +# Required for xdp_impl_background_emit_running_applications_changed +%global xdg_desktop_portal_version 1.5.4 + +Name: xdg-desktop-portal-gnome +Version: 41.2 +Release: 1%{?dist} +Summary: Backend implementation for xdg-desktop-portal using GNOME + +License: LGPLv2+ +URL: https://gitlab.gnome.org/GNOME/%{name} +Source0: https://download.gnome.org/sources/%{name}/41/%{name}-%{tarball_version}.tar.xz + +BuildRequires: desktop-file-utils +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: meson +BuildRequires: pkgconfig(fontconfig) +BuildRequires: pkgconfig(gsettings-desktop-schemas) +BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(xdg-desktop-portal) >= %{xdg_desktop_portal_version} +BuildRequires: systemd-rpm-macros +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}-%{tarball_version} + + +%build +%meson -Dsystemduserunitdir=%{_userunitdir} +%meson_build + + +%install +%meson_install +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop +%find_lang %{name} + + +%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 + + + +%changelog +* Wed Jun 01 2022 Debarshi Ray - 41.2-1 +- Update to 41.2 +Resolves: #2083018 + +* Tue Apr 12 2022 Debarshi Ray - 41.1-3 +- Recommend this portal backend for all GNOME users +Resolves: #2051473 + +* Tue Apr 05 2022 Debarshi Ray - 41.1-2 +- Make the Supplements specific to Fedora to retain consistency with + xdg-desktop-portal-gtk +Resolves: #2051473 + +* Sat Mar 05 2022 Debarshi Ray - 41.1-1 +- Initial version +Resolves: #2051473