Blame SPECS/passwd.spec

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