Add systemd rpm scripts

This commit is contained in:
Kalev Lember 2014-02-06 22:39:44 +01:00
parent 1942dc77f3
commit d2c2ba32f9

View File

@ -1,6 +1,6 @@
Name: geoclue2
Version: 2.1.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Geolocation service
License: GPLv2+
@ -13,9 +13,13 @@ BuildRequires: intltool
BuildRequires: itstool
BuildRequires: json-glib-devel
BuildRequires: libsoup-devel
BuildRequires: NetworkManager-glib-devel
BuildRequires: ModemManager-glib-devel
BuildRequires: NetworkManager-glib-devel
BuildRequires: systemd
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires: dbus
%description
@ -70,6 +74,15 @@ getent passwd geoclue >/dev/null || \
-c "User for geoclue" geoclue
exit 0
%post
%systemd_post geoclue.service
%preun
%systemd_preun geoclue.service
%postun
%systemd_postun_with_restart geoclue.service
%files
%doc COPYING NEWS
@ -94,6 +107,9 @@ exit 0
%changelog
* Thu Feb 06 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.2-2
- Add systemd rpm scripts
* Tue Feb 04 2014 Richard Hughes <rhughes@redhat.com> - 2.1.2-1
- Update to 2.1.2