e9a46d8bd6
Resolves: RHEL-39683
77 lines
2.0 KiB
RPMSpec
77 lines
2.0 KiB
RPMSpec
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
%global xdg_desktop_portal_version 1.17.0
|
|
|
|
Name: xdg-desktop-portal-gnome
|
|
Version: 46.2
|
|
Release: %autorelease
|
|
Summary: Backend implementation for xdg-desktop-portal using GNOME
|
|
|
|
License: LGPL-2.1-or-later
|
|
URL: https://gitlab.gnome.org/GNOME/%{name}
|
|
Source0: https://download.gnome.org/sources/%{name}/45/%{name}-%{tarball_version}.tar.xz
|
|
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gcc
|
|
BuildRequires: gettext
|
|
BuildRequires: meson
|
|
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}
|
|
BuildRequires: systemd-rpm-macros
|
|
Requires: dbus
|
|
Requires: dbus-common
|
|
Requires: xdg-desktop-portal >= %{xdg_desktop_portal_version}
|
|
Supplements: gnome-shell
|
|
|
|
# https://github.com/containers/composefs/pull/229#issuecomment-1838735764
|
|
%if 0%{?rhel} >= 10
|
|
ExcludeArch: %{ix86}
|
|
%endif
|
|
|
|
%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}/glib-2.0/schemas/xdg-desktop-portal-gnome.gschema.xml
|
|
%{_datadir}/xdg-desktop-portal/portals/gnome.portal
|
|
%{_userunitdir}/%{name}.service
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|