c808e4
%global _hardened_build 1
c808e4
c808e4
Name:           accountsservice
c808e4
Version:        0.6.50
c808e4
Release:        7%{?dist}
c808e4
Summary:        D-Bus interfaces for querying and manipulating user account information
c808e4
License:        GPLv3+
c808e4
URL:            https://www.freedesktop.org/wiki/Software/AccountsService/
c808e4
c808e4
#VCS: git:git://git.freedesktop.org/accountsservice
c808e4
Source0:        http://www.freedesktop.org/software/accountsservice/accountsservice-%{version}.tar.xz
c808e4
c808e4
BuildRequires:  glib2-devel
c808e4
BuildRequires:  polkit-devel
c808e4
BuildRequires:  intltool
c808e4
BuildRequires:  systemd-units
c808e4
BuildRequires:  systemd-devel
c808e4
BuildRequires:  gobject-introspection-devel
c808e4
BuildRequires:  gtk-doc
c808e4
BuildRequires:  git
c808e4
c808e4
Requires:       polkit
c808e4
Requires:       shadow-utils
c808e4
c808e4
Patch0: 0001-lib-don-t-set-loaded-state-until-seat-is-fetched.patch
c808e4
c808e4
Patch10001: 0001-data-don-t-send-change-updates-for-login-history.patch
c808e4
c808e4
Patch20001: 0001-daemon-ensure-cache-files-for-system-users-are-proce.patch
c808e4
c808e4
%description
c808e4
The accountsservice project provides a set of D-Bus interfaces for
c808e4
querying and manipulating user account information and an implementation
c808e4
of these interfaces, based on the useradd, usermod and userdel commands.
c808e4
c808e4
%package libs
c808e4
Summary: Client-side library to talk to accountsservice
c808e4
Requires: %{name} = %{version}-%{release}
c808e4
c808e4
%description libs
c808e4
The accountsservice-libs package contains a library that can
c808e4
be used by applications that want to interact with the accountsservice
c808e4
daemon.
c808e4
c808e4
%package devel
c808e4
Summary: Development files for accountsservice-libs
c808e4
Requires: %{name}-libs = %{version}-%{release}
c808e4
c808e4
%description devel
c808e4
The accountsservice-devel package contains headers and other
c808e4
files needed to build applications that use accountsservice-libs.
c808e4
c808e4
c808e4
%prep
c808e4
%autosetup -S git
c808e4
c808e4
%build
c808e4
%configure --enable-user-heuristics
c808e4
make %{?_smp_mflags}
c808e4
c808e4
c808e4
%install
c808e4
make install DESTDIR=$RPM_BUILD_ROOT
c808e4
rm $RPM_BUILD_ROOT%{_libdir}/*.la
c808e4
rm $RPM_BUILD_ROOT%{_libdir}/*.a
c808e4
%find_lang accounts-service
c808e4
c808e4
c808e4
%post libs -p /sbin/ldconfig
c808e4
c808e4
%postun libs -p /sbin/ldconfig
c808e4
c808e4
%post
c808e4
%systemd_post accounts-daemon.service
c808e4
c808e4
%preun
c808e4
%systemd_preun accounts-daemon.service
c808e4
c808e4
%postun
c808e4
%systemd_postun accounts-daemon.service
c808e4
c808e4
%files -f accounts-service.lang
c808e4
%doc COPYING README AUTHORS
c808e4
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Accounts.conf
c808e4
%{_libexecdir}/accounts-daemon
c808e4
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
c808e4
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
c808e4
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service
c808e4
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy
c808e4
%dir %{_localstatedir}/lib/AccountsService/
c808e4
%dir %{_localstatedir}/lib/AccountsService/users
c808e4
%dir %{_localstatedir}/lib/AccountsService/icons
c808e4
%{_unitdir}/accounts-daemon.service
c808e4
c808e4
%files libs
c808e4
%{_libdir}/libaccountsservice.so.*
c808e4
%{_libdir}/girepository-1.0/AccountsService-1.0.typelib
c808e4
c808e4
%files devel
c808e4
%{_includedir}/accountsservice-1.0
c808e4
%{_libdir}/libaccountsservice.so
c808e4
%{_libdir}/pkgconfig/accountsservice.pc
c808e4
%{_datadir}/gir-1.0/AccountsService-1.0.gir
c808e4
%dir %{_datadir}/gtk-doc/html/libaccountsservice
c808e4
%{_datadir}/gtk-doc/html/libaccountsservice/*
c808e4
c808e4
%changelog
c808e4
* Wed Oct 02 2019 Tomas Pelka <tpelka@redhat.com> - 0.6.50-7
c808e4
- version bump to prevent future update path introduced by RHBA-2019:45836
c808e4
  Resolves: #1721562
c808e4
c808e4
* Mon Jun 17 2019 Ray Strode <rstrode@redhat.com> - 0.6.50-6
c808e4
- Make sure cache file is read for root user
c808e4
  Resolves: #1721562
c808e4
c808e4
* Fri May 10 2019 Ray Strode <rstrode@redhat.com> - 0.6.50-5
c808e4
- Don't send change updates for login-history
c808e4
  Resolves: #1708741
c808e4
c808e4
* Thu Jul 19 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-2
c808e4
- Fix user switching
c808e4
  Resolves: #1597350
c808e4
c808e4
* Thu Jul 19 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-1
c808e4
- Update to 0.6.50
c808e4
  Related: #1576538
c808e4
  Related:  1596735
c808e4
  Related:  1602918
c808e4
c808e4
* Fri Jun 01 2018 Richard Hughes <rhughes@redhat.com> - 0.6.49-1
c808e4
- Update to 0.6.49
c808e4
  Resolves: #1576538
c808e4
c808e4
* Wed Feb 14 2018 Ray Strode <rstrode@redhat.com> - 0.6.45-7
c808e4
- Fix bug leading to harmless error in log
c808e4
  Resolves: #1544640
c808e4
c808e4
* Wed Feb 07 2018 Ray Strode <rstrode@redhat.com> - 0.6.45-6
c808e4
- Don't return bogus password expiration policy when
c808e4
  shadow file is unavailable
c808e4
  Resolves: #1530659
c808e4
c808e4
* Tue Jan 30 2018 Ray Strode <rstrode@redhat.com> - 0.6.45-5
c808e4
- Fix other crasher introduced in -3
c808e4
  Resolves: #1532252
c808e4
c808e4
* Fri Nov 03 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-4
c808e4
- Fix crasher introduced in -3
c808e4
  Related: #1474579, 1509261
c808e4
c808e4
* Wed Sep 27 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-3
c808e4
- Various fixes to increase scalability
c808e4
  Related: #1474579
c808e4
c808e4
* Mon May 15 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-2
c808e4
- Don't tread explicitly requested users as cached
c808e4
  Fixes UncacheUser operation.
c808e4
  Resolves: 1446620
c808e4
  Related: #1432602
c808e4
c808e4
* Mon Mar 27 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-1
c808e4
- Update to 0.6.45 so password expiration policy is wrapped by libaccountsservice
c808e4
  Related: #1424623 #1334464
c808e4
c808e4
* Mon Mar 27 2017 Ray Strode <rstrode@redhat.com> - 0.6.42-2
c808e4
- Update to 0.6.44
c808e4
  Related: #1424623
c808e4
- export password expiration policy from shadow
c808e4
  Resolves: #1334464
c808e4
c808e4
* Thu Oct 20 2016 Kalev Lember <klember@redhat.com> - 0.6.42-1
c808e4
- Update to 0.6.42
c808e4
- Resolves: #1424623
c808e4
c808e4
* Tue Sep 06 2016 Ray Strode <rstrode@redhat.com> - 0.6.35-12
c808e4
- hide users with /sbin/nologin shell
c808e4
  Resolves: #1341276
c808e4
c808e4
* Fri Jul 01 2016 Ray Strode <rstrode@redhat.com> - 0.6.35-11
c808e4
- address minor bug in previous patch
c808e4
  Related: #1220904
c808e4
c808e4
- fix memory leak in log handler
c808e4
  Resolves: #1292543
c808e4
c808e4
* Thu Jun 30 2016 Ray Strode <rstrode@redhat.com> - 0.6.35-10
c808e4
- scale to a large number of remote users better
c808e4
  Resolves: #1220904
c808e4
c808e4
* Mon Jun 08 2015 Ray Strode <rstrode@redhat.com> 0.6.35-9
c808e4
- Start after nsswitch and ypbind
c808e4
  Resolves: #1217439
c808e4
c808e4
* Tue Jun 2 2015 Ondrej Holy <oholy@redhat.com> 0.6.35-8
c808e4
- Add asynchronous api for user uncaching
c808e4
  Resolves: #1147999
c808e4
c808e4
* Wed Jan 29 2014 Ray Strode <rstrode@redhat.com> 0.6.35-7
c808e4
- Fix memory leak
c808e4
  Resolves: #1003033
c808e4
c808e4
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 0.6.35-6
c808e4
- Mass rebuild 2014-01-24
c808e4
c808e4
* Fri Jan 10 2014 Matthias Clasen <mclasen@redhat.com> 0.6.35-5
c808e4
- Consistently call userdel -f
c808e4
Resolves: #1051629
c808e4
c808e4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6.35-4
c808e4
- Mass rebuild 2013-12-27
c808e4
c808e4
* Tue Nov 19 2013 Ray Strode <rstrode@redhat.com> 0.6.35-3
c808e4
- Fix up user classification logic to work better with
c808e4
  remote users.
c808e4
  Resolves: #1029195
c808e4
c808e4
* Fri Nov  1 2013 Matthias Clasen <mclasen@redhat.com> 0.6.35-2
c808e4
- Refuse to delete the root user
c808e4
- Resolves: #1002973
c808e4
c808e4
* Tue Oct 22 2013 Ray Strode <rstrode@redhat.com> 0.6.35-1
c808e4
- Update to 0.6.35
c808e4
  Resolves: #1019488
c808e4
c808e4
* Tue Jun 11 2013 Ray Strode <rstrode@redhat.com> 0.6.34-1
c808e4
- Update to 0.6.34
c808e4
c808e4
* Tue Jun 11 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.33-1
c808e4
- Update to 0.6.33
c808e4
c808e4
* Tue May 14 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.32-1
c808e4
- Update to 0.6.32
c808e4
c808e4
* Thu Apr 18 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-2
c808e4
- Hardened build
c808e4
c808e4
* Tue Apr 16 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-1
c808e4
- Update to 0.6.31
c808e4
c808e4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.30-2
c808e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c808e4
c808e4
* Wed Jan 16 2013 Richard Hughes <rhughes@redhat.com> - 0.6.30-1
c808e4
- Update to 0.6.30
c808e4
c808e4
* Fri Nov 16 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.26-1
c808e4
- Update to 0.6.26
c808e4
c808e4
* Tue Oct  2 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.25-2
c808e4
- Update to 0.6.25
c808e4
- Use systemd scriptlets (#856649)
c808e4
c808e4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.22-3
c808e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c808e4
c808e4
* Sat Jul 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.6.22-2
c808e4
- Add ldconfig scriptlets to -libs.
c808e4
c808e4
* Thu Jun 28 2012 Ray Strode <rstrode@redhat.com> 0.6.22-1
c808e4
- Update to 0.6.22.
c808e4
- Fixes CVE-2012-2737 - local file disclosure
c808e4
  Related:  #832532
c808e4
c808e4
* Thu May 30 2012 Matthias Clasen <mclasen@redhatcom> 0.6.21-1
c808e4
- Update to 0.6.21
c808e4
c808e4
* Fri May 04 2012 Ray Strode <rstrode@redhat.com> 0.6.20-1
c808e4
- Update to 0.6.20. Should fix user list.
c808e4
  Related: #814690
c808e4
c808e4
* Thu May 03 2012 Ray Strode <rstrode@redhat.com> 0.6.19-1
c808e4
- Update to 0.6.19
c808e4
  Allows user deletion of logged in users
c808e4
  Related: #814690
c808e4
c808e4
* Wed Apr 11 2012 Matthias Clasen <mclsaen@redhat.com> - 0.6.18-1
c808e4
- Update to 0.6.18
c808e4
c808e4
* Tue Mar 27 2012 Ray Strode <rstrode@redhat.com> 0.6.17-1
c808e4
- Update to latest release
c808e4
c808e4
* Sun Mar  4 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.6.15-4
c808e4
- Fix unitdir with usrmove
c808e4
c808e4
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.15-3
c808e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c808e4
c808e4
* Tue Nov 29 2011 Matthias Clasen <mclasen@redhat.com> 0.6.15-2
c808e4
- Make resetting user icons work
c808e4
- Update to 0.6.15
c808e4
- Fixes session chooser at login screen when logged into vt
c808e4
c808e4
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-2
c808e4
- Fix wtmp loading so users coming from the network are
c808e4
  remembered in the user list in subsequent boots
c808e4
c808e4
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-1
c808e4
- Update to 0.6.14
c808e4
c808e4
* Sun Sep  4 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-3
c808e4
- Fix fast user switching
c808e4
c808e4
* Mon Aug 15 2011 Kalev Lember <kalevlember@gmail.com> - 0.6.13-2
c808e4
- Rebuilt for rpm bug #728707
c808e4
c808e4
* Tue Jul 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-1
c808e4
- Update to 0.6.13
c808e4
- Drop ConsoleKit dependency
c808e4
c808e4
* Mon Jun 06 2011 Ray Strode <rstrode@redhat.com> 0.6.12-1
c808e4
- Update to latest release
c808e4
c808e4
* Wed May 18 2011 Matthias Clasen <mclasen@redhat.com> 0.6.11-1
c808e4
- Update to 0.6.11
c808e4
c808e4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
c808e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c808e4
c808e4
* Wed Feb 02 2011 Ray Strode <rstrode@redhat.com> 0.6.3-1
c808e4
- Update to 0.6.3
c808e4
c808e4
* Thu Jan 27 2011 Matthias Clasen <mclasen@redhat.com> 0.6.2-1
c808e4
- Update to 0.6.2
c808e4
c808e4
* Wed Jul 21 2010 Matthias Clasen <mclasen@redhat.com> 0.6.1-1
c808e4
- Update to 0.6.1
c808e4
- Install systemd unit file
c808e4
c808e4
* Mon Apr  5 2010 Matthias Clasen <mclasen@redhat.com> 0.6-2
c808e4
- Always emit changed signal on icon change
c808e4
c808e4
* Tue Mar 30 2010 Matthias Clasen <mclasen@redhat.com> 0.6-1
c808e4
- Update to 0.6
c808e4
c808e4
* Mon Mar 22 2010 Matthias Clasen <mclasen@redhat.com> 0.5-1
c808e4
- Update to 0.5
c808e4
c808e4
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-3
c808e4
- Fix directory ownership
c808e4
c808e4
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-2
c808e4
- Add missing directories to the filelist
c808e4
c808e4
* Fri Jan 29 2010 Matthias Clasen <mclasen@redhat.com> 0.4-1
c808e4
- Initial packaging, based on work by Richard Hughes