xdg-desktop-portal-gtk/xdg-desktop-portal-gtk.spec

82 lines
2.1 KiB
RPMSpec
Raw Normal View History

2022-04-16 09:05:07 +00:00
%global xdg_desktop_portal_version 1.14.0
2018-02-14 15:13:30 +00:00
Name: xdg-desktop-portal-gtk
Version: 1.15.1
2022-04-08 18:37:50 +00:00
Release: %autorelease
Summary: Backend implementation for xdg-desktop-portal using GTK+
License: LGPL-2.0-or-later
URL: https://github.com/flatpak/%{name}
2018-04-25 06:19:27 +00:00
Source0: https://github.com/flatpak/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires: gcc
2017-06-06 10:00:50 +00:00
BuildRequires: gettext
BuildRequires: meson
2019-10-04 20:00:18 +00:00
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
2018-02-14 15:13:30 +00:00
BuildRequires: pkgconfig(xdg-desktop-portal) >= %{xdg_desktop_portal_version}
2021-12-21 16:18:02 +00:00
BuildRequires: systemd-rpm-macros
Requires: dbus
Requires: gsettings-desktop-schemas
2018-02-14 15:13:30 +00:00
Requires: xdg-desktop-portal >= %{xdg_desktop_portal_version}
2024-01-17 22:03:17 +00:00
# https://github.com/containers/composefs/pull/229#issuecomment-1838735764
%if 0%{?rhel} >= 10
ExcludeArch: %{ix86}
%endif
# This portal is recommended if you have installed any app that uses GTK. (It's
# also recommended if you have any such app installed via flatpak or snap, but
# that is impossible to detect here.)
Supplements: gtk3
Supplements: gtk4
%description
2021-09-16 08:36:39 +00:00
A backend implementation for xdg-desktop-portal that is using GTK+.
2016-07-29 13:05:29 +00:00
%prep
2019-10-04 20:00:18 +00:00
%autosetup -p1
2016-07-29 13:05:29 +00:00
%build
2021-09-16 08:36:39 +00:00
# All backends that are disabled are instead provided by
# xdg-desktop-portal-gnome, to keep this package free of GNOME dependencies.
# The appchooser and settings backends are enabled for non-GNOME GTK
# applications.
%meson \
-Dappchooser=enabled \
-Dsettings=enabled \
-Dlockdown=disabled \
-Dwallpaper=disabled \
%{nil}
%meson_build
2016-07-29 13:05:29 +00:00
%install
%meson_install
%find_lang %{name}
2016-07-29 13:05:29 +00:00
2017-03-31 13:41:34 +00:00
%post
%systemd_user_post %{name}.service
%preun
%systemd_user_preun %{name}.service
%files -f %{name}.lang
%license COPYING
%doc NEWS
%{_libexecdir}/%{name}
2017-03-31 13:41:34 +00:00
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
%{_datadir}/xdg-desktop-portal/portals/gtk.portal
2017-03-31 13:41:34 +00:00
%{_userunitdir}/%{name}.service
2016-07-29 13:05:29 +00:00
%changelog
2022-04-08 18:37:50 +00:00
%autochangelog