Blame SPECS/passwd.spec

146491
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
146491
%define WITH_SELINUX 1
146491
%endif
146491
%if %{?WITH_AUDIT:0}%{!?WITH_AUDIT:1}
146491
%define WITH_AUDIT 1
146491
%endif
146491
Summary: An utility for setting or changing passwords using PAM
146491
Name: passwd
146491
Version: 0.79
146491
Release: 6%{?dist}
146491
License: BSD or GPL+
146491
Group: System Environment/Base
146491
URL: https://pagure.io/%{name}
146491
Source: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
146491
Patch0: passwd-0.79-translation-updates.patch
146491
# Backport ca46cac (rhbz#1276570)
146491
Patch1: passwd-0.79-no-length-limit-stdin-passwords.patch
146491
# Backport Steve Grubb's patches c461efa^..e2a9bdf (rhbz#1489086, rhbz#1638105)
146491
Patch2: passwd-0.79-auditing.patch
146491
# Backport 02d4478 (rhbz#1145256)
146491
Patch3: passwd-0.79-document-S-option.patch
146491
# Fix incorrect -S output when password field in /etc/passwd is empty but the
146491
# password information in /etc/shadow is present (rhbz#1686436)
146491
Patch4: passwd-0.79-incorrect-S-report.patch
146491
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
146491
Requires: pam >= 1.0.90, /etc/pam.d/system-auth
146491
%if %{WITH_SELINUX}
146491
Requires: libselinux >= 2.1.6-3
146491
BuildRequires: libselinux-devel >= 2.1.6-3
146491
%endif
146491
BuildRequires: glib2-devel, libuser-devel, pam-devel, libuser >= 0.53-1
146491
BuildRequires: gettext, popt-devel
146491
%if %{WITH_AUDIT}
146491
BuildRequires: audit-libs-devel >= 1.0.14
146491
Requires: audit-libs >= 1.0.14
146491
%endif
146491
146491
%description
146491
This package contains a system utility (passwd) which sets
146491
or changes passwords, using PAM (Pluggable Authentication
146491
Modules) library.
146491
146491
%prep
146491
%setup -q -n %{name}-%{version}
146491
# Remove the (make -C po update-gmo) below when removing the patch.
146491
%patch0 -p2 -b .translation-updates
146491
%patch1 -p1 -b .length-limit
146491
%patch2 -p1 -b .auditing
146491
%patch3 -p1 -b .doc-S-opt
146491
%patch4 -p1 -b .S-report
146491
146491
%build
146491
%configure \
146491
%if %{WITH_SELINUX}
146491
        --with-selinux \
146491
%else
146491
        --without-selinux \
146491
%endif
146491
%if %{WITH_AUDIT}
146491
        --with-audit
146491
%else
146491
        --without-audit
146491
%endif
146491
make DEBUG= RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
146491
# (make -C po all) doesn't update the .gmo files for the patched .po, force it.
146491
make -C po update-gmo
146491
146491
%install
146491
rm -rf $RPM_BUILD_ROOT
146491
146491
make install DESTDIR=$RPM_BUILD_ROOT
146491
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/
146491
install -m 644 passwd.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/passwd
146491
%find_lang %{name}
146491
for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do
146491
    dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||")
146491
    lang=$(basename $dir)
146491
    echo "%%lang($lang) $dir/man*/*" >> %{name}.lang
146491
done
146491
146491
146491
%clean
146491
rm -rf $RPM_BUILD_ROOT
146491
146491
%files -f %{name}.lang
146491
%defattr(-,root,root,-)
146491
%doc AUTHORS COPYING ChangeLog NEWS
146491
%config(noreplace) %{_sysconfdir}/pam.d/passwd
146491
%attr(4755,root,root) %{_bindir}/passwd
146491
%{_mandir}/man1/passwd.1*
146491
146491
%changelog
146491
* Mon Aug 12 2019 Jiri Kucera <jkucera@redhat.com> - 0.79-6
146491
- Fix incorrect -S output when password field in /etc/passwd is empty but the
146491
  password information in /etc/shadow is set
146491
  Resolves: #1686436
146491
146491
* Fri Mar 22 2019 Jiri Kucera <jkucera@redhat.com> - 0.79-5
146491
- Backport ca46cac (allow passwords longer than 79 characters)
146491
  Backport Steve Grubb's patches
146491
  - stop double auditing, use appropriate record types, update op field in
146491
    audit events, don't audit status check, fix password aging logging
146491
  Backport 02d4478 (better document -S option)
146491
  Fix URL and Source tags
146491
  Resolves: #1276570, #1489086, #1638105, #1145256, #1472567
