65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
%global xdg_desktop_portal_version 1.5.4
|
|
|
|
Name: xdg-desktop-portal-gnome
|
|
Version: 42.1
|
|
Release: 1
|
|
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}-%{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}
|
|
|
|
Requires: dbus
|
|
Requires: dbus-common
|
|
Requires: xdg-desktop-portal >= %{xdg_desktop_portal_version}
|
|
Supplements: gnome-shell
|
|
|
|
%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}-%{version}
|
|
|
|
%build
|
|
%meson -Dsystemduserunitdir=%{_userunitdir}
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
|
%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
|
|
* Mon Jun 20 2022 lin zhang <lin.zhang@turbolinux.com.cn> 42.1-1
|
|
- Package init
|