Use systemd scriptlet snippets (#857409)
This commit is contained in:
parent
41184439b6
commit
636e8b02a3
20
udisks2.spec
20
udisks2.spec
|
@ -10,7 +10,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
|
||||
|
@ -27,6 +27,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
|
||||
|
@ -113,10 +117,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
|
||||
|
@ -162,6 +177,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 <amigadave@amigadave.com> - 2.1.5-2
|
||||
- Use systemd scriptlet snippets (#857409)
|
||||
|
||||
* Fri Mar 06 2015 David King <amigadave@amigadave.com> - 2.1.5-1
|
||||
- Update to 2.1.5
|
||||
- Use license macro for COPYING
|
||||
|
|
Loading…
Reference in New Issue