70a90c
%global _hardened_build 1
70a90c
70a90c
Name:           accountsservice
70a90c
Version:        0.6.55
70a90c
Release:        10%{?dist}
70a90c
Summary:        D-Bus interfaces for querying and manipulating user account information
70a90c
License:        GPLv3+
70a90c
URL:            https://www.freedesktop.org/wiki/Software/AccountsService/
70a90c
70a90c
#VCS: git:git://git.freedesktop.org/accountsservice
70a90c
Source0:        http://www.freedesktop.org/software/accountsservice/accountsservice-%{version}.tar.xz
70a90c
Source1:        user-template
70a90c
70a90c
BuildRequires:  gettext-devel
70a90c
BuildRequires:  pkgconfig(dbus-1)
70a90c
BuildRequires:  glib2-devel
70a90c
BuildRequires:  polkit-devel
70a90c
BuildRequires:  systemd
70a90c
BuildRequires:  systemd-devel
70a90c
BuildRequires:  gobject-introspection-devel
70a90c
BuildRequires:  gtk-doc
70a90c
BuildRequires:  git
70a90c
BuildRequires:  meson
70a90c
70a90c
Requires:       polkit
70a90c
Requires:       shadow-utils
70a90c
%{?systemd_requires}
70a90c
70a90c
Patch10001:     0001-data-don-t-send-change-updates-for-login-history.patch
70a90c
70a90c
Patch20001:     0001-daemon-if-no-local-users-check-if-machine-is-enrolle.patch
70a90c
70a90c
Patch30001:     0001-lib-save-os-when-creating-user.patch
70a90c
70a90c
Patch40001:     0001-user-Introduce-user-templates-for-setting-default-se.patch
70a90c
70a90c
Patch50001:     0001-daemon-Allow-SystemAccount-false-to-be-set-in-cache-.patch
70a90c
Patch50002:     0002-main-Allow-cache-files-to-be-marked-immutable.patch
70a90c
70a90c
%description
70a90c
The accountsservice project provides a set of D-Bus interfaces for
70a90c
querying and manipulating user account information and an implementation
70a90c
of these interfaces, based on the useradd, usermod and userdel commands.
70a90c
70a90c
%package libs
70a90c
Summary: Client-side library to talk to accountsservice
70a90c
Requires: %{name} = %{version}-%{release}
70a90c
70a90c
%description libs
70a90c
The accountsservice-libs package contains a library that can
70a90c
be used by applications that want to interact with the accountsservice
70a90c
daemon.
70a90c
70a90c
%package devel
70a90c
Summary: Development files for accountsservice-libs
70a90c
Requires: %{name}-libs = %{version}-%{release}
70a90c
70a90c
%description devel
70a90c
The accountsservice-devel package contains headers and other
70a90c
files needed to build applications that use accountsservice-libs.
70a90c
70a90c
70a90c
%prep
70a90c
%autosetup -S git
70a90c
70a90c
%build
70a90c
%meson -Dgtk_doc=true -Dsystemd=true -Duser_heuristics=true
70a90c
%meson_build
70a90c
70a90c
%install
70a90c
%meson_install
70a90c
70a90c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/accountsservice/interfaces/
70a90c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/accountsservice/user-templates $RPM_BUILD_ROOT%{_sysconfdir}/accountsservice/user-templates
70a90c
cp $RPM_SOURCE_DIR/user-template $RPM_BUILD_ROOT%{_datadir}/accountsservice/user-templates/standard
70a90c
cp $RPM_SOURCE_DIR/user-template $RPM_BUILD_ROOT%{_datadir}/accountsservice/user-templates/administrator
70a90c
70a90c
70a90c
%find_lang accounts-service
70a90c
70a90c
%ldconfig_scriptlets libs
70a90c
70a90c
%post
70a90c
%systemd_post accounts-daemon.service
70a90c
70a90c
%preun
70a90c
%systemd_preun accounts-daemon.service
70a90c
70a90c
%postun
70a90c
%systemd_postun accounts-daemon.service
70a90c
70a90c
%files -f accounts-service.lang
70a90c
%license COPYING
70a90c
%doc README.md AUTHORS
70a90c
%dir %{_sysconfdir}/accountsservice/user-templates
70a90c
%dir %{_sysconfdir}/accountsservice
70a90c
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Accounts.conf
70a90c
%{_libexecdir}/accounts-daemon
70a90c
%dir %{_datadir}/accountsservice/
70a90c
%dir %{_datadir}/accountsservice/interfaces/
70a90c
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
70a90c
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
70a90c
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service
70a90c
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy
70a90c
%{_datadir}/accountsservice/interfaces/com.redhat.AccountsServiceUser.System.xml
70a90c
%{_datadir}/accountsservice/user-templates/administrator
70a90c
%{_datadir}/accountsservice/user-templates/standard
70a90c
%{_datadir}/dbus-1/interfaces/com.redhat.AccountsServiceUser.System.xml
70a90c
%dir %{_localstatedir}/lib/AccountsService/
70a90c
%attr(0700, root, root) %dir %{_localstatedir}/lib/AccountsService/users
70a90c
%attr(0775, root, root) %dir %{_localstatedir}/lib/AccountsService/icons
70a90c
%{_unitdir}/accounts-daemon.service
70a90c
70a90c
%files libs
70a90c
%{_libdir}/libaccountsservice.so.*
70a90c
%{_libdir}/girepository-1.0/AccountsService-1.0.typelib
70a90c
70a90c
%files devel
70a90c
%{_includedir}/accountsservice-1.0
70a90c
%{_libdir}/libaccountsservice.so
70a90c
%{_libdir}/pkgconfig/accountsservice.pc
70a90c
%{_datadir}/gir-1.0/AccountsService-1.0.gir
70a90c
%dir %{_datadir}/gtk-doc/html/libaccountsservice
70a90c
%{_datadir}/gtk-doc/html/libaccountsservice/*
70a90c
70a90c
%changelog
70a90c
* Thu Feb 24 2022 Ray Strode <rstrode@redhat.com> - 0.6.55-10
70a90c
- Synchronize permissions and group ownership for icon and users dirs
70a90c
  between rpm file manifest and daemon expectations.
70a90c
  Resolves: #2057576
70a90c
70a90c
* Mon Oct 25 2021 Ray Strode <rstrode@redhat.com> - 0.6.55-9
70a90c
- Bring in RHEL-8 patches
70a90c
  Resolves: #2014692
70a90c
70a90c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.55-8
70a90c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
70a90c
  Related: rhbz#1991688
70a90c
70a90c
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.55-7
70a90c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
70a90c
70a90c
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.55-6
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
70a90c
70a90c
* Fri Sep 04 2020 Bastien Nocera <bnocera@redhat.com> - 0.6.55-5
70a90c
+ accountsservice-0.6.55-5
70a90c
- Own /usr/share/accountsservice
70a90c
70a90c
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.55-4
70a90c
- Second attempt - Rebuilt for
70a90c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70a90c
70a90c
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.55-3
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70a90c
70a90c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.55-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
70a90c
70a90c
* Thu Sep 26 2019 Benjamin Berg <bberg@redhat.com> - 0.6.55-1
70a90c
- Update to 0.6.55
70a90c
  Resolves: #1755838
70a90c
70a90c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.54-6
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
70a90c
70a90c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.54-5
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
70a90c
70a90c
* Mon Jan 21 2019 Alexandru-Sever Horin <alex.sever.h@gmail.com> - 0.6.54-4
70a90c
- Add patch from upstream to fix UID detection
70a90c
  Resolves: #1646418
70a90c
70a90c
* Thu Jan 17 2019 Adam Williamson <awilliam@redhat.com> - 0.6.54-3
70a90c
- Explicitly enable systemd support (#1576903) (Elliott Sales de Andrade)
70a90c
70a90c
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 0.6.54-2
70a90c
- Rebuilt for libcrypt.so.2 (#1666033)
70a90c
70a90c
* Sat Sep 29 2018 Ray Strode <rstrode@redhat.com> - 0.6.54-1
70a90c
- Update to 0.6.54
70a90c
70a90c
* Thu Sep 27 2018 Ray Strode <rstrode@redhat.com> - 0.6.53-1
70a90c
- Update to 0.6.53
70a90c
70a90c
* Mon Sep 24 2018 Adam Williamson <awilliam@redhat.com> - 0.6.50-1
70a90c
- Update to 0.6.50, plus a couple of backported patches
70a90c
  Resolves: #1576903
70a90c
70a90c
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.49-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
70a90c
70a90c
* Thu May 10 2018 Ray Strode <rstrode@redhat.com> - 0.6.49-1
70a90c
- Update to 0.6.49 (brown bag release)
70a90c
70a90c
* Thu May 10 2018 Ray Strode <rstrode@redhat.com> - 0.6.48-1
70a90c
- Update to 0.6.48
70a90c
  Resolves: #1575780
70a90c
70a90c
* Fri May 04 2018 Ray Strode <rstrode@redhat.com> - 0.6.47-2
70a90c
- fix crash on user deletion
70a90c
  Resolves: #1573550
70a90c
70a90c
* Tue Apr 24 2018 Ray Strode <rstrode@redhat.com> - 0.6.47-1
70a90c
- Update to 0.6.47
70a90c
70a90c
* Sat Apr 21 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.46-1
70a90c
- Update to 0.6.46
70a90c
- Spec cleanup, use %%license
70a90c
70a90c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-9
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
70a90c
70a90c
* Sun Feb 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.42-8
70a90c
- Switch to %%ldconfig_scriptlets
70a90c
70a90c
* Thu Jan 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.42-7
70a90c
- Fix systemd executions/requirements
70a90c
70a90c
* Wed Jan 24 2018 Ray Strode <rstrode@redhat.com> - 0.6.42-6
70a90c
- Fix crash introduced by glibc/libxcrypt change
70a90c
  https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt
70a90c
  Resolves: #1538181
70a90c
70a90c
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.6.42-5
70a90c
- Rebuilt for switch to libxcrypt
70a90c
70a90c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-4
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
70a90c
70a90c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-3
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
70a90c
70a90c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
70a90c
70a90c
* Thu Jun 09 2016 Ray Strode <rstrode@redhat.com> - 0.6.42-1
70a90c
- Update to 0.6.42
70a90c
- Fixes systemd incompatibility
70a90c
70a90c
* Tue May 31 2016 Ray Strode <rstrode@redhat.com> - 0.6.40-4
70a90c
- Don't create /root/.cache at startup
70a90c
  Resolves: #1331926
70a90c
70a90c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.40-3
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
70a90c
70a90c
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.40-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
70a90c
70a90c
* Fri Jan 23 2015 Ray Strode <rstrode@redhat.com> 0.6.40-1
70a90c
- Update to 0.6.40
70a90c
70a90c
* Fri Oct 17 2014 Ray Strode <rstrode@redhat.com> 0.6.39-2
70a90c
- More ListCachedUsers race fixes (this time with SSSD)
70a90c
  Related: #1147504
70a90c
70a90c
* Thu Oct 16 2014 Ray Strode <rstrode@redhat.com> 0.6.39-1
70a90c
- Update to 0.6.39
70a90c
- Fixes ListCachedUsers race at startup
70a90c
70a90c
* Thu Sep 18 2014 Stef Walter <stefw@redhat.com> - 0.6.38-1
70a90c
- Update to 0.6.38
70a90c
- Fixes polkit policy rhbz#1094138
70a90c
- Remove dbus-glib-devel dependency, accountsservice uses gdbus now
70a90c
70a90c
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.37-3
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
70a90c
70a90c
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.37-2
70a90c
- Rebuilt for gobject-introspection 1.41.4
70a90c
70a90c
* Sat Jun 07 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.37-1
70a90c
- Update to 0.6.37, drop upstreamed patches
70a90c
70a90c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.35-5
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
70a90c
70a90c
* Fri Jan 10 2014 Matthias Clasen <mclasen@redhat.com> - 0.6.35-4
70a90c
- Consistently call userdel with -f
70a90c
70a90c
* Wed Nov 20 2013 Ray Strode <rstrode@redhat.com> 0.6.35-3
70a90c
- Only treat users < 1000 as system users
70a90c
- only use user heuristics on the range 500-1000
70a90c
70a90c
* Mon Nov 11 2013 Ray Strode <rstrode@redhat.com> 0.6.35-2
70a90c
- pass --enable-user-heuristics which fedora needs so users
70a90c
  with UIDs less than 1000 show up in the user list.
70a90c
70a90c
* Mon Oct 28 2013 Ray Strode <rstrode@redhat.com> 0.6.35-1
70a90c
- Update to 0.6.35
70a90c
  Related: #1013721
70a90c
70a90c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.34-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
70a90c
70a90c
* Tue Jun 11 2013 Ray Strode <rstrode@redhat.com> 0.6.34-1
70a90c
- Update to 0.6.34
70a90c
70a90c
* Tue Jun 11 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.33-1
70a90c
- Update to 0.6.33
70a90c
70a90c
* Tue May 14 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.32-1
70a90c
- Update to 0.6.32
70a90c
70a90c
* Thu Apr 18 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-2
70a90c
- Hardened build
70a90c
70a90c
* Tue Apr 16 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-1
70a90c
- Update to 0.6.31
70a90c
70a90c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.30-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
70a90c
70a90c
* Wed Jan 16 2013 Richard Hughes <rhughes@redhat.com> - 0.6.30-1
70a90c
- Update to 0.6.30
70a90c
70a90c
* Fri Nov 16 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.26-1
70a90c
- Update to 0.6.26
70a90c
70a90c
* Tue Oct  2 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.25-2
70a90c
- Update to 0.6.25
70a90c
- Use systemd scriptlets (#856649)
70a90c
70a90c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.22-3
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
70a90c
70a90c
* Sat Jul 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.6.22-2
70a90c
- Add ldconfig scriptlets to -libs.
70a90c
70a90c
* Thu Jun 28 2012 Ray Strode <rstrode@redhat.com> 0.6.22-1
70a90c
- Update to 0.6.22.
70a90c
- Fixes CVE-2012-2737 - local file disclosure
70a90c
  Related:  #832532
70a90c
70a90c
* Thu May 30 2012 Matthias Clasen <mclasen@redhatcom> 0.6.21-1
70a90c
- Update to 0.6.21
70a90c
70a90c
* Fri May 04 2012 Ray Strode <rstrode@redhat.com> 0.6.20-1
70a90c
- Update to 0.6.20. Should fix user list.
70a90c
  Related: #814690
70a90c
70a90c
* Thu May 03 2012 Ray Strode <rstrode@redhat.com> 0.6.19-1
70a90c
- Update to 0.6.19
70a90c
  Allows user deletion of logged in users
70a90c
  Related: #814690
70a90c
70a90c
* Wed Apr 11 2012 Matthias Clasen <mclsaen@redhat.com> - 0.6.18-1
70a90c
- Update to 0.6.18
70a90c
70a90c
* Tue Mar 27 2012 Ray Strode <rstrode@redhat.com> 0.6.17-1
70a90c
- Update to latest release
70a90c
70a90c
* Sun Mar  4 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.6.15-4
70a90c
- Fix unitdir with usrmove
70a90c
70a90c
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.15-3
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
70a90c
70a90c
* Tue Nov 29 2011 Matthias Clasen <mclasen@redhat.com> 0.6.15-2
70a90c
- Make resetting user icons work
70a90c
- Update to 0.6.15
70a90c
- Fixes session chooser at login screen when logged into vt
70a90c
70a90c
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-2
70a90c
- Fix wtmp loading so users coming from the network are
70a90c
  remembered in the user list in subsequent boots
70a90c
70a90c
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-1
70a90c
- Update to 0.6.14
70a90c
70a90c
* Sun Sep  4 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-3
70a90c
- Fix fast user switching
70a90c
70a90c
* Mon Aug 15 2011 Kalev Lember <kalevlember@gmail.com> - 0.6.13-2
70a90c
- Rebuilt for rpm bug #728707
70a90c
70a90c
* Tue Jul 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-1
70a90c
- Update to 0.6.13
70a90c
- Drop ConsoleKit dependency
70a90c
70a90c
* Mon Jun 06 2011 Ray Strode <rstrode@redhat.com> 0.6.12-1
70a90c
- Update to latest release
70a90c
70a90c
* Wed May 18 2011 Matthias Clasen <mclasen@redhat.com> 0.6.11-1
70a90c
- Update to 0.6.11
70a90c
70a90c
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
70a90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
70a90c
70a90c
* Wed Feb 02 2011 Ray Strode <rstrode@redhat.com> 0.6.3-1
70a90c
- Update to 0.6.3
70a90c
70a90c
* Thu Jan 27 2011 Matthias Clasen <mclasen@redhat.com> 0.6.2-1
70a90c
- Update to 0.6.2
70a90c
70a90c
* Wed Jul 21 2010 Matthias Clasen <mclasen@redhat.com> 0.6.1-1
70a90c
- Update to 0.6.1
70a90c
- Install systemd unit file
70a90c
70a90c
* Mon Apr  5 2010 Matthias Clasen <mclasen@redhat.com> 0.6-2
70a90c
- Always emit changed signal on icon change
70a90c
70a90c
* Tue Mar 30 2010 Matthias Clasen <mclasen@redhat.com> 0.6-1
70a90c
- Update to 0.6
70a90c
70a90c
* Mon Mar 22 2010 Matthias Clasen <mclasen@redhat.com> 0.5-1
70a90c
- Update to 0.5
70a90c
70a90c
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-3
70a90c
- Fix directory ownership
70a90c
70a90c
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-2
70a90c
- Add missing directories to the filelist
70a90c
70a90c
* Fri Jan 29 2010 Matthias Clasen <mclasen@redhat.com> 0.4-1
70a90c
-