652ff72cfc
... to retain consistency with xdg-desktop-portal-gtk. It's not clear why the Supplements in xdg-desktop-portal-gtk is specific to Fedora. Meanwhile, at least, it doesn't hurt to keep things consistent.
99 lines
2.8 KiB
RPMSpec
99 lines
2.8 KiB
RPMSpec
%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: 42.0.1
|
|
Release: 2%{?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}/42/%{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}
|
|
%if 0%{?fedora}
|
|
# Use rich deps to pull in this package when gnome-shell and flatpak (or snapd) are both installed
|
|
Supplements: (gnome-shell and (flatpak or snapd))
|
|
%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}/xdg-desktop-portal/portals/gnome.portal
|
|
%{_userunitdir}/%{name}.service
|
|
|
|
|
|
|
|
%changelog
|
|
* Tue Apr 05 2022 Debarshi Ray <rishi@fedoraproject.org> - 42.0.1-2
|
|
- Make the Supplements specific to Fedora to retain consistency with
|
|
xdg-desktop-portal-gtk
|
|
|
|
* Fri Mar 18 2022 David King <amigadave@amigadave.com> - 42.0.1-1
|
|
- Update to 42.0.1
|
|
|
|
* Fri Mar 18 2022 David King <amigadave@amigadave.com> - 42.0-1
|
|
- Update to 42.0
|
|
|
|
* Tue Mar 08 2022 David King <amigadave@amigadave.com> - 42~rc-1
|
|
- Update to 42.rc
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 41.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Sat Sep 25 2021 Kalev Lember <klember@redhat.com> - 41.1-1
|
|
- Update to 41.1
|
|
|
|
* Sat Sep 18 2021 David King <amigadave@amigadave.com> - 41.0-1
|
|
- Update to 41.0 (#2005532)
|
|
|
|
* Thu Sep 16 2021 David King <amigadave@amigadave.com> - 41~alpha-1
|
|
- Initial version
|