1
0

Accepting request 863168 from GNOME:Factory

- Ensure systemd rpm macros are called at install/uninstall times
  for systemd user services.
- Add BuildRequires on systemd-rpm-macros. (forwarded request 863082 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/863168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xdg-desktop-portal?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2021-01-19 14:58:35 +00:00 committed by Git OBS Bridge
commit 609804fb80
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jan 14 10:49:29 UTC 2021 - Frederic Crozat <fcrozat@suse.com>
- Ensure systemd rpm macros are called at install/uninstall times
for systemd user services.
- Add BuildRequires on systemd-rpm-macros.
-------------------------------------------------------------------
Thu Jan 7 20:11:15 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -27,6 +27,7 @@ Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: xmlto
BuildRequires: pkgconfig(flatpak)
BuildRequires: pkgconfig(fontconfig)
@ -84,6 +85,12 @@ export LANG=C.UTF-8
%make_install
%find_lang %{name}
%post
%systemd_user_post %{name}.service xdg-document-portal.service xdg-permission-store.service
%preun
%systemd_user_preun %{name}.service xdg-document-portal.service xdg-permission-store.service
%files
%license COPYING
%dir %{_datadir}/dbus-1
@ -95,11 +102,11 @@ export LANG=C.UTF-8
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
%{_datadir}/doc/xdg-desktop-portal/
%{_libexecdir}/xdg-desktop-portal
%{_prefix}/lib/systemd/user/xdg-document-portal.service
%{_prefix}/lib/systemd/user/xdg-permission-store.service
%{_libexecdir}/xdg-document-portal
%{_libexecdir}/xdg-permission-store
%{_userunitdir}/xdg-desktop-portal.service
%{_userunitdir}/xdg-document-portal.service
%{_userunitdir}/xdg-permission-store.service
%files devel
%{_datadir}/pkgconfig/xdg-desktop-portal.pc