xdg-desktop-portal-gnome/xdg-desktop-portal-gnome.spec

72 lines
1.9 KiB
RPMSpec
Raw Normal View History

2021-09-17 16:12:44 +00:00
%global tarball_version %%(echo %{version} | tr '~' '.')
2022-08-12 14:27:14 +00:00
%global xdg_desktop_portal_version 1.15.0
2021-09-17 16:12:44 +00:00
Name: xdg-desktop-portal-gnome
2023-07-17 08:19:13 +00:00
Version: 45~alpha
2022-04-08 18:50:23 +00:00
Release: %autorelease
2021-09-17 16:12:44 +00:00
Summary: Backend implementation for xdg-desktop-portal using GNOME
2023-02-15 18:38:48 +00:00
License: LGPL-2.1-or-later
2021-09-17 16:12:44 +00:00
URL: https://gitlab.gnome.org/GNOME/%{name}
2023-07-17 08:19:13 +00:00
Source0: https://download.gnome.org/sources/%{name}/45/%{name}-%{tarball_version}.tar.xz
2021-09-17 16:12:44 +00:00
BuildRequires: desktop-file-utils
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: meson
BuildRequires: pkgconfig(fontconfig)
2022-03-08 13:04:13 +00:00
BuildRequires: pkgconfig(gnome-bg-4)
BuildRequires: pkgconfig(gnome-desktop-4)
2021-09-17 16:12:44 +00:00
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gtk4)
2022-03-08 13:04:13 +00:00
BuildRequires: pkgconfig(libadwaita-1)
2021-09-17 16:12:44 +00:00
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
2021-09-17 16:12:44 +00:00
%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
2022-09-06 13:25:17 +00:00
%{_datadir}/glib-2.0/schemas/xdg-desktop-portal-gnome.gschema.xml
2021-09-17 16:12:44 +00:00
%{_datadir}/xdg-desktop-portal/portals/gnome.portal
%{_userunitdir}/%{name}.service
%changelog
2022-04-08 18:50:23 +00:00
%autochangelog