Add systemd rpm scripts
This commit is contained in:
parent
1942dc77f3
commit
d2c2ba32f9
@ -1,6 +1,6 @@
|
|||||||
Name: geoclue2
|
Name: geoclue2
|
||||||
Version: 2.1.2
|
Version: 2.1.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Geolocation service
|
Summary: Geolocation service
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -13,9 +13,13 @@ BuildRequires: intltool
|
|||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
BuildRequires: json-glib-devel
|
BuildRequires: json-glib-devel
|
||||||
BuildRequires: libsoup-devel
|
BuildRequires: libsoup-devel
|
||||||
BuildRequires: NetworkManager-glib-devel
|
|
||||||
BuildRequires: ModemManager-glib-devel
|
BuildRequires: ModemManager-glib-devel
|
||||||
|
BuildRequires: NetworkManager-glib-devel
|
||||||
|
BuildRequires: systemd
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
|
Requires(post): systemd
|
||||||
|
Requires(preun): systemd
|
||||||
|
Requires(postun): systemd
|
||||||
Requires: dbus
|
Requires: dbus
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -70,6 +74,15 @@ getent passwd geoclue >/dev/null || \
|
|||||||
-c "User for geoclue" geoclue
|
-c "User for geoclue" geoclue
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post geoclue.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun geoclue.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart geoclue.service
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING NEWS
|
%doc COPYING NEWS
|
||||||
@ -94,6 +107,9 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Feb 04 2014 Richard Hughes <rhughes@redhat.com> - 2.1.2-1
|
||||||
- Update to 2.1.2
|
- Update to 2.1.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user