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.4
-Release: 0.1
-License: LGPL
+Version: 0.6.26
+Release: 1
+License: GPL v3
Group: Applications/System
-Source0: http://cgit.freedesktop.org/accountsservice/snapshot/%{name}-%{version}.tar.bz2
-# Source0-md5: 274d9167bca65b3f3abfdd5702f6e4fc
+Source0: http://cgit.freedesktop.org/accountsservice/snapshot/%{name}-%{version}.tar.xz
+# Source0-md5: ff6b5c318b065e7eb3514d8653b9aa1c
URL: http://cgit.freedesktop.org/accountsservice/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-dtd412-xml
BuildRequires: gettext-devel
BuildRequires: glib2-devel >= 1:2.26.0
+BuildRequires: gobject-introspection-devel >= 0.10.0
BuildRequires: intltool >= 0.40.0
BuildRequires: libtool
BuildRequires: libxslt-progs
BuildRequires: pkgconfig
-BuildRequires: polkit-devel
+BuildRequires: polkit-devel >= 0.102
+BuildRequires: rpmbuild(macros) >= 1.641
+BuildRequires: systemd-devel >= 186
+BuildRequires: tar >= 1:1.22
BuildRequires: xmlto
+BuildRequires: xz
+Requires(post,preun,postun): systemd-units >= 38
+Requires: polkit >= 0.102
+Requires: systemd-units >= 0.38
+Suggests: ConsoleKit
+Obsoletes: accountsservice-systemd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
- An implementation of these interfaces based on the usermod(8),
useradd(8) and userdel(8) commands.
+%description -l pl.UTF-8
+Projekt AccountsService dostarcza:
+- Zbiór interfejsów D-Bus do odpytywania i manipulowania informacjami
+ o kontach użytkowników.
+- Implementacje tych interfejsów oparte o komendy usermod(8),
+ useradd(8) i userdel(8).
+
%package devel
Summary: accountsservice includes, and more
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki accountsservice
%description static -l pl.UTF-8
Statyczna biblioteka accountsservice.
+%package -n vala-accountsservice
+Summary: accountsservice API for Vala language
+Summary(pl.UTF-8): API accountsservice dla języka Vala
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description -n vala-accountsservice
+accountsservice API for Vala language.
+
+%description -n vala-accountsservice -l pl.UTF-8
+API accountsservice dla języka Vala.
+
%prep
%setup -q
%{__automake}
%configure \
XMLTO_FLAGS="--skip-validation" \
+ --disable-silent-rules \
+ --with-systemdsystemunitdir=%{systemdunitdir} \
--enable-docbook-docs
%{__make}
%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)
%doc AUTHORS NEWS README TODO doc/dbus/AccountsService.html
-/etc/dbus-1/system.d/org.freedesktop.Accounts.conf
-%attr(755,root,root) %{_libdir}/accounts-daemon
-%{_libdir}/girepository-1.0/AccountsService-1.0.typelib
+%attr(755,root,root) %{_libexecdir}/accounts-daemon
+%attr(755,root,root) %{_libdir}/libaccountsservice.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libaccountsservice.so.0
-%attr(755,root,root) %{_libdir}/libaccountsservice.so.0.0.0
-%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
+%{_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
+%dir /var/lib/AccountsService/icons
+%dir /var/lib/AccountsService/users
%files devel
%defattr(644,root,root,755)
-%{_datadir}/gir-1.0/AccountsService-1.0.gir
-%{_pkgconfigdir}/accountsservice.pc
%attr(755,root,root) %{_libdir}/libaccountsservice.so
%{_includedir}/accountsservice-1.0
+%{_pkgconfigdir}/accountsservice.pc
+%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
+%{_datadir}/gir-1.0/AccountsService-1.0.gir
%files static
%defattr(644,root,root,755)
%{_libdir}/libaccountsservice.a
+
+%files -n vala-accountsservice
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/accountsservice.deps
+%{_datadir}/vala/vapi/accountsservice.vapi