Blame SPECS/accountsservice.spec

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