Initial version
This commit is contained in:
parent
7f6747a18f
commit
ecb608076c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/xdg-desktop-portal-gnome-41.alpha.tar.xz
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (xdg-desktop-portal-gnome-41.alpha.tar.xz) = 272ad1e2534984e489db39ecffc6b14bd46e56a62c66341542a669b91aa722e3c6fcdf83683388abfdbb5b34afb52d1ed7ab9a9bd413bd67c0db931ea447c354
|
71
xdg-desktop-portal-gnome.spec
Normal file
71
xdg-desktop-portal-gnome.spec
Normal file
@ -0,0 +1,71 @@
|
||||
%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: 41~alpha
|
||||
Release: 1%{?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}/41/%{name}-%{tarball_version}.tar.xz
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gettext
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
||||
BuildRequires: pkgconfig(gtk4)
|
||||
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}
|
||||
# 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))
|
||||
|
||||
%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
|
||||
* Thu Sep 16 2021 David King <amigadave@amigadave.com> - 41~alpha-1
|
||||
- Initial version
|
Loading…
Reference in New Issue
Block a user