2011-04-21 13:21:32 +02:00
#
# spec file for package accountsservice
#
2018-03-09 11:02:05 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2011-04-21 13:21:32 +02:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-04-21 13:21:46 +02:00
2011-04-21 13:21:32 +02:00
Name : accountsservice
2018-07-23 05:16:43 +02:00
Version : 0.6.50
2011-12-21 05:26:00 +01:00
Release : 0
2011-04-21 13:21:32 +02:00
Summary : D-Bus Service to Manipulate User Account Information
2018-03-09 11:02:05 +01:00
License : GPL-3.0-or-later
2011-04-21 13:21:32 +02:00
Group : System/Daemons
2018-03-09 11:02:05 +01:00
URL : http://www.freedesktop.org/wiki/Software/AccountsService/
2011-07-20 11:14:14 +02:00
Source : http://www.freedesktop.org/software/accountsservice/%{name} -%{version} .tar.xz
2018-06-13 09:23:28 +02:00
2011-07-22 15:04:29 +02:00
# WARNING: do not remove/significantly change patch0 without updating the relevant patch in gdm too
# PATCH-FIX-OPENSUSE accountsservice-sysconfig.patch bnc#688071 vuntz@opensuse.org -- Read/write autologin configuration from sysconfig, like gdm (see gdm-sysconfig-settings.patch)
Patch0 : accountsservice-sysconfig.patch
2012-04-06 16:09:48 +02:00
# PATCH-FIX-OPENSUSE accountsservice-filter-suse-accounts.patch vuntz@opensuse.org -- Filter out some system users that are specific to openSUSE
2012-05-14 18:34:08 +02:00
Patch1 : accountsservice-filter-suse-accounts.patch
2018-07-22 20:59:03 +02:00
# PATCH-FIX-UPSTREAM accountsservice-lib-don-not-set-loaded-state-until-seat-fetched.patch boo#1100041 fdo#107298 -- lib: don't set loaded state until seat is fetched
Patch4 : accountsservice-lib-don-not-set-loaded-state-until-seat-fetched.patch
2018-12-12 10:57:16 +01:00
# PATCH-FIX-UPSTREAM accountsservice-read-root-user-cache.patch bsc#1114292 glfo#accountsservice/accountsservice#65 xwang@suse.com-- read root user cache file.
Patch5 : accountsservice-read-root-user-cache.patch
2018-05-14 13:01:53 +02:00
## SLE-only patches start at 1000
2016-08-03 14:55:27 +02:00
# PATCH-FEATURE-SLE as-fate318433-prevent-same-account-multi-logins.patch fate#318433 cxiong@suse.com -- prevent multiple simultaneous login.
2018-05-14 13:01:53 +02:00
Patch1000 : as-fate318433-prevent-same-account-multi-logins.patch
2012-04-18 17:23:37 +02:00
# needed for patch0
2018-06-13 09:23:28 +02:00
2011-09-05 10:14:23 +02:00
BuildRequires : gnome-common
2018-05-14 13:01:53 +02:00
BuildRequires : gobject-introspection-devel >= 0.40.0
2011-04-21 13:21:32 +02:00
BuildRequires : intltool
2018-03-09 11:02:05 +01:00
BuildRequires : pkgconfig
2012-04-18 17:23:37 +02:00
# needed for patch0
2012-03-28 07:59:03 +02:00
BuildRequires : vala
2018-05-14 13:01:53 +02:00
BuildRequires : xmlto
BuildRequires : xsltproc
BuildRequires : pkgconfig(gio-2.0) >= 2.37.3
BuildRequires : pkgconfig(gio-unix-2.0)
BuildRequires : pkgconfig(glib-2.0) >= 2.44
2016-06-19 11:58:44 +02:00
BuildRequires : pkgconfig(libsystemd) >= 186
2011-04-21 13:21:32 +02:00
BuildRequires : pkgconfig(polkit-gobject-1)
BuildRequires : pkgconfig(systemd)
Recommends: %{name} -lang
2012-02-28 00:11:29 +01:00
%{?systemd_requires}
2011-04-21 13:21:32 +02:00
%description
The accountsservice server provides a set of D-Bus interfaces for
querying and manipulating user account information.
The implementation is based on the useradd, usermod and userdel
commands.
%package -n libaccountsservice0
Summary : D-Bus Service to Manipulate User Account Information -- Client Library
# Clients do need the server to do something useful
2017-02-22 21:38:43 +01:00
Group : System/Libraries
2011-04-21 13:21:32 +02:00
Requires : %{name}
%description -n libaccountsservice0
The accountsservice server provides a set of D-Bus interfaces for
querying and manipulating user account information.
This package provides a client library for the service.
2011-12-12 16:53:25 +01:00
%package -n typelib-1_0-AccountsService-1_0
2011-12-21 05:26:00 +01:00
Summary : D-Bus Service to Manipulate User Account Information -- Introspection bindings
2011-12-12 16:53:25 +01:00
Group : System/Libraries
%description -n typelib-1_0-AccountsService-1_0
The accountsservice server provides a set of D-Bus interfaces for
querying and manipulating user account information.
2011-12-21 05:26:00 +01:00
This package provides the GObject Introspection bindings for the
client library.
2011-12-12 16:53:25 +01:00
2011-04-21 13:21:32 +02:00
%package devel
Summary : D-Bus Service to Manipulate User Account Information -- Development Files
Group : Development/Libraries/C and C++
Requires : libaccountsservice0 = %{version}
2011-12-12 16:53:25 +01:00
Requires : typelib-1_0-AccountsService-1_0 = %{version}
2011-04-21 13:21:32 +02:00
%description devel
The accountsservice server provides a set of D-Bus interfaces for
querying and manipulating user account information.
%lang_package
2018-03-09 11:02:05 +01:00
2011-04-21 13:21:32 +02:00
%prep
%setup -q
2011-07-22 15:04:29 +02:00
%patch0 -p1
2012-04-25 13:59:42 +02:00
%patch1 -p1
2018-07-22 20:59:03 +02:00
%patch4 -p1
2018-12-12 10:57:16 +01:00
%patch5 -p1
2018-05-14 13:01:53 +02:00
# Sle-only patches start at 1000
2017-08-14 16:29:01 +02:00
%if !0%{?is_opensuse}
2018-05-14 13:01:53 +02:00
%patch1000 -p1
2016-08-03 14:55:27 +02:00
%endif
2011-04-21 13:21:32 +02:00
%build
2012-04-18 17:23:37 +02:00
# needed for patch0
2011-09-05 10:14:23 +02:00
NOCONFIGURE=1 gnome-autogen.sh
%configure \
2014-10-05 17:53:08 +02:00
--disable-static \
--enable-user-heuristics
2018-07-12 15:40:22 +02:00
make %{?_smp_mflags} V=1
2011-04-21 13:21:32 +02:00
%install
%make_install
%find_lang accounts-service
2018-03-09 11:02:05 +01:00
find %{buildroot} -type f -name " * . l a " -delete -print
2011-04-21 13:21:32 +02:00
2012-02-28 00:11:29 +01:00
%pre
%service_add_pre accounts-daemon.service
%post
%service_add_post accounts-daemon.service
%preun
%service_del_preun accounts-daemon.service
%postun
%service_del_postun accounts-daemon.service
2011-04-21 13:21:32 +02:00
%post -n libaccountsservice0 -p /sbin/ldconfig
%postun -n libaccountsservice0 -p /sbin/ldconfig
%files
2018-03-09 11:02:05 +01:00
%license COPYING
2018-05-14 13:01:53 +02:00
%doc NEWS README
2012-02-28 00:11:29 +01:00
%{_unitdir} /accounts-daemon.service
2011-04-21 13:21:32 +02:00
%{_sysconfdir} /dbus-1/system.d/org.freedesktop.Accounts.conf
%{_libexecdir} /accounts-daemon
%{_datadir} /dbus-1/interfaces/org.freedesktop.Accounts.xml
%{_datadir} /dbus-1/interfaces/org.freedesktop.Accounts.User.xml
%{_datadir} /dbus-1/system-services/org.freedesktop.Accounts.service
%{_datadir} /polkit-1/actions/org.freedesktop.accounts.policy
# Directories where the server stores user data
%dir %{_localstatedir} /lib/AccountsService
%dir %{_localstatedir} /lib/AccountsService/users
%dir %{_localstatedir} /lib/AccountsService/icons
%files -n libaccountsservice0
%{_libdir} /*.so.0*
2011-12-12 16:53:25 +01:00
%files -n typelib-1_0-AccountsService-1_0
2011-09-05 10:14:23 +02:00
%{_libdir} /girepository-1.0/AccountsService-1.0.typelib
2011-04-21 13:21:32 +02:00
%files devel
2018-05-14 13:01:53 +02:00
%doc AUTHORS TODO
2012-11-20 14:12:27 +01:00
%doc %{_datadir} /gtk-doc/html/lib%{name} /
2011-04-21 13:21:32 +02:00
%{_libdir} /*.so
%{_libdir} /pkgconfig/accountsservice.pc
%{_includedir} /accountsservice-1.0/
2011-09-05 10:14:23 +02:00
%{_datadir} /gir-1.0/AccountsService-1.0.gir
2011-04-21 13:21:32 +02:00
%files lang -f accounts-service.lang
%changelog