From 5567c2c259511cfbe55dc407ceaf53b4cfbbc12a Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 22 Apr 2015 09:58:13 +0100 Subject: [PATCH] Use systemd scriptlet snippets (#857409) --- udisks2.spec | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/udisks2.spec b/udisks2.spec index d12c94b..8cda430 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -8,7 +8,7 @@ Summary: Disk Manager Name: udisks2 Version: 2.1.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://www.freedesktop.org/wiki/Software/udisks @@ -25,6 +25,10 @@ BuildRequires: chrpath BuildRequires: gtk-doc BuildRequires: intltool +# For systemd scriptlet snippets. +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd # needed to pull in the system bus daemon Requires: dbus >= %{dbus_version} # needed to pull in the udev daemon @@ -111,10 +115,21 @@ chrpath --delete $RPM_BUILD_ROOT%{_prefix}/lib/udisks2/udisksd %find_lang %{name} + +%post +%systemd_post udisks2.service + +%preun +%systemd_preun udisks2.service + +%postun +%systemd_postun_with_restart udisks2.service + %post -n libudisks2 -p /sbin/ldconfig %postun -n libudisks2 -p /sbin/ldconfig + %files -f %{name}.lang %doc README AUTHORS NEWS HACKING %license COPYING @@ -160,6 +175,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_prefix}/lib/udisks2/udisksd # Note: please don't forget the %{?dist} in the changelog. Thanks %changelog +* Wed Apr 22 2015 David King - 2.1.5-2 +- Use systemd scriptlet snippets (#857409) + * Fri Mar 06 2015 David King - 2.1.5-1 - Update to 2.1.5 - Use license macro for COPYING