1 %include /usr/lib/rpm/macros.perl
2 Summary: check for processes need to be restarted in user sessions
3 Name: needrestart-session
7 Group: X11/Applications
8 Source0: https://github.com/liske/needrestart-session/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: ea07cb200f2ac2162198ac0475f0213e
10 URL: https://github.com/liske/needrestart-session
11 BuildRequires: rpm-perlprov >= 4.1-13
13 Requires: desktop-file-utils
15 Requires: needrestart >= 2.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _libexecdir %{_prefix}/lib/%{name}
25 needrestart checks which processes need to be restarted after library
26 upgrades. needrestart-session implements a notification of user
27 sessions about their obsolete processes after system upgrades.
33 rm -rf $RPM_BUILD_ROOT
35 DESTDIR=$RPM_BUILD_ROOT
38 rm -rf $RPM_BUILD_ROOT
41 %update_desktop_database
44 %update_desktop_database
47 %defattr(644,root,root,755)
48 %doc AUTHORS README.md ChangeLog
49 %attr(755,root,root) %{_sysconfdir}/needrestart/notify.d/300-needrestart-session
50 %attr(755,root,root) %{_bindir}/needrestart-session
51 %{_desktopdir}/needrestart-session.desktop
52 %{_desktopdir}/needrestart.desktop
53 /etc/dbus-1/system.d/net.ibh.NeedRestart.System.conf
54 /etc/xdg/autostart/needrestart-dbus-session.desktop
55 %{_datadir}/dbus-1/system-services/net.ibh.NeedRestart.System.service
56 %dir %{_datadir}/needrestart-session
57 %{_datadir}/needrestart-session/needrestart.svg
58 %{_datadir}/needrestart-session/needrestart.xpm
60 %attr(755,root,root) %{_libexecdir}/needrestart-dbus-session
61 %attr(755,root,root) %{_libexecdir}/needrestart-dbus-system
62 %attr(755,root,root) %{_libexecdir}/needrestart-x11