Blame SPECS/accountsservice.spec

ece282
%global _hardened_build 1
ece282
ece282
Name:           accountsservice
181da6
Version:        0.6.55
5d6ce7
Release:        2%{?dist}
ece282
Summary:        D-Bus interfaces for querying and manipulating user account information
ece282
License:        GPLv3+
ece282
URL:            https://www.freedesktop.org/wiki/Software/AccountsService/
ece282
ece282
#VCS: git:git://git.freedesktop.org/accountsservice
ece282
Source0:        http://www.freedesktop.org/software/accountsservice/accountsservice-%{version}.tar.xz
5d6ce7
Source1:        user-template
ece282
181da6
BuildRequires:  gettext-devel
181da6
BuildRequires:  pkgconfig(dbus-1)
ece282
BuildRequires:  glib2-devel
ece282
BuildRequires:  polkit-devel
ece282
BuildRequires:  systemd
ece282
BuildRequires:  systemd-devel
ece282
BuildRequires:  gobject-introspection-devel
ece282
BuildRequires:  gtk-doc
ece282
BuildRequires:  git
181da6
BuildRequires:  meson
ece282
ece282
Requires:       polkit
ece282
Requires:       shadow-utils
ece282
%{?systemd_requires}
ece282
181da6
Patch10001:     0001-data-don-t-send-change-updates-for-login-history.patch
181da6
181da6
Patch20001:     0001-daemon-if-no-local-users-check-if-machine-is-enrolle.patch
181da6
181da6
Patch30001:     0001-lib-save-os-when-creating-user.patch
181da6
5d6ce7
Patch40001:     0001-user-Introduce-user-templates-for-setting-default-se.patch
5d6ce7
ece282
%description
ece282
The accountsservice project provides a set of D-Bus interfaces for
ece282
querying and manipulating user account information and an implementation
ece282
of these interfaces, based on the useradd, usermod and userdel commands.
ece282
ece282
%package libs
ece282
Summary: Client-side library to talk to accountsservice
ece282
Requires: %{name} = %{version}-%{release}
ece282
ece282
%description libs
ece282
The accountsservice-libs package contains a library that can
ece282
be used by applications that want to interact with the accountsservice
ece282
daemon.
ece282
ece282
%package devel
ece282
Summary: Development files for accountsservice-libs
ece282
Requires: %{name}-libs = %{version}-%{release}
ece282
ece282
%description devel
ece282
The accountsservice-devel package contains headers and other
ece282
files needed to build applications that use accountsservice-libs.
ece282
ece282
ece282
%prep
ece282
%autosetup -S git
ece282
ece282
%build
181da6
%meson -Dgtk_doc=true -Dsystemd=true -Duser_heuristics=true
181da6
%meson_build
ece282
ece282
ece282
%install
181da6
%meson_install
181da6
5d6ce7
mkdir -p $RPM_BUILD_ROOT%{_datadir}/accountsservice/user-templates $RPM_BUILD_ROOT%{_sysconfdir}/accountsservice/user-templates
5d6ce7
cp $RPM_SOURCE_DIR/user-template $RPM_BUILD_ROOT%{_datadir}/accountsservice/user-templates/standard
5d6ce7
cp $RPM_SOURCE_DIR/user-template $RPM_BUILD_ROOT%{_datadir}/accountsservice/user-templates/administrator
5d6ce7
5d6ce7
ece282
%find_lang accounts-service
ece282
ece282
%ldconfig_scriptlets libs
ece282
ece282
%post
ece282
%systemd_post accounts-daemon.service
ece282
ece282
%preun
ece282
%systemd_preun accounts-daemon.service
ece282
ece282
%postun
ece282
%systemd_postun accounts-daemon.service
ece282
ece282
%files -f accounts-service.lang
ece282
%license COPYING
181da6
%doc README.md AUTHORS
5d6ce7
%dir %{_sysconfdir}/accountsservice/user-templates
5d6ce7
%dir %{_sysconfdir}/accountsservice
ece282
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Accounts.conf
ece282
%{_libexecdir}/accounts-daemon
ece282
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
ece282
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
ece282
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service
ece282
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy
ece282
%{_datadir}/accountsservice/interfaces/com.redhat.AccountsServiceUser.System.xml
5d6ce7
%{_datadir}/accountsservice/user-templates/administrator
5d6ce7
%{_datadir}/accountsservice/user-templates/standard
ece282
%{_datadir}/dbus-1/interfaces/com.redhat.AccountsServiceUser.System.xml
ece282
%dir %{_localstatedir}/lib/AccountsService/
ece282
%dir %{_localstatedir}/lib/AccountsService/users
ece282
%dir %{_localstatedir}/lib/AccountsService/icons
ece282
%{_unitdir}/accounts-daemon.service
ece282
ece282
%files libs
ece282
%{_libdir}/libaccountsservice.so.*
ece282
%{_libdir}/girepository-1.0/AccountsService-1.0.typelib
ece282
ece282
%files devel
ece282
%{_includedir}/accountsservice-1.0
ece282
%{_libdir}/libaccountsservice.so
ece282
%{_libdir}/pkgconfig/accountsservice.pc
ece282
%{_datadir}/gir-1.0/AccountsService-1.0.gir
ece282
%dir %{_datadir}/gtk-doc/html/libaccountsservice
ece282
%{_datadir}/gtk-doc/html/libaccountsservice/*
ece282
ece282
%changelog
5d6ce7
* Wed Aug 04 2021 Ray Strode <rstrode@redhat.com> - 0.6.55-2
5d6ce7
- Add support for user templates so user can specify default session
5d6ce7
  Resolves: #1812788
5d6ce7
181da6
* Fri Jan 15 2021 Ray Strode <rstrode@redhat.com> - 0.6.55-1
181da6
- Rebase to 0.6.55
181da6
  Resolves: #1846376
181da6
8734ae
* Sun Dec 15 2019 Ray Strode <rstrode@redhat.com> - 0.6.50-8
8734ae
- Don't set HasNoUsers=true if realmd has providers
8734ae
  Related: #1750516
8734ae
ece282
* Mon Jun 17 2019 Ray Strode <rstrode@redhat.com> - 0.6.50-7
ece282
- Don't send change updates for login history changes
ece282
  Resolves: #1713080
ece282
ece282
* Mon Nov 26 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-6
ece282
- Fix user switching before screen lock
ece282
  Resolves: #1653263
ece282
ece282
* Mon Oct 15 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-5
ece282
- Turn off aliasing optimizations until glib codegen is fixed
ece282
  Related: #1628060 1639428
ece282
ece282
* Fri Oct 12 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-4
ece282
  Correct rpmdiff complaints
ece282
  Related: #1628060
ece282
ece282
* Fri Oct 12 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-3
ece282
- Record OS in user data when creating new users
ece282
  Related: #1628060
ece282
ece282
* Mon Aug 20 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-2
ece282
- add new api needed for handling upgrades from RHEL 7
ece282
  Related: #1612915 1595825
ece282
ece282
* Fri Jul 13 2018 Ray Strode <rstrode@redhat.com> - 0.6.50-1
ece282
- Update to 0.6.50
ece282
  Related: #1597499
ece282
ece282
* Tue Apr 24 2018 Ray Strode <rstrode@redhat.com> - 0.6.47-1
ece282
- Update to 0.6.47
ece282
ece282
* Sat Apr 21 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.46-1
ece282
- Update to 0.6.46
ece282
- Spec cleanup, use %%license
ece282
ece282
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-9
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ece282
ece282
* Sun Feb 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.42-8
ece282
- Switch to %%ldconfig_scriptlets
ece282
ece282
* Thu Jan 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.42-7
ece282
- Fix systemd executions/requirements
ece282
ece282
* Wed Jan 24 2018 Ray Strode <rstrode@redhat.com> - 0.6.42-6
ece282
- Fix crash introduced by glibc/libxcrypt change
ece282
  https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt
ece282
  Resolves: #1538181
ece282
ece282
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.6.42-5
ece282
- Rebuilt for switch to libxcrypt
ece282
ece282
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-4
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ece282
ece282
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-3
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ece282
ece282
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.42-2
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ece282
ece282
* Thu Jun 09 2016 Ray Strode <rstrode@redhat.com> - 0.6.42-1
ece282
- Update to 0.6.42
ece282
- Fixes systemd incompatibility
ece282
ece282
* Tue May 31 2016 Ray Strode <rstrode@redhat.com> - 0.6.40-4
ece282
- Don't create /root/.cache at startup
ece282
  Resolves: #1331926
ece282
ece282
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.40-3
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ece282
ece282
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.40-2
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ece282
ece282
* Fri Jan 23 2015 Ray Strode <rstrode@redhat.com> 0.6.40-1
ece282
- Update to 0.6.40
ece282
ece282
* Fri Oct 17 2014 Ray Strode <rstrode@redhat.com> 0.6.39-2
ece282
- More ListCachedUsers race fixes (this time with SSSD)
ece282
  Related: #1147504
ece282
ece282
* Thu Oct 16 2014 Ray Strode <rstrode@redhat.com> 0.6.39-1
ece282
- Update to 0.6.39
ece282
- Fixes ListCachedUsers race at startup
ece282
ece282
* Thu Sep 18 2014 Stef Walter <stefw@redhat.com> - 0.6.38-1
ece282
- Update to 0.6.38
ece282
- Fixes polkit policy rhbz#1094138
ece282
- Remove dbus-glib-devel dependency, accountsservice uses gdbus now
ece282
ece282
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.37-3
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ece282
ece282
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.37-2
ece282
- Rebuilt for gobject-introspection 1.41.4
ece282
ece282
* Sat Jun 07 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.37-1
ece282
- Update to 0.6.37, drop upstreamed patches
ece282
ece282
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.35-5
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ece282
ece282
* Fri Jan 10 2014 Matthias Clasen <mclasen@redhat.com> - 0.6.35-4
ece282
- Consistently call userdel with -f
ece282
ece282
* Wed Nov 20 2013 Ray Strode <rstrode@redhat.com> 0.6.35-3
ece282
- Only treat users < 1000 as system users
ece282
- only use user heuristics on the range 500-1000
ece282
ece282
* Mon Nov 11 2013 Ray Strode <rstrode@redhat.com> 0.6.35-2
ece282
- pass --enable-user-heuristics which fedora needs so users
ece282
  with UIDs less than 1000 show up in the user list.
ece282
ece282
* Mon Oct 28 2013 Ray Strode <rstrode@redhat.com> 0.6.35-1
ece282
- Update to 0.6.35
ece282
  Related: #1013721
ece282
ece282
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.34-2
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ece282
ece282
* Tue Jun 11 2013 Ray Strode <rstrode@redhat.com> 0.6.34-1
ece282
- Update to 0.6.34
ece282
ece282
* Tue Jun 11 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.33-1
ece282
- Update to 0.6.33
ece282
ece282
* Tue May 14 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.32-1
ece282
- Update to 0.6.32
ece282
ece282
* Thu Apr 18 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-2
ece282
- Hardened build
ece282
ece282
* Tue Apr 16 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-1
ece282
- Update to 0.6.31
ece282
ece282
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.30-2
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ece282
ece282
* Wed Jan 16 2013 Richard Hughes <rhughes@redhat.com> - 0.6.30-1
ece282
- Update to 0.6.30
ece282
ece282
* Fri Nov 16 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.26-1
ece282
- Update to 0.6.26
ece282
ece282
* Tue Oct  2 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.25-2
ece282
- Update to 0.6.25
ece282
- Use systemd scriptlets (#856649)
ece282
ece282
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.22-3
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ece282
ece282
* Sat Jul 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.6.22-2
ece282
- Add ldconfig scriptlets to -libs.
ece282
ece282
* Thu Jun 28 2012 Ray Strode <rstrode@redhat.com> 0.6.22-1
ece282
- Update to 0.6.22.
ece282
- Fixes CVE-2012-2737 - local file disclosure
ece282
  Related:  #832532
ece282
181da6
* Thu May 31 2012 Matthias Clasen <mclasen@redhat.com> 0.6.21-1
ece282
- Update to 0.6.21
ece282
ece282
* Fri May 04 2012 Ray Strode <rstrode@redhat.com> 0.6.20-1
ece282
- Update to 0.6.20. Should fix user list.
ece282
  Related: #814690
ece282
ece282
* Thu May 03 2012 Ray Strode <rstrode@redhat.com> 0.6.19-1
ece282
- Update to 0.6.19
ece282
  Allows user deletion of logged in users
ece282
  Related: #814690
ece282
ece282
* Wed Apr 11 2012 Matthias Clasen <mclsaen@redhat.com> - 0.6.18-1
ece282
- Update to 0.6.18
ece282
ece282
* Tue Mar 27 2012 Ray Strode <rstrode@redhat.com> 0.6.17-1
ece282
- Update to latest release
ece282
ece282
* Sun Mar  4 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.6.15-4
ece282
- Fix unitdir with usrmove
ece282
ece282
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.15-3
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ece282
ece282
* Tue Nov 29 2011 Matthias Clasen <mclasen@redhat.com> 0.6.15-2
ece282
- Make resetting user icons work
ece282
- Update to 0.6.15
ece282
- Fixes session chooser at login screen when logged into vt
ece282
ece282
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-2
ece282
- Fix wtmp loading so users coming from the network are
ece282
  remembered in the user list in subsequent boots
ece282
ece282
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-1
ece282
- Update to 0.6.14
ece282
ece282
* Sun Sep  4 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-3
ece282
- Fix fast user switching
ece282
ece282
* Mon Aug 15 2011 Kalev Lember <kalevlember@gmail.com> - 0.6.13-2
ece282
- Rebuilt for rpm bug #728707
ece282
ece282
* Tue Jul 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-1
ece282
- Update to 0.6.13
ece282
- Drop ConsoleKit dependency
ece282
ece282
* Mon Jun 06 2011 Ray Strode <rstrode@redhat.com> 0.6.12-1
ece282
- Update to latest release
ece282
ece282
* Wed May 18 2011 Matthias Clasen <mclasen@redhat.com> 0.6.11-1
ece282
- Update to 0.6.11
ece282
ece282
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
ece282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ece282
ece282
* Wed Feb 02 2011 Ray Strode <rstrode@redhat.com> 0.6.3-1
ece282
- Update to 0.6.3
ece282
ece282
* Thu Jan 27 2011 Matthias Clasen <mclasen@redhat.com> 0.6.2-1
ece282
- Update to 0.6.2
ece282
ece282
* Wed Jul 21 2010 Matthias Clasen <mclasen@redhat.com> 0.6.1-1
ece282
- Update to 0.6.1
ece282
- Install systemd unit file
ece282
ece282
* Mon Apr  5 2010 Matthias Clasen <mclasen@redhat.com> 0.6-2
ece282
- Always emit changed signal on icon change
ece282
ece282
* Tue Mar 30 2010 Matthias Clasen <mclasen@redhat.com> 0.6-1
ece282
- Update to 0.6
ece282
ece282
* Mon Mar 22 2010 Matthias Clasen <mclasen@redhat.com> 0.5-1
ece282
- Update to 0.5
ece282
ece282
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-3
ece282
- Fix directory ownership
ece282
ece282
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-2
ece282
- Add missing directories to the filelist
ece282
ece282
* Fri Jan 29 2010 Matthias Clasen <mclasen@redhat.com> 0.4-1
ece282
- Initial packaging, based on work by Richard Hughes