146491
146491
* Thu Jan 30 2014 Miloslav Trmač <mitr@redhat.com> - 0.79-4
146491
- Include updated translations
146491
  Resolves: #1044298
146491
146491
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.79-3
146491
- Mass rebuild 2014-01-24
146491
146491
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.79-2
146491
- Mass rebuild 2013-12-27
146491
146491
* Sat Jun 22 2013 Miloslav Trmač <mitr@redhat.com> - 0.79-1
146491
- Update to passwd-0.79
146491
  Resolves: #926312, #948790
146491
146491
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78.99-4
146491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
146491
146491
* Tue Dec  4 2012 Miloslav Trmač <mitr@redhat.com> - 0.78.99-3
146491
- Fix License:
146491
146491
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78.99-2
146491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
146491
146491
* Fri Jan 27 2012 Tomas Mraz <tmraz@redhat.com> 0.78.99-1
146491
- use better (auditable) libselinux calls for checking
146491
  the access to passwd (#518268)
146491
- add support for the -e option as seen on Debian passwd
146491
- make the binary PIE and full RELRO (#784483)
146491
146491
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78-4
146491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
146491
146491
* Tue Feb 08 2011 Tomas Mraz <tmraz@redhat.com> 0.78-3
146491
- add the postlogin substack to the PAM configuration (#665063)
146491
146491
* Fri Jul 16 2010 Tomas Mraz <tmraz@redhat.com> 0.78-1
146491
- added japanese translation of the man page (#611692)
146491
- updated translations
146491
146491
* Tue Apr  6 2010 Tomas Mraz <tmraz@redhat.com> 0.77-5
146491
- first part of fix for pam_gnome_keyring prompting (#578624)
146491
  needs support for use_authtok to be added to pam_gnome_keyring
146491
146491
* Thu Jan 28 2010 Tomas Mraz <tmraz@redhat.com> 0.77-4
146491
- add COPYING and other things to doc
146491
- correct the licence field
146491
146491
* Mon Sep 14 2009 Tomas Mraz <tmraz@redhat.com> 0.77-1
146491
- updated translations
146491
- improved manual page
146491
146491
* Wed Feb 11 2009 Tomas Mraz <tmraz@redhat.com> 0.76-1
146491
- identify SHA-256 and SHA-512 password hashes (#484994)
146491
146491
* Tue Apr  8 2008 Tomas Mraz <tmraz@redhat.com> 0.75-2
146491
- add optional pam_gnome_keyring module to passwd pam
146491
  config (#441225)
146491
146491
* Wed Feb 20 2008 Tomas Mraz <tmraz@redhat.com> 0.75-1
146491
- fix disabling SELinux and audit in spec (#433284)
146491
- remove obsolete no.po (#332121)
146491
- updated translations
146491
146491
* Tue Sep 25 2007 Tomas Mraz <tmraz@redhat.com> 0.74-5
146491
- buildrequires popt-devel
146491
146491
* Wed Aug 22 2007 Tomas Mraz <tmraz@redhat.com> 0.74-4
146491
- spec file cleanups
146491
146491
* Thu Apr  5 2007 Tomas Mraz <tmraz@redhat.com> 0.74-3
146491
- use std buildroot, add dist tag (#226232)
146491
146491
* Tue Jan 30 2007 Tomas Mraz <tmraz@redhat.com> 0.74-2
146491
- do not explicitly strip the binary
146491
146491
* Tue Dec 12 2006 Tomas Mraz <tmraz@redhat.com> 0.74-1
146491
- minor fixes in error reporting
146491
- localize messages (#204022)
146491
146491
* Mon Jul 17 2006 Tomas Mraz <tmraz@redhat.com> 0.73-1
146491
- fixed broken logic from the last change (#196851)
146491
146491
* Fri Jul 14 2006 Tomas Mraz <tmraz@redhat.com> 0.72-1
146491
- merged audit patch to upstream cvs
146491
- improved passwd -S output (#170344)
146491
- make passwd -d work with stripped down proc (#196851)
146491
- corrected link to pam docs (#193084)
146491
- spec file cleanups
146491
146491
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.71-3.2.1
146491
- rebuild
146491
146491
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.71-3.2
146491
- bump again for double-long bug on ppc(64)
146491
146491
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.71-3.1
146491
- rebuilt for new gcc4.1 snapshot and glibc changes
146491
146491
* Tue Jan 31 2006 Steve Grubb <sgrubb@redhat.com> 0.71-3
146491
- Adjust audit patch so it builds without libaudit
146491
146491
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
146491
- rebuilt
146491
146491
* Tue Oct 25 2005 Steve Grubb <sgrubb@redhat.com> 0.71-2
146491
- adjust audit communication to use common logging functions
146491
146491
* Fri Oct  7 2005 Tomas Mraz <tmraz@redhat.com> 0.71-1
146491
- use include instead of pam_stack in pam config
146491
146491
* Fri Jun 17 2005 Tomas Mraz <tmraz@redhat.com> 0.70-1
146491
- replace laus with audit
146491
- auto* build changes
146491
146491
* Fri Jan 28 2005 Jindrich Novy <jnovy@redhat.com> 0.69-1
146491
- spec file fixes
146491
- add libuser >= 0.53-1 BuildPrereq (#139331)
146491
146491
* Tue Jan 25 2005 Dan Walsh <dwalsh@redhat.com>
146491
- improve SELinux priv checking
146491
146491
* Mon Aug 23 2004 Jindrich Novy <jnovy@redhat.com>
146491
- applied cleanup patch from Steve Grubb #120060
146491
- fixed man page #115380
146491
- added libselinux-devel to BuildPrereq #123750, #119416
146491
146491
* Thu Aug 19 2004 Jindrich Novy <jnovy@redhat.com> 0.68-10
146491
- moved to 0.68-10 to fix problem with RHEL4-Alpha4 #129548
146491
- updated GNU build scripts and file structure to recent style
146491
146491
* Wed Feb 4 2004 Dan Walsh <dwalsh@redhat.com> 0.68-8
146491
- add check for enforcing mode
146491
146491
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 0.68-7
146491
- fix is_selinux_enabled
146491
146491
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 0.68-6
146491
- turn off selinux
146491
146491
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 0.68-5.sel
146491
- Add SELinux support
146491
146491
* Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 0.68-4
146491
- Add SELinux support
146491
146491
* Thu Feb 13 2003 Nalin Dahyabhai <nalin@redhat.com> 0.68-3
146491
- add aging adjustment flags to passwd(1)'s synopsis, were just in the
146491
  reference section before
146491
146491
* Mon Jan 27 2003 Nalin Dahyabhai <nalin@redhat.com> 0.68-2
146491
- rebuild
146491
146491
* Mon Dec  9 2002 Nalin Dahyabhai <nalin@redhat.com> 0.68-1
146491
- implement aging adjustments for pwdb
146491
146491
* Mon Nov 11 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-4
146491
- modify default PAM configuration file to not specify directories, so that
146491
  the same configuration can be used for all arches on multilib systems
146491
- fix BuildPrereq on glib-devel to specify glib2-devel instead
146491
- remove unpackaged files in %%install phase
146491
146491
* Tue May 28 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-3
146491
- rebuild
146491
146491
* Mon May 20 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-2
146491
- rebuild in new environment
146491
146491
* Wed Mar 13 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-1
146491
- add the -i, -n, -w, and -x options to passwd
146491
146491
* Mon Mar 11 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-5
146491
- rebuild
146491
146491
* Mon Feb 25 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-4
146491
- rebuild
146491
146491
* Fri Feb 22 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-3
146491
- rebuild
146491
146491
* Thu Jan 31 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-2
146491
- rebuild to get dependencies right
146491
146491
* Tue Jan 29 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-1
146491
- change dependency from pwdb to libuser
146491
146491
* Fri Jan 25 2002 Nalin Dahyabhai <nalin@redhat.com> 0.64.1-9
146491
- rebuild
146491
146491
* Thu Aug 30 2001 Nalin Dahyabhai <nalin@redhat.com> 0.64.1-8
146491
- man page fix (-r is the opposite of -l, not --stdin, which precedes it)
146491
  from Felipe Gustavo de Almeida
146491
146491
* Mon Aug  6 2001 Nalin Dahyabhai <nalin@redhat.com> 0.64.1-7
146491
- fix unguarded printf() (noted by Chris Evans)
146491
- add missing build dependency on pwdb and pam-devel (#49550)
146491
146491
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
146491
- Bump release + rebuild.
146491
146491
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
146491
- automatic rebuild
146491
146491
* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
146491
- move man pages to _mandir
146491
146491
* Thu Jun  1 2000 Nalin Dahyabhai <nalin@redhat.com>
146491
- modify PAM setup to use system-auth
146491
- modify for building as non-root users
146491
146491
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
146491
- fix manpage links
146491
146491
* Fri Feb 04 2000 Nalin Dahyabhai <nalin@redhat.com>
146491
- document --stdin in man page
146491
- fix for gzipped man pages
146491
146491
* Sat Apr 10 1999 Cristian Gafton <gafton@redhat.com>
146491
- first build from the new source code base.