]> git.pld-linux.org Git - packages/accountsservice.git/commitdiff
- systemd support auto/th/accountsservice-0_6_15-2
authorArtur Frysiak <artur@frysiak.net>
Sun, 4 Dec 2011 01:36:03 +0000 (01:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel. 2

Changed files:
    accountsservice.spec -> 1.17

accountsservice.spec

index 558f424f1eeb353f8748698d0cc1531d0b0e42e2..8f31dc5eacec6ceb5eb798b8baaa0ad285d91536 100644 (file)
@@ -2,7 +2,7 @@ Summary:        D-Bus interface for user accounts management
 Summary(pl.UTF-8):     Interfejs D-Bus do zarządzania kontami użytkowników
 Name:          accountsservice
 Version:       0.6.15
-Release:       1
+Release:       2
 License:       GPL v3
 Group:         Applications/System
 Source0:       http://cgit.freedesktop.org/accountsservice/snapshot/%{name}-%{version}.tar.bz2
@@ -20,6 +20,7 @@ BuildRequires:        libtool
 BuildRequires: libxslt-progs
 BuildRequires: pkgconfig
 BuildRequires: polkit-devel >= 0.102
+BuildRequires: rpmbuild(macros) >= 1.623
 BuildRequires: xmlto
 Requires:      ConsoleKit
 Requires:      polkit >= 0.102
@@ -39,6 +40,15 @@ Projekt AccountsService dostarcza:
 - Implementacje tych interfejsów oparte o komendy usermod(8),
   useradd(8) i userdel(8).
 
+%package systemd
+Summary:       systemd unit for accountsservice
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+Requires:      systemd-units
+
+%description systemd
+systemd unit for accountsservice.
+
 %package devel
 Summary:       accountsservice includes, and more
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki accountsservice
@@ -76,6 +86,7 @@ Statyczna biblioteka accountsservice.
 %configure \
        XMLTO_FLAGS="--skip-validation" \
        --disable-silent-rules \
+       --with-systemdsystemunitdir=%{systemdunitdir} \
        --enable-docbook-docs
 %{__make}
 
@@ -96,6 +107,16 @@ rm -rf $RPM_BUILD_ROOT
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%post systemd
+%systemd_post
+%systemd_enable accounts-daemon.service
+
+%preun systemd
+%systemd_preun accounts-daemon.service
+
+%postun systemd
+%systemd_postun accounts-daemon.service
+
 %files -f accounts-service.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README TODO doc/dbus/AccountsService.html
@@ -110,6 +131,10 @@ rm -rf $RPM_BUILD_ROOT
 %dir /var/lib/AccountsService/icons
 %dir /var/lib/AccountsService/users
 
+%files systemd
+%defattr(644,root,root,755)
+%{systemdunitdir}/accounts-daemon.service
+
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libaccountsservice.so
This page took 0.072422 seconds and 4 git commands to generate.