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.14
+Version: 0.6.37
Release: 1
License: GPL v3
Group: Applications/System
-Source0: http://cgit.freedesktop.org/accountsservice/snapshot/%{name}-%{version}.tar.bz2
-# Source0-md5: 88f4d5d0d1f0ce0fa6a180cbff936041
+Source0: http://cgit.freedesktop.org/accountsservice/snapshot/%{name}-%{version}.tar.xz
+# Source0-md5: d4842f2a054459746947f85476144077
URL: http://cgit.freedesktop.org/accountsservice/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dbus-glib-devel
BuildRequires: docbook-dtd412-xml
BuildRequires: gettext-devel
-BuildRequires: glib2-devel >= 1:2.26.0
+BuildRequires: glib2-devel >= 1:2.38.0
BuildRequires: gobject-introspection-devel >= 0.10.0
+BuildRequires: gtk-doc >= 1.15
BuildRequires: intltool >= 0.40.0
BuildRequires: libtool
BuildRequires: libxslt-progs
BuildRequires: pkgconfig
BuildRequires: polkit-devel >= 0.102
+BuildRequires: rpmbuild(macros) >= 1.641
+BuildRequires: systemd-devel >= 186
+BuildRequires: tar >= 1:1.22
BuildRequires: xmlto
-Requires: ConsoleKit
+BuildRequires: xz
+Requires(post,preun,postun): systemd-units >= 38
Requires: polkit >= 0.102
+Requires: systemd-units >= 0.38
+Suggests: ConsoleKit
+Obsoletes: accountsservice-systemd
+Obsoletes: vala-accountsservice
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%build
%{__intltoolize}
%{__libtoolize}
+%{__gtkdocize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%configure \
XMLTO_FLAGS="--skip-validation" \
--disable-silent-rules \
- --enable-docbook-docs
+ --with-systemdsystemunitdir=%{systemdunitdir} \
+ --enable-docbook-docs \
+ --enable-admin-group=wheel
%{__make}
%install
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+%systemd_post accounts-daemon.service
+
+%preun
+%systemd_preun accounts-daemon.service
+
+%postun
+/sbin/ldconfig
+%systemd_reload
+
+%triggerpostun -- accountsservice < 0.6.15-5
+%systemd_trigger accounts-daemon.service
%files -f accounts-service.lang
%defattr(644,root,root,755)
%attr(755,root,root) %ghost %{_libdir}/libaccountsservice.so.0
%{_libdir}/girepository-1.0/AccountsService-1.0.typelib
/etc/dbus-1/system.d/org.freedesktop.Accounts.conf
+%{systemdunitdir}/accounts-daemon.service
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy
%dir /var/lib/AccountsService