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
|
Summary: Disk Manager
|
||||||
Name: udisks2
|
Name: udisks2
|
||||||
Version: 2.1.5
|
Version: 2.1.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.freedesktop.org/wiki/Software/udisks
|
URL: http://www.freedesktop.org/wiki/Software/udisks
|
||||||
@ -25,6 +25,10 @@ BuildRequires: chrpath
|
|||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
|
|
||||||
|
# For systemd scriptlet snippets.
|
||||||
|
Requires(post): systemd
|
||||||
|
Requires(preun): systemd
|
||||||
|
Requires(postun): systemd
|
||||||
# needed to pull in the system bus daemon
|
# needed to pull in the system bus daemon
|
||||||
Requires: dbus >= %{dbus_version}
|
Requires: dbus >= %{dbus_version}
|
||||||
# needed to pull in the udev daemon
|
# needed to pull in the udev daemon
|
||||||
@ -111,10 +115,21 @@ chrpath --delete $RPM_BUILD_ROOT%{_prefix}/lib/udisks2/udisksd
|
|||||||
|
|
||||||
%find_lang %{name}
|
%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
|
%post -n libudisks2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libudisks2 -p /sbin/ldconfig
|
%postun -n libudisks2 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc README AUTHORS NEWS HACKING
|
%doc README AUTHORS NEWS HACKING
|
||||||
%license COPYING
|
%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
|
# Note: please don't forget the %{?dist} in the changelog. Thanks
|
||||||
%changelog
|
%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
|
* Fri Mar 06 2015 David King <amigadave@amigadave.com> - 2.1.5-1
|
||||||
- Update to 2.1.5
|
- Update to 2.1.5
|
||||||
- Use license macro for COPYING
|
- Use license macro for COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user