%global _hardened_build 1 Name: accountsservice Version: 0.6.35 Release: 12%{?dist} Summary: D-Bus interfaces for querying and manipulating user account information Group: System Environment/Daemons License: GPLv3+ URL: http://www.fedoraproject.org/wiki/Features/UserAccountDialog #VCS: git:git://git.freedesktop.org/accountsservice Source0: http://www.freedesktop.org/software/accountsservice/accountsservice-%{version}.tar.xz BuildRequires: glib2-devel BuildRequires: dbus-glib-devel BuildRequires: polkit-devel BuildRequires: intltool BuildRequires: systemd-units BuildRequires: systemd-devel BuildRequires: gobject-introspection-devel BuildRequires: automake, autoconf, libtool BuildRequires: gtk-doc Requires: polkit Requires: shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Patch0: rip-out-extension-interface.patch Patch1: 0001-Avoid-deleting-the-root-user.patch Patch2: fix-user-classification-logic.patch Patch3: userdel-f.patch Patch4: fix-leak.patch Patch5: 0001-Add-asynchronous-api-for-user-uncaching.patch Patch6: 0001-systemd-ensure-that-accounts-service-starts-after-NS.patch Patch7: scale-better.patch Patch8: fix-log-leak.patch Patch9: 0001-user-classify-exclude-nologin-users.patch Patch10: 0001-configure-actually-define-HAVE_GETUSERSHELL.patch %package libs Summary: Client-side library to talk to accountsservice Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description libs The accountsservice-libs package contains a library that can be used by applications that want to interact with the accountsservice daemon. %package devel Summary: Development files for accountsservice-libs Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel The accountsservice-devel package contains headers and other files needed to build applications that use accountsservice-libs. %description The accountsservice project provides a set of D-Bus interfaces for querying and manipulating user account information and an implementation of these interfaces, based on the useradd, usermod and userdel commands. %prep %setup -q %patch0 -p1 -b .rip-out-extension-interface %patch1 -p1 -b .dont-delete-root %patch2 -p1 -b .fix-user-classification-logic %patch3 -p1 -b .userdel-f %patch4 -p1 -b .fix-leak %patch5 -p1 -b .async-api-uncaching %patch6 -p1 -b .start-after-nsswitch %patch7 -p1 -b .scale-better %patch8 -p1 -b .fix-log-leak %patch9 -p1 -b .hide-nologin-users %patch10 -p1 -b .define-HAVE_GETUSERSHELL %build autoreconf -f -i %configure --enable-user-heuristics make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT rm $RPM_BUILD_ROOT%{_libdir}/*.la rm $RPM_BUILD_ROOT%{_libdir}/*.a %find_lang accounts-service %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post %systemd_post accounts-daemon.service %preun %systemd_preun accounts-daemon.service %postun %systemd_postun accounts-daemon.service %files -f accounts-service.lang %defattr(-,root,root,-) %doc COPYING README AUTHORS %{_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 %dir %{_localstatedir}/lib/AccountsService/ %dir %{_localstatedir}/lib/AccountsService/users %dir %{_localstatedir}/lib/AccountsService/icons %{_unitdir}/accounts-daemon.service %files libs %{_libdir}/libaccountsservice.so.* %{_libdir}/girepository-1.0/AccountsService-1.0.typelib %files devel %{_includedir}/accountsservice-1.0 %{_libdir}/libaccountsservice.so %{_libdir}/pkgconfig/accountsservice.pc %{_datadir}/gir-1.0/AccountsService-1.0.gir %dir %{_datadir}/gtk-doc/html/libaccountsservice %{_datadir}/gtk-doc/html/libaccountsservice/* %changelog * Tue Sep 06 2016 Ray Strode - 0.6.35-12 - hide users with /sbin/nologin shell Resolves: #1341276 * Fri Jul 01 2016 Ray Strode - 0.6.35-11 - address minor bug in previous patch Related: #1220904 - fix memory leak in log handler Resolves: #1292543 * Thu Jun 30 2016 Ray Strode - 0.6.35-10 - scale to a large number of remote users better Resolves: #1220904 * Mon Jun 08 2015 Ray Strode 0.6.35-9 - Start after nsswitch and ypbind Resolves: #1217439 * Tue Jun 2 2015 Ondrej Holy 0.6.35-8 - Add asynchronous api for user uncaching Resolves: #1147999 * Wed Jan 29 2014 Ray Strode 0.6.35-7 - Fix memory leak Resolves: #1003033 * Tue Jan 28 2014 Daniel Mach - 0.6.35-6 - Mass rebuild 2014-01-24 * Fri Jan 10 2014 Matthias Clasen 0.6.35-5 - Consistently call userdel -f Resolves: #1051629 * Fri Dec 27 2013 Daniel Mach - 0.6.35-4 - Mass rebuild 2013-12-27 * Tue Nov 19 2013 Ray Strode 0.6.35-3 - Fix up user classification logic to work better with remote users. Resolves: #1029195 * Fri Nov 1 2013 Matthias Clasen 0.6.35-2 - Refuse to delete the root user - Resolves: #1002973 * Tue Oct 22 2013 Ray Strode 0.6.35-1 - Update to 0.6.35 Resolves: #1019488 * Tue Jun 11 2013 Ray Strode 0.6.34-1 - Update to 0.6.34 * Tue Jun 11 2013 Matthias Clasen - 0.6.33-1 - Update to 0.6.33 * Tue May 14 2013 Matthias Clasen - 0.6.32-1 - Update to 0.6.32 * Thu Apr 18 2013 Matthias Clasen - 0.6.31-2 - Hardened build * Tue Apr 16 2013 Matthias Clasen - 0.6.31-1 - Update to 0.6.31 * Wed Feb 13 2013 Fedora Release Engineering - 0.6.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jan 16 2013 Richard Hughes - 0.6.30-1 - Update to 0.6.30 * Fri Nov 16 2012 Matthias Clasen - 0.6.26-1 - Update to 0.6.26 * Tue Oct 2 2012 Matthias Clasen - 0.6.25-2 - Update to 0.6.25 - Use systemd scriptlets (#856649) * Wed Jul 18 2012 Fedora Release Engineering - 0.6.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jul 14 2012 Ville Skyttä - 0.6.22-2 - Add ldconfig scriptlets to -libs. * Thu Jun 28 2012 Ray Strode 0.6.22-1 - Update to 0.6.22. - Fixes CVE-2012-2737 - local file disclosure Related: #832532 * Thu May 30 2012 Matthias Clasen 0.6.21-1 - Update to 0.6.21 * Fri May 04 2012 Ray Strode 0.6.20-1 - Update to 0.6.20. Should fix user list. Related: #814690 * Thu May 03 2012 Ray Strode 0.6.19-1 - Update to 0.6.19 Allows user deletion of logged in users Related: #814690 * Wed Apr 11 2012 Matthias Clasen - 0.6.18-1 - Update to 0.6.18 * Tue Mar 27 2012 Ray Strode 0.6.17-1 - Update to latest release * Sun Mar 4 2012 Peter Robinson - 0.6.15-4 - Fix unitdir with usrmove * Thu Jan 12 2012 Fedora Release Engineering - 0.6.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Nov 29 2011 Matthias Clasen 0.6.15-2 - Make resetting user icons work - Update to 0.6.15 - Fixes session chooser at login screen when logged into vt * Wed Sep 21 2011 Ray Strode 0.6.14-2 - Fix wtmp loading so users coming from the network are remembered in the user list in subsequent boots * Wed Sep 21 2011 Ray Strode 0.6.14-1 - Update to 0.6.14 * Sun Sep 4 2011 Matthias Clasen - 0.6.13-3 - Fix fast user switching * Mon Aug 15 2011 Kalev Lember - 0.6.13-2 - Rebuilt for rpm bug #728707 * Tue Jul 19 2011 Matthias Clasen - 0.6.13-1 - Update to 0.6.13 - Drop ConsoleKit dependency * Mon Jun 06 2011 Ray Strode 0.6.12-1 - Update to latest release * Wed May 18 2011 Matthias Clasen 0.6.11-1 - Update to 0.6.11 * Mon Feb 07 2011 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Feb 02 2011 Ray Strode 0.6.3-1 - Update to 0.6.3 * Thu Jan 27 2011 Matthias Clasen 0.6.2-1 - Update to 0.6.2 * Wed Jul 21 2010 Matthias Clasen 0.6.1-1 - Update to 0.6.1 - Install systemd unit file * Mon Apr 5 2010 Matthias Clasen 0.6-2 - Always emit changed signal on icon change * Tue Mar 30 2010 Matthias Clasen 0.6-1 - Update to 0.6 * Mon Mar 22 2010 Matthias Clasen 0.5-1 - Update to 0.5 * Mon Feb 22 2010 Bastien Nocera 0.4-3 - Fix directory ownership * Mon Feb 22 2010 Bastien Nocera 0.4-2 - Add missing directories to the filelist * Fri Jan 29 2010 Matthias Clasen 0.4-1 - Initial packaging, based on work by Richard Hughes