packages: accountsservice/accountsservice.spec - systemd support - rel. 2

wiget wiget at pld-linux.org
Sun Dec 4 02:36:09 CET 2011


Author: wiget                        Date: Sun Dec  4 01:36:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- systemd support
- rel. 2

---- Files affected:
packages/accountsservice:
   accountsservice.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: packages/accountsservice/accountsservice.spec
diff -u packages/accountsservice/accountsservice.spec:1.16 packages/accountsservice/accountsservice.spec:1.17
--- packages/accountsservice/accountsservice.spec:1.16	Sat Oct 22 12:10:45 2011
+++ packages/accountsservice/accountsservice.spec	Sun Dec  4 02:36:03 2011
@@ -3,7 +3,7 @@
 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
@@ -21,6 +21,7 @@
 BuildRequires:	libxslt-progs
 BuildRequires:	pkgconfig
 BuildRequires:	polkit-devel >= 0.102
+BuildRequires:	rpmbuild(macros) >= 1.623
 BuildRequires:	xmlto
 Requires:	ConsoleKit
 Requires:	polkit >= 0.102
@@ -40,6 +41,15 @@
 - 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
@@ -77,6 +87,7 @@
 %configure \
 	XMLTO_FLAGS="--skip-validation" \
 	--disable-silent-rules \
+	--with-systemdsystemunitdir=%{systemdunitdir} \
 	--enable-docbook-docs
 %{__make}
 
@@ -97,6 +108,16 @@
 %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
@@ -111,6 +132,10 @@
 %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
@@ -130,6 +155,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2011/12/04 01:36:03  wiget
+- systemd support
+- rel. 2
+
 Revision 1.16  2011/10/22 10:10:45  kiesiu
 - updated to 0.6.15
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/accountsservice/accountsservice.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list