Use systemd scriptlet snippets (#857409)
This commit is contained in:
parent
16a815d38f
commit
5567c2c259
20
udisks2.spec
20
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 <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
Block a user