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

80 lines
2.0 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
2022-12-01 21:39:27 +00:00
Version: 1.14.1
2022-04-08 18:37:50 +00:00
Release: %autorelease
Summary: Backend implementation for xdg-desktop-portal using GTK+
License: LGPLv2+
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
2021-12-21 16:18:02 +00:00
BuildRequires: make
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}
# 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.
2021-09-16 08:36:39 +00:00
%configure \
--disable-silent-rules \
--enable-appchooser \
--enable-settings \
2021-09-16 08:36:39 +00:00
--disable-background \
--disable-lockdown \
2021-09-16 08:36:39 +00:00
--disable-screencast \
--disable-screenshot \
--disable-wallpaper
%make_build
2016-07-29 13:05:29 +00:00
%install
%make_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