Blame SPECS/accountsservice.spec

34a24a
%global _hardened_build 1
34a24a
34a24a
Name:           accountsservice
34a24a
Version:        0.6.45
6f965c
Release:        7%{?dist}
34a24a
Summary:        D-Bus interfaces for querying and manipulating user account information
34a24a
34a24a
Group:          System Environment/Daemons
34a24a
License:        GPLv3+
34a24a
URL:            http://www.fedoraproject.org/wiki/Features/UserAccountDialog
34a24a
#VCS: git:git://git.freedesktop.org/accountsservice
34a24a
Source0:        http://www.freedesktop.org/software/accountsservice/accountsservice-%{version}.tar.xz
34a24a
34a24a
BuildRequires:  glib2-devel
34a24a
BuildRequires:  polkit-devel
34a24a
BuildRequires:  intltool
34a24a
BuildRequires:  systemd-units
34a24a
BuildRequires:  systemd-devel
34a24a
BuildRequires:  gobject-introspection-devel
34a24a
BuildRequires:  gtk-doc
34a24a
BuildRequires:  git
34a24a
34a24a
Requires:       polkit
34a24a
Requires:       shadow-utils
34a24a
34a24a
Requires(post): systemd-units
34a24a
Requires(preun): systemd-units
34a24a
Requires(postun): systemd-units
34a24a
34a24a
Patch0: 0001-daemon-don-t-treat-explicitly-requested-users-as-cac.patch
34a24a
Patch1: 0001-lib-move-g_object_ref-call-for-clarity.patch
34a24a
Patch2: 0002-lib-leak-fix.patch
34a24a
Patch3: 0003-lib-another-leak-fix.patch
34a24a
Patch4: 0004-daemon-don-t-send-spurious-change-signals-when-wtmp-.patch
34a24a
Patch5: 0005-lib-consolidate-change-notification.patch
34a24a
Patch6: 0006-daemon-add-new-HasMultipleUsers-and-HasNoUsers-prope.patch
34a24a
Patch7: 0007-lib-use-new-has-multiple-users-property-from-account.patch
34a24a
Patch8: 0008-lib-factor-user-loading-functions-into-helpers.patch
34a24a
Patch9: 0009-lib-move-accounts-proxy-creation-to-helper.patch
34a24a
Patch10: 0010-lib-retry-connecting-to-accountsservice-when-loading.patch
34a24a
Patch11: 0011-lib-simplify-code-dramatically.patch
34a24a
Patch12: 0012-lib-don-t-track-user-added-user-removed-until-we-get.patch
34a24a
Patch13: 0013-lib-only-track-users-after-act_user_manager_list_use.patch
34a24a
Patch14: 0014-lib-fix-crasher-if-accounts-proxy-is-unavailable.patch
6f965c
Patch15: 0015-act-user-Prevent-segfault-if-accounts_proxy-is-not-c.patch
6f965c
Patch16: 0016-daemon-don-t-return-account-expiration-policy-if-not.patch
6f965c
Patch17: 0017-lib-don-t-try-to-update-login-frequency-manually.patch
34a24a
34a24a
%package libs
34a24a
Summary: Client-side library to talk to accountsservice
34a24a
Group: Development/Libraries
34a24a
Requires: %{name} = %{version}-%{release}
34a24a
34a24a
%description libs
34a24a
The accountsservice-libs package contains a library that can
34a24a
be used by applications that want to interact with the accountsservice
34a24a
daemon.
34a24a
34a24a
34a24a
%package devel
34a24a
Summary: Development files for accountsservice-libs
34a24a
Group: Development/Libraries
34a24a
Requires: %{name}-libs = %{version}-%{release}
34a24a
34a24a
%description devel
34a24a
The accountsservice-devel package contains headers and other
34a24a
files needed to build applications that use accountsservice-libs.
34a24a
34a24a
34a24a
%description
34a24a
The accountsservice project provides a set of D-Bus interfaces for
34a24a
querying and manipulating user account information and an implementation
34a24a
of these interfaces, based on the useradd, usermod and userdel commands.
34a24a
34a24a
34a24a
%prep
34a24a
%autosetup -S git
34a24a
34a24a
%build
34a24a
%configure --enable-user-heuristics
34a24a
make %{?_smp_mflags}
34a24a
34a24a
34a24a
%install
34a24a
make install DESTDIR=$RPM_BUILD_ROOT
34a24a
rm $RPM_BUILD_ROOT%{_libdir}/*.la
34a24a
rm $RPM_BUILD_ROOT%{_libdir}/*.a
34a24a
%find_lang accounts-service
34a24a
34a24a
34a24a
%post libs -p /sbin/ldconfig
34a24a
34a24a
%postun libs -p /sbin/ldconfig
34a24a
34a24a
%post
34a24a
%systemd_post accounts-daemon.service
34a24a
34a24a
%preun
34a24a
%systemd_preun accounts-daemon.service
34a24a
34a24a
%postun
34a24a
%systemd_postun accounts-daemon.service
34a24a
34a24a
%files -f accounts-service.lang
34a24a
%doc COPYING README AUTHORS
34a24a
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Accounts.conf
34a24a
%{_libexecdir}/accounts-daemon
34a24a
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
34a24a
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
34a24a
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service
34a24a
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy
34a24a
%dir %{_localstatedir}/lib/AccountsService/
34a24a
%dir %{_localstatedir}/lib/AccountsService/users
34a24a
%dir %{_localstatedir}/lib/AccountsService/icons
34a24a
%{_unitdir}/accounts-daemon.service
34a24a
34a24a
%files libs
34a24a
%{_libdir}/libaccountsservice.so.*
34a24a
%{_libdir}/girepository-1.0/AccountsService-1.0.typelib
34a24a
34a24a
%files devel
34a24a
%{_includedir}/accountsservice-1.0
34a24a
%{_libdir}/libaccountsservice.so
34a24a
%{_libdir}/pkgconfig/accountsservice.pc
34a24a
%{_datadir}/gir-1.0/AccountsService-1.0.gir
34a24a
%dir %{_datadir}/gtk-doc/html/libaccountsservice
34a24a
%{_datadir}/gtk-doc/html/libaccountsservice/*
34a24a
34a24a
%changelog
6f965c
* Wed Feb 14 2018 Ray Strode <rstrode@redhat.com> - 0.6.45-7
6f965c
- Fix bug leading to harmless error in log
6f965c
  Resolves: #1544640
6f965c
6f965c
* Wed Feb 07 2018 Ray Strode <rstrode@redhat.com> - 0.6.45-6
6f965c
- Don't return bogus password expiration policy when
6f965c
  shadow file is unavailable
6f965c
  Resolves: #1530659
6f965c
6f965c
* Tue Jan 30 2018 Ray Strode <rstrode@redhat.com> - 0.6.45-5
6f965c
- Fix other crasher introduced in -3
6f965c
  Resolves: #1532252
6f965c
6f965c
* Fri Nov 03 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-4
34a24a
- Fix crasher introduced in -3
34a24a
  Related: #1474579, 1509261
34a24a
34a24a
* Wed Sep 27 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-3
34a24a
- Various fixes to increase scalability
34a24a
  Related: #1474579
34a24a
34a24a
* Mon May 15 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-2
34a24a
- Don't tread explicitly requested users as cached
34a24a
  Fixes UncacheUser operation.
34a24a
  Resolves: 1446620
34a24a
  Related: #1432602
34a24a
34a24a
* Mon Mar 27 2017 Ray Strode <rstrode@redhat.com> - 0.6.45-1
34a24a
- Update to 0.6.45 so password expiration policy is wrapped by libaccountsservice
34a24a
  Related: #1424623 #1334464
34a24a
34a24a
* Mon Mar 27 2017 Ray Strode <rstrode@redhat.com> - 0.6.42-2
34a24a
- Update to 0.6.44
34a24a
  Related: #1424623
34a24a
- export password expiration policy from shadow
34a24a
  Resolves: #1334464
34a24a
34a24a
* Thu Oct 20 2016 Kalev Lember <klember@redhat.com> - 0.6.42-1
34a24a
- Update to 0.6.42
34a24a
- Resolves: #1424623
34a24a
34a24a
* Tue Sep 06 2016 Ray Strode <rstrode@redhat.com> - 0.6.35-12
34a24a
- hide users with /sbin/nologin shell
34a24a
  Resolves: #1341276
34a24a
34a24a
* Fri Jul 01 2016 Ray Strode <rstrode@redhat.com> - 0.6.35-11
34a24a
- address minor bug in previous patch
34a24a
  Related: #1220904
34a24a
34a24a
- fix memory leak in log handler
34a24a
  Resolves: #1292543
34a24a
34a24a
* Thu Jun 30 2016 Ray Strode <rstrode@redhat.com> - 0.6.35-10
34a24a
- scale to a large number of remote users better
34a24a
  Resolves: #1220904
34a24a
34a24a
* Mon Jun 08 2015 Ray Strode <rstrode@redhat.com> 0.6.35-9
34a24a
- Start after nsswitch and ypbind
34a24a
  Resolves: #1217439
34a24a
34a24a
* Tue Jun 2 2015 Ondrej Holy <oholy@redhat.com> 0.6.35-8
34a24a
- Add asynchronous api for user uncaching
34a24a
  Resolves: #1147999
34a24a
34a24a
* Wed Jan 29 2014 Ray Strode <rstrode@redhat.com> 0.6.35-7
34a24a
- Fix memory leak
34a24a
  Resolves: #1003033
34a24a
34a24a
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 0.6.35-6
34a24a
- Mass rebuild 2014-01-24
34a24a
34a24a
* Fri Jan 10 2014 Matthias Clasen <mclasen@redhat.com> 0.6.35-5
34a24a
- Consistently call userdel -f
34a24a
Resolves: #1051629
34a24a
34a24a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6.35-4
34a24a
- Mass rebuild 2013-12-27
34a24a
34a24a
* Tue Nov 19 2013 Ray Strode <rstrode@redhat.com> 0.6.35-3
34a24a
- Fix up user classification logic to work better with
34a24a
  remote users.
34a24a
  Resolves: #1029195
34a24a
34a24a
* Fri Nov  1 2013 Matthias Clasen <mclasen@redhat.com> 0.6.35-2
34a24a
- Refuse to delete the root user
34a24a
- Resolves: #1002973
34a24a
34a24a
* Tue Oct 22 2013 Ray Strode <rstrode@redhat.com> 0.6.35-1
34a24a
- Update to 0.6.35
34a24a
  Resolves: #1019488
34a24a
34a24a
* Tue Jun 11 2013 Ray Strode <rstrode@redhat.com> 0.6.34-1
34a24a
- Update to 0.6.34
34a24a
34a24a
* Tue Jun 11 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.33-1
34a24a
- Update to 0.6.33
34a24a
34a24a
* Tue May 14 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.32-1
34a24a
- Update to 0.6.32
34a24a
34a24a
* Thu Apr 18 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-2
34a24a
- Hardened build
34a24a
34a24a
* Tue Apr 16 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.31-1
34a24a
- Update to 0.6.31
34a24a
34a24a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.30-2
34a24a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
34a24a
34a24a
* Wed Jan 16 2013 Richard Hughes <rhughes@redhat.com> - 0.6.30-1
34a24a
- Update to 0.6.30
34a24a
34a24a
* Fri Nov 16 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.26-1
34a24a
- Update to 0.6.26
34a24a
34a24a
* Tue Oct  2 2012 Matthias Clasen <mclasen@redhat.com> - 0.6.25-2
34a24a
- Update to 0.6.25
34a24a
- Use systemd scriptlets (#856649)
34a24a
34a24a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.22-3
34a24a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
34a24a
34a24a
* Sat Jul 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.6.22-2
34a24a
- Add ldconfig scriptlets to -libs.
34a24a
34a24a
* Thu Jun 28 2012 Ray Strode <rstrode@redhat.com> 0.6.22-1
34a24a
- Update to 0.6.22.
34a24a
- Fixes CVE-2012-2737 - local file disclosure
34a24a
  Related:  #832532
34a24a
34a24a
* Thu May 30 2012 Matthias Clasen <mclasen@redhatcom> 0.6.21-1
34a24a
- Update to 0.6.21
34a24a
34a24a
* Fri May 04 2012 Ray Strode <rstrode@redhat.com> 0.6.20-1
34a24a
- Update to 0.6.20. Should fix user list.
34a24a
  Related: #814690
34a24a
34a24a
* Thu May 03 2012 Ray Strode <rstrode@redhat.com> 0.6.19-1
34a24a
- Update to 0.6.19
34a24a
  Allows user deletion of logged in users
34a24a
  Related: #814690
34a24a
34a24a
* Wed Apr 11 2012 Matthias Clasen <mclsaen@redhat.com> - 0.6.18-1
34a24a
- Update to 0.6.18
34a24a
34a24a
* Tue Mar 27 2012 Ray Strode <rstrode@redhat.com> 0.6.17-1
34a24a
- Update to latest release
34a24a
34a24a
* Sun Mar  4 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.6.15-4
34a24a
- Fix unitdir with usrmove
34a24a
34a24a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.15-3
34a24a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
34a24a
34a24a
* Tue Nov 29 2011 Matthias Clasen <mclasen@redhat.com> 0.6.15-2
34a24a
- Make resetting user icons work
34a24a
- Update to 0.6.15
34a24a
- Fixes session chooser at login screen when logged into vt
34a24a
34a24a
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-2
34a24a
- Fix wtmp loading so users coming from the network are
34a24a
  remembered in the user list in subsequent boots
34a24a
34a24a
* Wed Sep 21 2011 Ray Strode <rstrode@redhat.com> 0.6.14-1
34a24a
- Update to 0.6.14
34a24a
34a24a
* Sun Sep  4 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-3
34a24a
- Fix fast user switching
34a24a
34a24a
* Mon Aug 15 2011 Kalev Lember <kalevlember@gmail.com> - 0.6.13-2
34a24a
- Rebuilt for rpm bug #728707
34a24a
34a24a
* Tue Jul 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.6.13-1
34a24a
- Update to 0.6.13
34a24a
- Drop ConsoleKit dependency
34a24a
34a24a
* Mon Jun 06 2011 Ray Strode <rstrode@redhat.com> 0.6.12-1
34a24a
- Update to latest release
34a24a
34a24a
* Wed May 18 2011 Matthias Clasen <mclasen@redhat.com> 0.6.11-1
34a24a
- Update to 0.6.11
34a24a
34a24a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
34a24a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
34a24a
34a24a
* Wed Feb 02 2011 Ray Strode <rstrode@redhat.com> 0.6.3-1
34a24a
- Update to 0.6.3
34a24a
34a24a
* Thu Jan 27 2011 Matthias Clasen <mclasen@redhat.com> 0.6.2-1
34a24a
- Update to 0.6.2
34a24a
34a24a
* Wed Jul 21 2010 Matthias Clasen <mclasen@redhat.com> 0.6.1-1
34a24a
- Update to 0.6.1
34a24a
- Install systemd unit file
34a24a
34a24a
* Mon Apr  5 2010 Matthias Clasen <mclasen@redhat.com> 0.6-2
34a24a
- Always emit changed signal on icon change
34a24a
34a24a
* Tue Mar 30 2010 Matthias Clasen <mclasen@redhat.com> 0.6-1
34a24a
- Update to 0.6
34a24a
34a24a
* Mon Mar 22 2010 Matthias Clasen <mclasen@redhat.com> 0.5-1
34a24a
- Update to 0.5
34a24a
34a24a
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-3
34a24a
- Fix directory ownership
34a24a
34a24a
* Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-2
34a24a
- Add missing directories to the filelist
34a24a
34a24a
* Fri Jan 29 2010 Matthias Clasen <mclasen@redhat.com> 0.4-1
34a24a
- Initial packaging, based on work by Richard Hughes